Commit 51b941b
committed
Refactor FTPS tests to use @nested classes for better lifecycle management
Replaced separate FtpsProviderExplicitTest and FtpsProviderImplicitTest
classes with a single FtpsProviderTest class containing @nested classes
for each mode.
Benefits:
- Eliminates server lifecycle conflicts between test classes
- Both explicit and implicit mode tests run successfully in same JVM
- Cleaner architecture with shared outer class
- Each nested class manages its own server lifecycle independently
- Tests run sequentially within the same test class, avoiding port conflicts
Changes:
- Created FtpsProviderTest with ExplicitMode and ImplicitMode nested classes
- Removed FtpsProviderExplicitTest.java
- Removed FtpsProviderImplicitTest.java
- Simplified tearDownClass() by removing unnecessary waits
Test Results:
- ImplicitMode: 97 tests, 0 failures, 2 skipped
- ExplicitMode: 97 tests, 0 failures, 2 skipped
- Total: 194 tests, 0 failures, 4 skipped
- Full suite: 2700 tests, 0 failures, 645 skipped1 parent 3e3e180 commit 51b941b
File tree
4 files changed
+129
-180
lines changed- commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps
4 files changed
+129
-180
lines changedcommons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/AbstractFtpsProviderTestCase.java
Lines changed: 1 addition & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 158 | | |
169 | 159 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 160 | + | |
173 | 161 | | |
174 | 162 | | |
175 | 163 | | |
| |||
179 | 167 | | |
180 | 168 | | |
181 | 169 | | |
182 | | - | |
183 | | - | |
184 | 170 | | |
185 | 171 | | |
186 | 172 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 173 | | |
195 | 174 | | |
196 | 175 | | |
| |||
Lines changed: 0 additions & 79 deletions
This file was deleted.
Lines changed: 0 additions & 79 deletions
This file was deleted.
Lines changed: 128 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
0 commit comments