This repository was archived by the owner on Oct 24, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
src/test/java/org/seasar/doma/quarkus/deployment Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 8888 <configuration >
8989 <systemPropertyVariables >
9090 <java .util.logging.manager>org.jboss.logmanager.LogManager</java .util.logging.manager>
91+ <doma .profile>${doma.profile} </doma .profile>
9192 </systemPropertyVariables >
9293 </configuration >
9394 </plugin >
Original file line number Diff line number Diff line change 1010import org .junit .jupiter .api .AfterAll ;
1111import org .junit .jupiter .api .BeforeAll ;
1212import org .junit .jupiter .api .Test ;
13+ import org .junit .jupiter .api .condition .EnabledIfSystemProperty ;
1314import org .junit .jupiter .api .extension .RegisterExtension ;
1415
1516public class HotReplacementTest {
@@ -43,6 +44,7 @@ public static void tearDownPort() {
4344 }
4445
4546 @ Test
47+ @ EnabledIfSystemProperty (named = "doma.profile" , matches = "release" )
4648 public void sql () {
4749 RestAssured .when ().get ("/hot/sql" ).then ().body (is ("select\n *\n from\n employee\n " ));
4850 runner .modifyResourceFile (
@@ -51,6 +53,7 @@ public void sql() {
5153 }
5254
5355 @ Test
56+ @ EnabledIfSystemProperty (named = "doma.profile" , matches = "release" )
5457 public void script () {
5558 RestAssured .when ().get ("/hot/script" ).then ().body (is ("create table employee (\n id int\n )\n " ));
5659 runner .modifyResourceFile (
Original file line number Diff line number Diff line change 3737 <maven .compiler.target>11</maven .compiler.target>
3838 <maven .compiler.parameters>true</maven .compiler.parameters>
3939 <doma .version>2.37.0</doma .version>
40- <quarkus .version>1.5.2 .Final</quarkus .version>
40+ <quarkus .version>1.6.0 .Final</quarkus .version>
4141 <spotless-plugin .version>1.31.2</spotless-plugin .version>
4242 <google-java-format .version>1.7</google-java-format .version>
4343 <compiler-plugin .version>3.8.1</compiler-plugin .version>
6666
6767 <profiles >
6868 <profile >
69+ <activation >
70+ <activeByDefault >true</activeByDefault >
71+ </activation >
72+ <id >default</id >
73+ <properties >
74+ <doma .profile>default</doma .profile>
75+ </properties >
76+ </profile >
77+ <profile >
78+ <activation >
79+ <activeByDefault >false</activeByDefault >
80+ </activation >
6981 <id >release</id >
82+ <properties >
83+ <doma .profile>release</doma .profile>
84+ </properties >
7085 <build >
7186 <plugins >
7287 <plugin >
You can’t perform that action at this time.
0 commit comments