Skip to content

Commit

Permalink
Let @SingleSession supports meta-present (#447)
Browse files Browse the repository at this point in the history
Co-authored-by: Chew Sern Chiek <[email protected]>
  • Loading branch information
maokejackson and Chew Sern Chiek authored Feb 21, 2024
1 parent 5ffb53d commit 84189a2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,9 @@ private boolean isSingleSession(ExtensionContext extensionContext) {
boolean singleSession = false;
Optional<Class<?>> testClass = extensionContext.getTestClass();
if (testClass.isPresent()) {
singleSession = testClass.get()
.isAnnotationPresent(SingleSession.class);
singleSession =
findAnnotation(testClass.get(), SingleSession.class)
.isPresent();
}
log.trace("Single session {}", singleSession);
return singleSession;
Expand Down

0 comments on commit 84189a2

Please sign in to comment.