diff --git a/core-java-modules/core-java-collections-list-5/src/test/java/com/baeldung/java/list/ListContainsElementFromOtherListTest.java b/core-java-modules/core-java-collections-list-5/src/test/java/com/baeldung/java/list/ListContainsElementFromOtherListTest.java index e69cc733ee..0f47f7713a 100644 --- a/core-java-modules/core-java-collections-list-5/src/test/java/com/baeldung/java/list/ListContainsElementFromOtherListTest.java +++ b/core-java-modules/core-java-collections-list-5/src/test/java/com/baeldung/java/list/ListContainsElementFromOtherListTest.java @@ -20,7 +20,7 @@ public class ListContainsElementFromOtherListTest { final private List listOfCities = Arrays.asList("London", "Berlin", "Paris", "Brussels"); @Test - public void givenWholeValuesToCompare_whenUsingCollectionsDisjoint_thenDetectElementsInTwoLists() { + public void givenValuesToCompare_whenUsingCollectionsDisjoint_thenDetectElementsInTwoLists() { boolean shouldBeTrue = !Collections.disjoint(listOfLetters, listOfLettersWithOverlap); assertTrue(shouldBeTrue); @@ -29,7 +29,7 @@ public class ListContainsElementFromOtherListTest { } @Test - public void givenWholeValuesToCompare_whenUsingStreams_thenDetectElementsInTwoLists() { + public void givenValuesToCompare_whenUsingStreams_thenDetectElementsInTwoLists() { boolean shouldBeTrue = listOfLetters.stream() .anyMatch(listOfLettersWithOverlap::contains); assertTrue(shouldBeTrue); @@ -40,7 +40,7 @@ public class ListContainsElementFromOtherListTest { } @Test - public void givenWholeValuesToCompare_whenUsingApacheCollectionUtils_thenDetectElementsInTwoLists() { + public void givenValuesToCompare_whenUsingApacheCollectionUtils_thenDetectElementsInTwoLists() { boolean shouldBeTrue = CollectionUtils.containsAny(listOfLetters, listOfLettersWithOverlap); assertTrue(shouldBeTrue); @@ -49,7 +49,7 @@ public class ListContainsElementFromOtherListTest { } @Test - public void givenWholePorpertiesInObjectsToCompare_whenUsingStreams_thenDetectElementsInTwoLists() { + public void givenPropertiesInObjectsToCompare_whenUsingStreams_thenDetectElementsInTwoLists() { Country france = new Country("France", "Paris"); Country belgium = new Country("Belgium", "Brussels"); Country spain = new Country("Spain", "Madrid");