-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
When JUnit 5 test extensions store state into JUnit context storage at the test level (as opposed to method level), they use the class as a key rather than the class instance:
andhow/andhow-junit5-extensions/src/main/java/org/yarnandtail/andhow/junit5/ext/ExtensionBase.java
Line 23 in d632675
| return context.getStore(ExtensionContext.Namespace.create(getClass(), context.getRequiredTestClass())); |
Multithreaded tests could easily lose track of storage. This is more of a theoretical issue, since AndHow cannot really support parallelized testing due to the singleton model.
Might also rename the accessor methods getPerTestInstanceNamespace.