File tree Expand file tree Collapse file tree 7 files changed +8
-49
lines changed
main/java/de/rwth/idsg/steve
test/java/de/rwth/idsg/steve Expand file tree Collapse file tree 7 files changed +8
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public enum SteveConfiguration {
5454 private final String contextPath ;
5555 private final String steveVersion ;
5656 private final String gitDescribe ;
57- private final ApplicationProfile profile ;
57+ private final String profile ;
5858 private final Ocpp ocpp ;
5959 private final Auth auth ;
6060 private final WebApi webApi ;
@@ -71,8 +71,8 @@ public enum SteveConfiguration {
7171 steveVersion = p .getString ("steve.version" );
7272 gitDescribe = useFallbackIfNotSet (p .getOptionalString ("git.describe" ), null );
7373
74- profile = ApplicationProfile . fromName ( p .getString ("profile" ) );
75- System .setProperty ("spring.profiles.active" , profile . name (). toLowerCase () );
74+ profile = p .getString ("profile" );
75+ System .setProperty ("spring.profiles.active" , profile );
7676
7777 jetty = Jetty .builder ()
7878 .serverHost (p .getString ("server.host" ))
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public class ApplicationJsonTest {
5454
5555 @ BeforeAll
5656 public static void init () throws Exception {
57- Assertions .assertEquals (ApplicationProfile . TEST , SteveConfiguration .CONFIG .getProfile ());
57+ Assertions .assertEquals ("test" , SteveConfiguration .CONFIG .getProfile ());
5858 __DatabasePreparer__ .prepare ();
5959
6060 app = new Application ();
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public class ApplicationTest {
5555
5656 @ BeforeAll
5757 public static void init () throws Exception {
58- Assertions .assertEquals (ApplicationProfile . TEST , SteveConfiguration .CONFIG .getProfile ());
58+ Assertions .assertEquals ("test" , SteveConfiguration .CONFIG .getProfile ());
5959 __DatabasePreparer__ .prepare ();
6060
6161 app = new Application ();
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public class OperationalTestSoapOCPP16 {
8383
8484 @ BeforeAll
8585 public static void initClass () throws Exception {
86- Assertions .assertEquals (ApplicationProfile . TEST , SteveConfiguration .CONFIG .getProfile ());
86+ Assertions .assertEquals ("test" , SteveConfiguration .CONFIG .getProfile ());
8787
8888 app = new Application ();
8989 app .start ();
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public abstract class StressTest {
5050 protected static final int CONNECTOR_COUNT_PER_CHARGE_BOX = 25 ;
5151
5252 protected void attack () throws Exception {
53- Assertions .assertEquals (ApplicationProfile . TEST , SteveConfiguration .CONFIG .getProfile ());
53+ Assertions .assertEquals ("test" , SteveConfiguration .CONFIG .getProfile ());
5454 Assertions .assertTrue (SteveConfiguration .CONFIG .getOcpp ().isAutoRegisterUnknownStations ());
5555
5656 __DatabasePreparer__ .prepare ();
Original file line number Diff line number Diff line change 2020
2121import com .google .common .collect .Lists ;
2222import de .rwth .idsg .steve .Application ;
23- import de .rwth .idsg .steve .ApplicationProfile ;
2423import de .rwth .idsg .steve .SteveConfiguration ;
2524import de .rwth .idsg .steve .utils .__DatabasePreparer__ ;
2625import ocpp .cs ._2015 ._10 .AuthorizationStatus ;
@@ -53,7 +52,7 @@ public class Issue73Fix {
5352 private static final String path = getPath ();
5453
5554 public static void main (String [] args ) throws Exception {
56- Assertions .assertEquals (ApplicationProfile . TEST , SteveConfiguration .CONFIG .getProfile ());
55+ Assertions .assertEquals ("test" , SteveConfiguration .CONFIG .getProfile ());
5756 Assertions .assertTrue (SteveConfiguration .CONFIG .getOcpp ().isAutoRegisterUnknownStations ());
5857
5958 __DatabasePreparer__ .prepare ();
You can’t perform that action at this time.
0 commit comments