@Retention(value=CLASS) @Target(value=TYPE) public @interface ExportedTestClass
The test jar will need to be added as a dependency to the appropriate test runner.
pom.xml for instance.
Ideally, this annotation should have {@link RetentionPolicy#RUNTIME}, but it was left at the default of CLASS.
This means it can be read by classfile parsing tools, but not read via reflection (as required by the TestBatcher tool).
We shouldn't cyhange this, however, since we have a lot of plugins with compiled test-jars that uses the CLASS retention
value, and we don't want to mix those up with other test-jars compiled against the same annotation with RUNTIME
retention, which would get confusing since some would work with the Testbatcher and some wouldn't.
This class should probably be deprecated and replaced with another annotation (with RUNTIME retention!) in a
different maven module (one with no dependencies on Confluence itself).
Copyright © 2003–2021 Atlassian. All rights reserved.