Skip to content

Commit

Permalink
fix assert messages
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabarov committed Dec 19, 2024
1 parent f760f89 commit e032017
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void testBrowserCallableAndEndpointAnnotationsMarkedAsInternal() {
if (!clazz.getName().contains(".test.") && !clazz
.isAnnotationPresent(InternalBrowserCallable.class)) {
Assertions.fail("Class " + clazz.getName()
+ " is annotated with @InternalBrowserCallable and must be annotated with @BrowserCallable or @Endpoint.");
+ " is annotated with @BrowserCallable or @Endpoint, but missing @InternalBrowserCallable.");
}
}
}
Expand All @@ -47,7 +47,7 @@ public void testInternalBrowserCallableHasBrowserCallableOrEndpoint()
if (!clazz.isAnnotationPresent(BrowserCallable.class)
&& !clazz.isAnnotationPresent(Endpoint.class)) {
Assertions.fail("Class " + clazz.getName()
+ " is annotated with @BrowserCallable or @Endpoint, but missing @InternalBrowserCallable.");
+ " is annotated with @InternalBrowserCallable and must be annotated with @BrowserCallable or @Endpoint.");
}
}
}
Expand Down

0 comments on commit e032017

Please sign in to comment.