File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
servlet/src/test/java/io/undertow/servlet/test/handlers Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 32
32
import org .apache .http .params .HttpParams ;
33
33
import org .junit .Assert ;
34
34
import org .junit .Assume ;
35
- import org .junit .Before ;
36
35
import org .junit .BeforeClass ;
37
36
import org .junit .Test ;
38
37
@@ -56,10 +55,10 @@ public abstract class AbstractHttpContinueServletTestCase {
56
55
public static void setup () {
57
56
DeploymentUtils .setupServlet (Servlets .servlet (ContinueConsumeServlet .class ).addMappings ("/path" ),
58
57
Servlets .servlet (ContinueIgnoreServlet .class ).addMappings ("/ignore" ));
58
+ Assume .assumeFalse (DefaultServer .isAjp ());
59
59
}
60
60
61
- @ Before
62
- public void before () throws Exception {
61
+ public static void before () throws Exception {
63
62
Assume .assumeFalse (DefaultServer .isAjp ());
64
63
}
65
64
Original file line number Diff line number Diff line change 20
20
21
21
import io .undertow .testutils .DefaultServer ;
22
22
import io .undertow .testutils .TestHttpClient ;
23
- import org .junit .After ;
24
- import org .junit .Before ;
23
+ import org .junit .AfterClass ;
24
+ import org .junit .BeforeClass ;
25
25
import org .junit .runner .RunWith ;
26
26
27
27
import java .io .IOException ;
@@ -42,14 +42,14 @@ protected TestHttpClient getClient() {
42
42
return client ;
43
43
}
44
44
45
- @ Before
46
- public void before () throws Exception {
47
- super .before ();
45
+ @ BeforeClass
46
+ public static void before () throws Exception {
47
+ AbstractHttpContinueServletTestCase .before ();
48
48
DefaultServer .startSSLServer ();
49
49
}
50
50
51
- @ After
52
- public void after () throws IOException {
51
+ @ AfterClass
52
+ public static void after () throws IOException {
53
53
DefaultServer .stopSSLServer ();
54
54
}
55
55
}
You can’t perform that action at this time.
0 commit comments