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 c8000fc commit 43b87adCopy full SHA for 43b87ad
junit-jupiter-api/src/main/java/org/junit/jupiter/api/AssertionUtils.java
@@ -64,11 +64,11 @@ static void fail(Supplier<@Nullable String> messageSupplier) {
64
static String getCanonicalName(Class<?> clazz) {
65
try {
66
String canonicalName = clazz.getCanonicalName();
67
- return (canonicalName != null ? canonicalName : clazz.getName());
+ return (canonicalName != null ? canonicalName : clazz.getTypeName());
68
}
69
catch (Throwable t) {
70
UnrecoverableExceptions.rethrowIfUnrecoverable(t);
71
- return clazz.getName();
+ return clazz.getTypeName();
72
73
74
0 commit comments