We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6eff60 commit dde72a9Copy full SHA for dde72a9
platform-tests/src/test/java/org/junit/platform/commons/util/ReflectionUtilsTests.java
@@ -816,6 +816,10 @@ void tryToLoadClassTrimsClassName() {
816
void tryToLoadClassForPrimitive() {
817
assertThat(ReflectionUtils.tryToLoadClass(int.class.getName())).isEqualTo(success(int.class));
818
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));
823
}
824
825
@Test
0 commit comments