File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import org .junit .jupiter .api .Assertions ;
44import org .junit .jupiter .api .Test ;
5- import org .junit .jupiter .api .condition .DisabledForJreRange ;
6- import org .junit .jupiter .api .condition .JRE ;
75import org .junitpioneer .jupiter .SetEnvironmentVariable ;
86
97public class MindeeSettingsTest {
108
119 @ Test
12- @ DisabledForJreRange (min = JRE .JAVA_9 , disabledReason = "JUnit Pioneer environment variable modification requires additional JVM flags on Java 9+" )
1310 @ SetEnvironmentVariable (key = "MINDEE_API_KEY" , value = "abcd" )
1411 @ SetEnvironmentVariable (key = "MINDEE_API_URL" , value = "https://example.com" )
1512 void setEnvironmentVariablesAndEmptyParams () {
1613 MindeeSettings settings = new MindeeSettings ("" , "" );
17- Assertions .assertEquals (settings .getApiKey ().orElse ("" ), "abcd" );
18- Assertions .assertEquals (settings . getBaseUrl (), "https://example.com" );
14+ Assertions .assertEquals ("abcd" , settings .getApiKey ().orElse ("" ));
15+ Assertions .assertEquals ("https://example.com" , settings . getBaseUrl () );
1916 }
2017}
You can’t perform that action at this time.
0 commit comments