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 5ffb53d commit 84189a2Copy full SHA for 84189a2
src/main/java/io/github/bonigarcia/seljup/SeleniumJupiter.java
@@ -749,8 +749,9 @@ private boolean isSingleSession(ExtensionContext extensionContext) {
749
boolean singleSession = false;
750
Optional<Class<?>> testClass = extensionContext.getTestClass();
751
if (testClass.isPresent()) {
752
- singleSession = testClass.get()
753
- .isAnnotationPresent(SingleSession.class);
+ singleSession =
+ findAnnotation(testClass.get(), SingleSession.class)
754
+ .isPresent();
755
}
756
log.trace("Single session {}", singleSession);
757
return singleSession;
0 commit comments