Skip to content

Commit

Permalink
Use JUnit Jupiter for spring module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shakuzen committed Feb 3, 2020
1 parent b5d946d commit d928ce0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions starter-spring/build.gradle
Expand Up @@ -30,3 +30,7 @@ dependencies {
testImplementation 'io.projectreactor:reactor-test'
testImplementation 'io.micrometer:micrometer-registry-prometheus'
}

test {
useJUnitPlatform()
}
Expand Up @@ -23,7 +23,7 @@
import io.rsocket.transport.netty.server.CloseableChannel;
import io.rsocket.transport.netty.server.TcpServerTransport;
import io.rsocket.transport.netty.server.WebsocketServerTransport;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.metrics.export.prometheus.PrometheusMetricsExportAutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigurations;
Expand All @@ -36,7 +36,7 @@

import static org.assertj.core.api.Assertions.assertThat;

public class PrometheusRSocketAutoConfigurationTest {
class PrometheusRSocketAutoConfigurationTest {

private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
.withConfiguration(AutoConfigurations.of(MetricsAutoConfiguration.class, PrometheusMetricsExportAutoConfiguration.class, PrometheusRSocketAutoConfiguration.class));
Expand All @@ -59,7 +59,7 @@ public Mono<Void> fireAndForget(Payload payload) {
}

@Test
public void prometheusRSocketClientTcp() {
void prometheusRSocketClientTcp() {
int port = SocketUtils.findAvailableTcpPort();
final CountDownLatch latch = new CountDownLatch(1);
this.startServer(TcpServerTransport.create(port), latch)
Expand All @@ -73,7 +73,7 @@ public void prometheusRSocketClientTcp() {
}

@Test
public void prometheusRSocketClientWebsocket() {
void prometheusRSocketClientWebsocket() {
int port = SocketUtils.findAvailableTcpPort();
final CountDownLatch latch = new CountDownLatch(1);
this.startServer(WebsocketServerTransport.create(port), latch)
Expand Down

0 comments on commit d928ce0

Please sign in to comment.