Skip to content

Commit dde72a9

Browse files
committed
Polishing
1 parent f6eff60 commit dde72a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform-tests/src/test/java/org/junit/platform/commons/util/ReflectionUtilsTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,10 @@ void tryToLoadClassTrimsClassName() {
816816
void tryToLoadClassForPrimitive() {
817817
assertThat(ReflectionUtils.tryToLoadClass(int.class.getName())).isEqualTo(success(int.class));
818818
assertThat(ReflectionUtils.tryToLoadClass(void.class.getName())).isEqualTo(success(void.class));
819+
820+
// The following should be equivalent to the above, but just to be sure...
821+
assertThat(ReflectionUtils.tryToLoadClass("int")).isEqualTo(success(int.class));
822+
assertThat(ReflectionUtils.tryToLoadClass("void")).isEqualTo(success(void.class));
819823
}
820824

821825
@Test

0 commit comments

Comments
 (0)