test: fix
This commit is contained in:
@@ -33,7 +33,7 @@ public class ReflectionObjectTest {
|
|||||||
//region Field tests
|
//region Field tests
|
||||||
@Test
|
@Test
|
||||||
public void fieldsList() {
|
public void fieldsList() {
|
||||||
final List<String> expectedList = Arrays.asList("finalizedField", "simpleField");
|
final List<String> expectedList = Arrays.asList("finalizedField", "simpleField", "someIntField");
|
||||||
|
|
||||||
ReflectionObject refObj = new ReflectionObject(new SomeObject());
|
ReflectionObject refObj = new ReflectionObject(new SomeObject());
|
||||||
for (ReflectionField refField : refObj.fieldList()) {
|
for (ReflectionField refField : refObj.fieldList()) {
|
||||||
@@ -105,7 +105,7 @@ public class ReflectionObjectTest {
|
|||||||
//region Method tests
|
//region Method tests
|
||||||
@Test
|
@Test
|
||||||
public void methodsList() {
|
public void methodsList() {
|
||||||
final List<String> expectedList = Arrays.asList("getSimpleField", "setSimpleField");
|
final List<String> expectedList = Arrays.asList("getSimpleField", "setSimpleField", "getSomeIntField", "setSomeIntField");
|
||||||
|
|
||||||
ReflectionObject refObj = new ReflectionObject(new SomeObject());
|
ReflectionObject refObj = new ReflectionObject(new SomeObject());
|
||||||
for (ReflectionMethod refMethod : refObj.methodsList()) {
|
for (ReflectionMethod refMethod : refObj.methodsList()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user