File tree 5 files changed +8
-4
lines changed
scijava/scijava-discovery-therapi
org/scijava/discovery/therapi
org/scijava/discovery/therapi/test
5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 90
90
${scijava.allowedDuplicateClasses}
91
91
</scijava-discovery-therapi .allowedDuplicateClasses>
92
92
<allowedDuplicateClasses >${scijava-discovery-therapi.allowedDuplicateClasses}</allowedDuplicateClasses >
93
+ <therapi .packages></therapi .packages>
93
94
</properties >
94
95
<dependencies >
95
96
<dependency >
Original file line number Diff line number Diff line change 1
1
module org .scijava .discovery .therapi {
2
2
3
3
exports org .scijava .discovery .therapi ;
4
+ opens org .scijava .discovery .therapi to therapi .runtime .javadoc ;
4
5
5
6
requires org .scijava .discovery ;
6
7
requires therapi .runtime .javadoc ;
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ private static Class<?> getClass(String name) throws ClassNotFoundException {
40
40
* class loader if non-null; otherwise it will be the system class loader.
41
41
* <p>
42
42
* Forked from SciJava Common's Context class.
43
+ *
44
+ * @implNote test
43
45
*
44
46
* @see Thread#getContextClassLoader()
45
47
* @see ClassLoader#getSystemClassLoader()
Original file line number Diff line number Diff line change 1
- module org .scijava .discovery .therapi .test {
1
+ open module org .scijava .discovery .therapi .test {
2
2
3
3
requires junit ;
4
4
5
5
requires org .scijava .discovery ;
6
6
requires org .scijava .discovery .therapi ;
7
7
8
8
exports org .scijava .discovery .therapi .test to junit ;
9
- opens org .scijava .discovery .therapi .test to therapi .runtime .javadoc ;
10
9
11
- }
10
+ }
Original file line number Diff line number Diff line change @@ -14,8 +14,9 @@ public class TherapiDiscovererTest extends TherapiDiscoverer {
14
14
15
15
@ Test
16
16
public void discoverClass () {
17
+ System .out .println ("CLASS PATH: " + System .getProperty ("java.class.path" ) + "\n " );
18
+ System .out .println ("MODULE PATH: " + System .getProperty ("jdk.module.path" ));
17
19
List <Discovery <AnnotatedElement >> list = new TherapiDiscoverer ().elementsTaggedWith ("test" );
18
- System .out .println ("Tagged Elements: " + list );
19
20
List <AnnotatedElement > elements = list .stream ().map (d -> d .discovery ()).collect (Collectors .toList ());
20
21
Assert .assertTrue (elements .contains (ClassTest .class ));
21
22
}
You can’t perform that action at this time.
0 commit comments