Skip to content

Commit 245e0f3

Browse files
committed
BAEL-2448-Rev3
Renaming test class so it passes PMD checks. Reverting method names to previous commit.
1 parent bf31484 commit 245e0f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core-java-collections-list/src/test/java/com/baeldung/collection/filtering/CollectionFilteringTest.java renamed to core-java-collections-list/src/test/java/com/baeldung/collection/filtering/CollectionFilteringUnitTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @author Rodolfo Felipe
1717
*/
18-
public class CollectionFilteringTest {
18+
public class CollectionFilteringUnitTest {
1919

2020
private List<Employee> buildEmployeeList() {
2121
return Arrays.asList(new Employee(1, "Mike", 1), new Employee(2, "John", 1), new Employee(3, "Mary", 1), new Employee(4, "Joe", 2), new Employee(5, "Nicole", 2), new Employee(6, "Alice", 2), new Employee(7, "Bob", 3), new Employee(8, "Scarlett", 3));
@@ -26,7 +26,7 @@ private List<String> employeeNameFilter() {
2626
}
2727

2828
@Test
29-
public void givenEmployeeList_andNameFilterList_thenObtainFilteredEmployeeList_usingForEachLoopUnitTest() {
29+
public void givenEmployeeList_andNameFilterList_thenObtainFilteredEmployeeList_usingForEachLoop() {
3030
List<Employee> filteredList = new ArrayList<>();
3131
List<Employee> originalList = buildEmployeeList();
3232
List<String> nameFilter = employeeNameFilter();
@@ -44,7 +44,7 @@ public void givenEmployeeList_andNameFilterList_thenObtainFilteredEmployeeList_u
4444
}
4545

4646
@Test
47-
public void givenEmployeeList_andNameFilterList_thenObtainFilteredEmployeeList_usingLambdaUnitTest() {
47+
public void givenEmployeeList_andNameFilterList_thenObtainFilteredEmployeeList_usingLambda() {
4848
List<Employee> filteredList;
4949
List<Employee> originalList = buildEmployeeList();
5050
List<String> nameFilter = employeeNameFilter();
@@ -57,7 +57,7 @@ public void givenEmployeeList_andNameFilterList_thenObtainFilteredEmployeeList_u
5757
}
5858

5959
@Test
60-
public void givenEmployeeList_andNameFilterList_thenObtainFilteredEmployeeList_usingLambdaAndHashSetUnitTest() {
60+
public void givenEmployeeList_andNameFilterList_thenObtainFilteredEmployeeList_usingLambdaAndHashSet() {
6161
List<Employee> filteredList;
6262
List<Employee> originalList = buildEmployeeList();
6363
Set<String> nameFilterSet = employeeNameFilter().stream()

0 commit comments

Comments
 (0)