BAEL-4070: removed unnecessary curly brace, fixed test name

This commit is contained in:
Cristian Rosu 2020-06-04 12:18:03 +03:00
parent dd5e1190fa
commit bc2c23ae9e
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import java.util.List;
import static org.junit.Assert.assertEquals;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {SpringListPropertiesApplication.class})
@ContextConfiguration(classes = SpringListPropertiesApplication.class)
public class ListsPropertiesUnitTest {
@Value("${arrayOfStrings}")
@ -78,7 +78,7 @@ public class ListsPropertiesUnitTest {
}
@Test
public void WhenReadingFromSpringEnvironment_ThenPropertiesHaveExpectedValues() {
public void whenReadingFromSpringEnvironment_ThenPropertiesHaveExpectedValues() {
String[] arrayOfStrings = environment.getProperty("arrayOfStrings", String[].class);
List<String> listOfStrings = (List<String>)environment.getProperty("arrayOfStrings", List.class);