Temporary workaround to make tests running in eXept builds.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 28 Jan 2015 00:49:44 +0000
changeset 3359 cb6c15e66bed
parent 3358 a3407cf1cd0d
child 3360 1a8899091305
child 3366 4196df8a8dfa
child 3379 b59fe7ac4b49
Temporary workaround to make tests running in eXept builds. Reloader and lookup tests requires 'stx:libjava/tools' resp. 'stx:libjava/experiments' package to run. These packages are not loaded by default in eXept builds. As a workaround, load them in setUp. Proper solution would be to fix test packaging.
JavaInitializedResource.st
JavaLookupTests.st
--- a/JavaInitializedResource.st	Tue Jan 27 22:34:10 2015 +0000
+++ b/JavaInitializedResource.st	Wed Jan 28 00:49:44 2015 +0000
@@ -61,6 +61,7 @@
 
     | java_lang_System |
 
+    Smalltalk loadPackage: 'stx:libjava/tools'.
     (java_lang_System := Java at: 'java.lang.System') ifNil:[
         Java initialize.
         JavaVM initializeVM.
--- a/JavaLookupTests.st	Tue Jan 27 22:34:10 2015 +0000
+++ b/JavaLookupTests.st	Wed Jan 28 00:49:44 2015 +0000
@@ -99,6 +99,7 @@
 setUp
     | md |
 
+    Smalltalk loadPackage: 'stx:libjava/experiments'.
     self javaTestClasses do:[:each | 
         md := each methodDictionary.
         md copy keysAndValuesDo:[:sel :m|