File tree 1 file changed +3
-3
lines changed
archunit/src/test/java/com/tngtech/archunit/core/domain
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,15 +83,15 @@ public void finds_array_type() {
83
83
JavaMethod method = importClassWithContext (IsArrayTestClass .class ).getMethod ("anArray" );
84
84
85
85
assertThat (method .getRawReturnType ().isArray ()).isTrue ();
86
- assertThat (method .getRawReturnType ().tryGetComponentType ().get (). getName ()). isEqualTo ( "java.lang. Object" );
86
+ assertThat (method .getRawReturnType ().tryGetComponentType ().get ()). matches ( Object . class );
87
87
}
88
88
89
89
@ Test
90
90
public void finds_non_array_type () {
91
91
JavaMethod method = importClassWithContext (IsArrayTestClass .class ).getMethod ("notAnArray" );
92
92
93
93
assertThat (method .getRawReturnType ().isArray ()).isFalse ();
94
- assertThat (method .getRawReturnType ().tryGetComponentType (). isPresent ()). isFalse ();
94
+ assertThat (method .getRawReturnType ().tryGetComponentType ()). isAbsent ();
95
95
}
96
96
97
97
@ Test
@@ -1152,4 +1152,4 @@ private class NestedNamedInnerClass {
1152
1152
}
1153
1153
}
1154
1154
}
1155
- }
1155
+ }
You can’t perform that action at this time.
0 commit comments