forked from quarkus-qe/quarkus-test-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename and rearrange classes in spring-web module
- Loading branch information
Showing
11 changed files
with
108 additions
and
74 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
spring/spring-web/src/test/java/io/quarkus/ts/spring/web/reactive/MariaDBConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package io.quarkus.ts.spring.web.reactive; | ||
|
||
public class MariaDBConstants { | ||
public static final int PORT = 3306; | ||
public static final String START_LOG_10 = "socket: '/run/mysqld/mysqld.sock' port: " + PORT; | ||
public static final String START_LOG_105 = "Only MySQL server logs after this point"; | ||
public static final String IMAGE_10 = "${mariadb.10.image}"; | ||
public static final String IMAGE_105 = "${mariadb.105.image}"; | ||
} |
6 changes: 0 additions & 6 deletions
6
spring/spring-web/src/test/java/io/quarkus/ts/spring/web/reactive/MariaDBUtils.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
...eactive/boostrap/OpenShiftHomePageIT.java → ...ve/boostrap/OpenShiftSpringWebQuteIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
...ive/boostrap/OpenShiftBookResourceIT.java → ...ve/boostrap/OpenShiftSpringWebRestIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
...ing/web/reactive/boostrap/HomePageIT.java → ...eb/reactive/boostrap/SpringWebQuteIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
.../spring-web/src/test/java/io/quarkus/ts/spring/web/reactive/boostrap/SpringWebRestIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package io.quarkus.ts.spring.web.reactive.boostrap; | ||
|
||
import static io.quarkus.ts.spring.web.reactive.MariaDBConstants.IMAGE_10; | ||
import static io.quarkus.ts.spring.web.reactive.MariaDBConstants.PORT; | ||
import static io.quarkus.ts.spring.web.reactive.MariaDBConstants.START_LOG_10; | ||
|
||
import io.quarkus.test.bootstrap.MariaDbService; | ||
import io.quarkus.test.bootstrap.RestService; | ||
import io.quarkus.test.scenarios.QuarkusScenario; | ||
import io.quarkus.test.services.Container; | ||
import io.quarkus.test.services.QuarkusApplication; | ||
|
||
@QuarkusScenario | ||
public class SpringWebRestIT extends AbstractSpringWebRestIT { | ||
|
||
@Container(image = IMAGE_10, port = PORT, expectedLog = START_LOG_10) | ||
static final MariaDbService database = new MariaDbService(); | ||
|
||
@QuarkusApplication | ||
private static final RestService app = new RestService() | ||
.withProperty("quarkus.datasource.username", database.getUser()) | ||
.withProperty("quarkus.datasource.password", database.getPassword()) | ||
.withProperty("quarkus.datasource.jdbc.url", database::getJdbcUrl); | ||
|
||
@Override | ||
protected RestService getApp() { | ||
return app; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
.../reactive/openapi/OpenShiftOpenApiIT.java → .../openapi/OpenShiftSpringWebOpenApiIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...pring-web/src/test/java/io/quarkus/ts/spring/web/reactive/openapi/SpringWebOpenApiIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package io.quarkus.ts.spring.web.reactive.openapi; | ||
|
||
import static io.quarkus.ts.spring.web.reactive.MariaDBConstants.IMAGE_10; | ||
import static io.quarkus.ts.spring.web.reactive.MariaDBConstants.PORT; | ||
import static io.quarkus.ts.spring.web.reactive.MariaDBConstants.START_LOG_10; | ||
|
||
import org.junit.jupiter.api.MethodOrderer; | ||
import org.junit.jupiter.api.TestMethodOrder; | ||
|
||
import io.quarkus.test.bootstrap.MariaDbService; | ||
import io.quarkus.test.bootstrap.RestService; | ||
import io.quarkus.test.scenarios.QuarkusScenario; | ||
import io.quarkus.test.services.Container; | ||
import io.quarkus.test.services.QuarkusApplication; | ||
import io.restassured.response.Response; | ||
|
||
@QuarkusScenario | ||
@TestMethodOrder(MethodOrderer.OrderAnnotation.class) | ||
public class SpringWebOpenApiIT extends AbstractSpringWebOpenApiIT { | ||
private static Response response; | ||
|
||
@Container(image = IMAGE_10, port = PORT, expectedLog = START_LOG_10) | ||
static final MariaDbService database = new MariaDbService(); | ||
|
||
@QuarkusApplication | ||
private static final RestService app = new RestService() | ||
.withProperty("quarkus.datasource.username", database.getUser()) | ||
.withProperty("quarkus.datasource.password", database.getPassword()) | ||
.withProperty("quarkus.datasource.jdbc.url", database::getJdbcUrl); | ||
|
||
@Override | ||
public RestService getApp() { | ||
return app; | ||
} | ||
} |