package us.kbase.workspace.test;

import static us.kbase.common.test.TestCommon.getTestProperty;
import static us.kbase.common.test.TestCommon.destroyDB;

import com.mongodb.DB;

public class WorkspaceTestCommon {
	
	public static final String PLACKUPEXE = "test.plackup.exe";
	public static final String HANDLE_SRV_PSGI = "test.handle.service.psgi";
	public static final String HANDLE_MGR_PSGI = "test.handle.manager.psgi";
	public static final String HANDLE_PERL5LIB = "test.handle.PERL5LIB";
	
	public static final String GRIDFS = "gridFS";
	public static final String SHOCK = "shock";
			
	public static String getPlackupExe() {
		return getTestProperty(PLACKUPEXE);
	}
	
	public static String getHandleServicePSGI() {
		return getTestProperty(HANDLE_SRV_PSGI);
	}
	
	public static String getHandleManagerPSGI() {
		return getTestProperty(HANDLE_MGR_PSGI);
	}
	
	public static String getHandlePERL5LIB() {
		return getTestProperty(HANDLE_PERL5LIB);
	}
	
	public static void destroyWSandTypeDBs(DB mdb, String typedb) {
		destroyDB(mdb);
		destroyDB(mdb.getSisterDB(typedb));
	}
}

@@ -31,71 +31,8 @@
 t;%0A%0A
-import static us.kbase.common.test.TestCommon.getTestProperty;%0A
 impo
@@ -150,750 +150,8 @@
 %7B%0A%09%0A
-%09public static final String PLACKUPEXE = %22test.plackup.exe%22;%0A%09public static final String HANDLE_SRV_PSGI = %22test.handle.service.psgi%22;%0A%09public static final String HANDLE_MGR_PSGI = %22test.handle.manager.psgi%22;%0A%09public static final String HANDLE_PERL5LIB = %22test.handle.PERL5LIB%22;%0A%09%0A%09public static final String GRIDFS = %22gridFS%22;%0A%09public static final String SHOCK = %22shock%22;%0A%09%09%09%0A%09public static String getPlackupExe() %7B%0A%09%09return getTestProperty(PLACKUPEXE);%0A%09%7D%0A%09%0A%09public static String getHandleServicePSGI() %7B%0A%09%09return getTestProperty(HANDLE_SRV_PSGI);%0A%09%7D%0A%09%0A%09public static String getHandleManagerPSGI() %7B%0A%09%09return getTestProperty(HANDLE_MGR_PSGI);%0A%09%7D%0A%09%0A%09public static String getHandlePERL5LIB() %7B%0A%09%09return getTestProperty(HANDLE_PERL5LIB);%0A%09%7D%0A%09%0A
 %09pub

Remove more handle service cruft