Skip to content

Commit dab6413

Browse files
committed
make sure that tests run in "test" profile
1 parent 9a8c67d commit dab6413

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/test/java/de/rwth/idsg/steve/ApplicationJsonTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public class ApplicationJsonTest {
3434

3535
@BeforeClass
3636
public static void init() throws Exception {
37+
Assert.assertEquals(ApplicationProfile.TEST, SteveConfiguration.CONFIG.getProfile());
3738
__DatabasePreparer__.prepare();
3839

3940
app = new Application();

src/test/java/de/rwth/idsg/steve/ApplicationTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public class ApplicationTest {
3535

3636
@BeforeClass
3737
public static void init() throws Exception {
38+
Assert.assertEquals(ApplicationProfile.TEST, SteveConfiguration.CONFIG.getProfile());
3839
__DatabasePreparer__.prepare();
3940

4041
app = new Application();

src/test/java/de/rwth/idsg/steve/OperationalTestSoapOCPP16.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public class OperationalTestSoapOCPP16 {
6060

6161
@BeforeClass
6262
public static void initClass() throws Exception {
63+
Assert.assertEquals(ApplicationProfile.TEST, SteveConfiguration.CONFIG.getProfile());
64+
6365
app = new Application();
6466
app.start();
6567
}

0 commit comments

Comments
 (0)