Revision: 1730
          http://svn.sourceforge.net/vexi/?rev=1730&view=rev
Author:   mkpg2
Date:     2007-03-15 02:15:16 -0700 (Thu, 15 Mar 2007)

Log Message:
-----------
Small Refactoring

Modified Paths:
--------------
    core/trunk/org.vexi.core/src_junit/test/core/CoreTestCase.java

Modified: core/trunk/org.vexi.core/src_junit/test/core/CoreTestCase.java
===================================================================
--- core/trunk/org.vexi.core/src_junit/test/core/CoreTestCase.java      
2007-03-14 16:31:17 UTC (rev 1729)
+++ core/trunk/org.vexi.core/src_junit/test/core/CoreTestCase.java      
2007-03-15 09:15:16 UTC (rev 1730)
@@ -1,5 +1,8 @@
 package test.core;
 
+import java.util.ArrayList;
+import java.util.List;
+
 import junit.framework.TestCase;
 
 import org.ibex.js.JS;
@@ -30,14 +33,24 @@
                super(resourceDir, templateFileName.replace(".t", ""));
        }
        
-       protected String getSharedDir(){
-               return CoreTestCase.class.getResource("shared").getPath();
+       protected void getSharedDir(){}
+       
+       protected void addSharedDirs(List sharedDirs){
+               
sharedDirs.add(CoreTestCase.class.getResource("shared").getPath());
        }
        
        protected void runTest() throws Throwable {
         Platform.forceLoad();
-        String sharedDir = getSharedDir();
-               final Vexi v = DevUtil.createVexi(new String[]{sharedDir, 
resourceDir});
+        List sharedDirs = new ArrayList();
+        addSharedDirs(sharedDirs);
+        String[] dirs = new String[sharedDirs.size()+1];
+        int i;
+        for(i=0; i<sharedDirs.size(); i++){
+               dirs[i] = (String) sharedDirs.get(i);
+        }
+        dirs[i] = resourceDir;
+        
+               final Vexi v = DevUtil.createVexi(dirs);
 
                
                


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to