View Javadoc

1   package com.sri.emo.commandline;
2   
3   import com.jcorporate.expresso.core.registry.MutableRequestRegistry;
4   import com.jcorporate.expresso.core.security.SuperUser;
5   import com.jcorporate.expresso.services.test.TestSystemInitializer;
6   
7   public class AbstractEmoUtility {
8   
9   	
10  	protected static boolean checkArgs(String[] args) {
11      	if (args.length == 0) {
12      		return false;
13      	}
14  		
15      	return true;
16  	}
17  	
18  	protected static void setupExpresso(String defaultContextName) throws Exception  {
19  		
20  		//FIXME: This is getting clobbered by the schema creator.  why?
21      	new MutableRequestRegistry(System.getProperty("junit.argv.testContext",defaultContextName),SuperUser.INSTANCE);
22  		//
23  		//Setup Expresso.
24  		//
25      	TestSystemInitializer.setUp();
26      	
27      	
28  	
29  	}
30  
31  	
32  
33  	public AbstractEmoUtility() {
34  		super();
35  	}
36  
37  }