Refactor introspector

This commit is contained in:
Grzegorz Piwowarek
2017-06-10 11:58:42 +02:00
parent c9cd941fc7
commit 9cb18aebba
3 changed files with 15 additions and 20 deletions

View File

@@ -1,11 +1,12 @@
package com.baeldung.reflection;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.assertTrue;
public class BaeldungReflectionUtilsTest {
@Test
@@ -15,8 +16,8 @@ public class BaeldungReflectionUtilsTest {
List<String> result = BaeldungReflectionUtils.getNullPropertiesList(customer);
List<String> expectedFieldNames = Arrays.asList("emailId", "phoneNumber");
Assert.assertTrue(result.size() == expectedFieldNames.size());
Assert.assertTrue(result.containsAll(expectedFieldNames));
assertTrue(result.size() == expectedFieldNames.size());
assertTrue(result.containsAll(expectedFieldNames));
}