Skip to content

Commit

Permalink
test: add test for @SpringBootTest (#715)
Browse files Browse the repository at this point in the history
* Add test

* clarify the test

* test renaming

* ignore the newly added test to verify the CI build failed by it

* Revert "ignore the newly added test to verify the CI build failed by it"

This reverts commit 67d2b02.

* use a different port for the vaadin-test-spring-white-list module

* use a different jmx port for the test-ts-services module

* Revert "use a different jmx port for the test-ts-services module"

This reverts commit 0eca71c.

Co-authored-by: haijian <[email protected]>
  • Loading branch information
Artur- and haijian-vaadin authored Jan 26, 2021
1 parent 862b851 commit 7025b0f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vaadin-spring-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
1 change: 1 addition & 0 deletions vaadin-spring-tests/test-spring-white-list/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
<configuration>
<maxAttempts>100</maxAttempts>
<wait>2500</wait>
<jmxPort>9009</jmxPort>
</configuration>
<executions>
<!-- start and stop application when running
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.vaadin.flow.connect;

import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
// https://github.com/vaadin/flow/issues/9792
public class SpringBootTestTest {

@Test
public void hello() {
// To test if @SpringBootTest works
Assert.assertTrue(true);
}
}

0 comments on commit 7025b0f

Please sign in to comment.