Skip to content

Commit 311522b

Browse files
committed
Run reactive integration tests only as part of performance group
1 parent fc629bb commit 311522b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

spring-web/src/test/java/org/springframework/http/server/reactive/AbstractHttpHandlerIntegrationTests.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -29,9 +29,10 @@
2929
import org.springframework.http.server.reactive.bootstrap.RxNettyHttpServer;
3030
import org.springframework.http.server.reactive.bootstrap.TomcatHttpServer;
3131
import org.springframework.http.server.reactive.bootstrap.UndertowHttpServer;
32+
import org.springframework.tests.Assume;
33+
import org.springframework.tests.TestGroup;
3234
import org.springframework.util.SocketUtils;
3335

34-
3536
@RunWith(Parameterized.class)
3637
public abstract class AbstractHttpHandlerIntegrationTests {
3738

@@ -56,18 +57,21 @@ public static Object[][] arguments() {
5657

5758
@Before
5859
public void setup() throws Exception {
60+
Assume.group(TestGroup.PERFORMANCE);
61+
5962
this.port = SocketUtils.findAvailableTcpPort();
6063
this.server.setPort(this.port);
6164
this.server.setHandler(createHttpHandler());
6265
this.server.afterPropertiesSet();
6366
this.server.start();
6467
}
6568

66-
protected abstract HttpHandler createHttpHandler();
67-
6869
@After
6970
public void tearDown() throws Exception {
7071
this.server.stop();
7172
}
7273

74+
75+
protected abstract HttpHandler createHttpHandler();
76+
7377
}

0 commit comments

Comments
 (0)