File tree Expand file tree Collapse file tree
codec/src/test/resources/io/netty/handler/codec/xml
src/main/java/io/netty/testsuite
transport-native-unix-common-tests
src/main/java/io/netty/channel/unix/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 210210
211211 <dependencies >
212212 <!-- Testing frameworks and related dependencies -->
213- <dependency >
214- <groupId >junit</groupId >
215- <artifactId >junit</artifactId >
216- <version >4.12</version >
217- <scope >test</scope >
218- </dependency >
219213 <dependency >
220214 <groupId >org.easymock</groupId >
221215 <artifactId >easymock</artifactId >
Original file line number Diff line number Diff line change 185185 <artifactId >junit-jupiter-engine</artifactId >
186186 <scope >compile</scope >
187187 </dependency >
188- <dependency >
189- <groupId >org.junit.vintage</groupId >
190- <artifactId >junit-vintage-engine</artifactId >
191- <scope >compile</scope >
192- </dependency >
193- <dependency >
194- <groupId >junit</groupId >
195- <artifactId >junit</artifactId >
196- <scope >compile</scope >
197- </dependency >
198188 <dependency >
199189 <groupId >org.openjdk.jmh</groupId >
200190 <artifactId >jmh-core</artifactId >
Original file line number Diff line number Diff line change 886886 <version >${junit.version} </version >
887887 <scope >test</scope >
888888 </dependency >
889- <dependency >
890- <groupId >org.junit.vintage</groupId >
891- <artifactId >junit-vintage-engine</artifactId >
892- <version >${junit.version} </version >
893- <scope >test</scope >
894- </dependency >
895- <dependency >
896- <groupId >junit</groupId >
897- <artifactId >junit</artifactId >
898- <version >4.13.1</version >
899- <scope >test</scope >
900- </dependency >
901889 <dependency >
902890 <groupId >${project.groupId} </groupId >
903891 <artifactId >netty-build-common</artifactId >
10301018 <artifactId >junit-jupiter-params</artifactId >
10311019 <scope >test</scope >
10321020 </dependency >
1033- <dependency >
1034- <groupId >org.junit.vintage</groupId >
1035- <artifactId >junit-vintage-engine</artifactId >
1036- <scope >test</scope >
1037- </dependency >
1038- <dependency >
1039- <groupId >junit</groupId >
1040- <artifactId >junit</artifactId >
1041- <scope >test</scope >
1042- </dependency >
10431021 <dependency >
10441022 <groupId >${project.groupId} </groupId >
10451023 <artifactId >netty-build-common</artifactId >
11481126 <classQualifiedName >io.netty.util.internal.InternalThreadLocalMap</classQualifiedName >
11491127 <justification >Ignore cache padding.</justification >
11501128 </item >
1129+ <item >
1130+ <ignore >true</ignore >
1131+ <code >java.method.removed</code >
1132+ <old >method java.lang.String io.netty.testsuite.util.TestUtils::testMethodName(org.junit.rules.TestName)</old >
1133+ <justification >This should be test-only, and we're removing support for JUnit 4.</justification >
1134+ </item >
11511135 </differences >
11521136 </revapi .differences>
11531137 </analysisConfiguration >
Original file line number Diff line number Diff line change 4545 <groupId >org.junit.jupiter</groupId >
4646 <artifactId >junit-jupiter-engine</artifactId >
4747 </dependency >
48- <dependency >
49- <groupId >org.junit.vintage</groupId >
50- <artifactId >junit-vintage-engine</artifactId >
51- </dependency >
52- <dependency >
53- <groupId >junit</groupId >
54- <artifactId >junit</artifactId >
55- </dependency >
5648 </dependencies >
5749 <profiles >
5850 <profile >
Original file line number Diff line number Diff line change 200200 <groupId >org.junit.jupiter</groupId >
201201 <artifactId >junit-jupiter-engine</artifactId >
202202 </dependency >
203- <dependency >
204- <groupId >org.junit.vintage</groupId >
205- <artifactId >junit-vintage-engine</artifactId >
206- </dependency >
207- <dependency >
208- <groupId >junit</groupId >
209- <artifactId >junit</artifactId >
210- </dependency >
211203 </dependencies >
212204 <profiles >
213205 <profile >
Original file line number Diff line number Diff line change 9494 <artifactId >junit-jupiter-params</artifactId >
9595 <scope >compile</scope >
9696 </dependency >
97- <dependency >
98- <groupId >org.junit.vintage</groupId >
99- <artifactId >junit-vintage-engine</artifactId >
100- <scope >compile</scope >
101- </dependency >
102- <dependency >
103- <groupId >junit</groupId >
104- <artifactId >junit</artifactId >
105- <scope >compile</scope >
106- </dependency >
10797 <dependency >
10898 <groupId >org.hamcrest</groupId >
10999 <artifactId >hamcrest-library</artifactId >
Original file line number Diff line number Diff line change 1818import io .netty .channel .socket .InternetProtocolFamily ;
1919import io .netty .util .internal .PlatformDependent ;
2020import io .netty .util .internal .SuppressJava6Requirement ;
21- import org .junit .AssumptionViolatedException ;
2221import org .junit .jupiter .api .BeforeAll ;
22+ import org .opentest4j .TestAbortedException ;
2323
2424import java .io .IOException ;
2525import java .net .StandardProtocolFamily ;
@@ -38,7 +38,7 @@ public static void assumeIpv6Supported() {
3838 Channel channel = SelectorProvider .provider ().openDatagramChannel (StandardProtocolFamily .INET6 );
3939 channel .close ();
4040 } catch (UnsupportedOperationException e ) {
41- throw new AssumptionViolatedException ("IPv6 not supported" , e );
41+ throw new TestAbortedException ("IPv6 not supported" , e );
4242 } catch (IOException ignore ) {
4343 // Ignore
4444 }
Original file line number Diff line number Diff line change 2121import io .netty .util .internal .logging .InternalLogger ;
2222import io .netty .util .internal .logging .InternalLoggerFactory ;
2323import org .junit .jupiter .api .TestInfo ;
24- import org .junit .rules .TestName ;
2524import org .tukaani .xz .LZMA2Options ;
2625import org .tukaani .xz .XZOutputStream ;
2726
@@ -120,17 +119,6 @@ public String apply(Method method) {
120119 return testMethodName ;
121120 }
122121
123- /**
124- * Returns the method name of the current test.
125- */
126- public static String testMethodName (TestName testName ) {
127- String testMethodName = testName .getMethodName ();
128- if (testMethodName .contains ("[" )) {
129- testMethodName = testMethodName .substring (0 , testMethodName .indexOf ('[' ));
130- }
131- return testMethodName ;
132- }
133-
134122 public static void dump (String filenamePrefix ) throws IOException {
135123
136124 ObjectUtil .checkNotNull (filenamePrefix , "filenamePrefix" );
Original file line number Diff line number Diff line change 5454 <artifactId >junit-jupiter-engine</artifactId >
5555 <scope >compile</scope >
5656 </dependency >
57- <dependency >
58- <groupId >org.junit.vintage</groupId >
59- <artifactId >junit-vintage-engine</artifactId >
60- <scope >compile</scope >
61- </dependency >
62- <dependency >
63- <groupId >junit</groupId >
64- <artifactId >junit</artifactId >
65- <scope >compile</scope >
66- </dependency >
6757 </dependencies >
6858</project >
Original file line number Diff line number Diff line change 1717
1818import io .netty .channel .unix .Buffer ;
1919import io .netty .channel .unix .Socket ;
20- import org .junit .AssumptionViolatedException ;
2120import org .junit .jupiter .api .AfterEach ;
2221import org .junit .jupiter .api .BeforeEach ;
2322import org .junit .jupiter .api .Test ;
23+ import org .opentest4j .TestAbortedException ;
2424
2525import java .io .IOException ;
2626import java .nio .ByteBuffer ;
@@ -127,10 +127,10 @@ public void testRawOpt() throws IOException {
127127 }
128128
129129 protected int level () {
130- throw new AssumptionViolatedException ("Not supported" );
130+ throw new TestAbortedException ("Not supported" );
131131 }
132132
133133 protected int optname () {
134- throw new AssumptionViolatedException ("Not supported" );
134+ throw new TestAbortedException ("Not supported" );
135135 }
136136}
You can’t perform that action at this time.
0 commit comments