BAEL-4516: Fix itest sample

This commit is contained in:
Sorin Zamfir 2020-08-23 00:03:45 +03:00
parent 10c8ff7a83
commit 1221273216
1 changed files with 2 additions and 8 deletions

View File

@ -13,19 +13,13 @@ import com.google.common.collect.ImmutableList;
public class SourceSetsItest { public class SourceSetsItest {
@Test @Test
public void whenRun_ThenSuccess() { public void givenImmutableList_whenRun_ThenSuccess() {
SourceSetsObject underTest = new SourceSetsObject("lorem", "ipsum"); SourceSetsObject underTest = new SourceSetsObject("lorem", "ipsum");
List<String> someStrings = ImmutableList.of("Baeldung", "is", "cool");
assertThat(underTest.getUser(), is("lorem")); assertThat(underTest.getUser(), is("lorem"));
assertThat(underTest.getPassword(), is("ipsum")); assertThat(underTest.getPassword(), is("ipsum"));
}
@Test
public void givenImmutableList_whenRun_ThenSuccess() {
List<String> someStrings = ImmutableList.of("Baeldung", "is", "cool");
assertThat(someStrings.size(), is(3)); assertThat(someStrings.size(), is(3));
} }
} }