Skip to content

Commit

Permalink
Bael 7231 fixing typos (eugenp#15718)
Browse files Browse the repository at this point in the history
* feat: Fix typo

* feat: Fix type
  • Loading branch information
eukovko authored Jan 24, 2024
1 parent d1009f0 commit 120c235
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ class SettingSameProcessEnvironmentVariableUnitTest {
= Collections.unmodifiableMap(Collections.emptyMap()).getClass();
private static final Class<?> MAP_CLASS = Map.class;
public static final String ENV_VARIABLE_NAME = "test";
public static final String ENB_VARIABLE_VALUE = "Hello World";
public static final String ENV_VARIABLE_VALUE = "Hello World";

@ParameterizedTest
@CsvSource({ENB_VARIABLE_VALUE + "," + ENV_VARIABLE_NAME})
@CsvSource({ENV_VARIABLE_VALUE + "," + ENV_VARIABLE_NAME})
@EnabledForJreRange(max = JRE.JAVA_16)
void givenReflexiveAccess_whenGetSourceMap_thenSuccessfullyModifyVariables(String environmentVariable, String value)
throws ClassNotFoundException, NoSuchFieldException, IllegalAccessException {
Expand All @@ -47,17 +47,17 @@ void givenOS_whenGetPath_thenVariableIsPresent() {
}

@Test
void givenOS_whenGetPath_thenVariablesArePresent() {
void givenOS_whenGetEnv_thenVariablesArePresent() {
Map<String, String> environment = System.getenv();
assertThat(environment).isNotNull();
}

@Test
@SetEnvironmentVariable(key = ENV_VARIABLE_NAME, value = ENB_VARIABLE_VALUE)
@SetEnvironmentVariable(key = ENV_VARIABLE_NAME, value = ENV_VARIABLE_VALUE)
@EnabledForJreRange(max = JRE.JAVA_16)
void givenVariableSet_whenGetEnvironmentVariable_thenReturnsCorrectValue() {
String actual = System.getenv(ENV_VARIABLE_NAME);
assertThat(actual).isEqualTo(ENB_VARIABLE_VALUE);
assertThat(actual).isEqualTo(ENV_VARIABLE_VALUE);
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 120c235

Please sign in to comment.