tests/stx_libjava_tests.st
changeset 3538 437fc55b3eed
parent 3514 b3cbf3ca5dcf
child 3601 4f1b473722cb
--- a/tests/stx_libjava_tests.st	Tue Mar 15 15:46:32 2016 +0000
+++ b/tests/stx_libjava_tests.st	Sun Mar 20 23:55:04 2016 +0000
@@ -79,6 +79,19 @@
     )
 !
 
+includedInPreRequisites
+    "list packages which are to be implicitely included in the prerequisites list,
+     even if not found by the automatic search.
+     Redefine this, if classes from other packages are referred to via reflection
+     or by constructing names dynamically (i.e. the search cannot find it)"
+
+    ^ #(
+        #'stx:libjava/libs' "/ For tests to compile
+    )
+
+    "Created: / 21-03-2016 / 00:27:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 mandatoryPreRequisites
     "list packages which are mandatory as a prerequisite.
      This are packages containing superclasses of my classes and classes which
@@ -95,17 +108,17 @@
 referencedPreRequisites
     "list packages which are a prerequisite, because they contain
      classes which are referenced by my classes.
-     We do not need these packages as a prerequisite for loading or compiling.
+     We do not need these packages as a prerequisite for compiling or loading,
+     however, a class from it may be referenced during execution and having it
+     unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
+     includes explicit checks for the package being present.
      This method is generated automatically,
      by searching all classes (and their packages) which are referenced by my classes."
 
     ^ #(
         #'stx:goodies/sunit'    "TestSuite - referenced by stx_libjava_tests class>>testSuite"
         #'stx:libjava'    "Java - referenced by stx_libjava_tests class>>testSuite"
-        #'stx:libjava/libs'     "For tests to compile..."
     )
-
-    "Modified: / 09-02-2015 / 10:09:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 subProjects
@@ -143,10 +156,8 @@
 !stx_libjava_tests class methodsFor:'description - java'!
 
 javaBundle
-
-    ^JavaCodeBundle standardPackageBundleFor: self package
-
-    "Created: / 15-01-2013 / 17:35:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    
+    ^ JavaCodeBundle standardPackageBundleFor: self package
 ! !
 
 !stx_libjava_tests class methodsFor:'description - project information'!