fixed test utility
This commit is contained in:
parent
084369799c
commit
532b9c3ad9
|
@ -31,7 +31,7 @@ public class ContextTest {
|
||||||
|
|
||||||
protected static final String GCAT_PROPERTIES_FILENAME = "gcat.properties";
|
protected static final String GCAT_PROPERTIES_FILENAME = "gcat.properties";
|
||||||
public static final String GCAT_URL_PROPERTY = "GCAT_URL_PROPERTY";
|
public static final String GCAT_URL_PROPERTY = "GCAT_URL_PROPERTY";
|
||||||
public static final String GCAT_URL;
|
public static String GCAT_URL;
|
||||||
|
|
||||||
|
|
||||||
public static final String DEFAULT_TEST_CONTEXT_NAME;
|
public static final String DEFAULT_TEST_CONTEXT_NAME;
|
||||||
|
@ -61,12 +61,12 @@ public class ContextTest {
|
||||||
try {
|
try {
|
||||||
// load the properties file
|
// load the properties file
|
||||||
gcatProperties.load(input);
|
gcatProperties.load(input);
|
||||||
} catch (IOException e) {
|
GCAT_URL = gcatProperties.getProperty(GCAT_URL_PROPERTY);
|
||||||
throw new RuntimeException(e);
|
} catch (Exception e) {
|
||||||
|
// throw new RuntimeException(e);
|
||||||
|
GCAT_URL = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
GCAT_URL = gcatProperties.getProperty(GCAT_URL_PROPERTY);
|
|
||||||
|
|
||||||
if(GCAT_URL!=null){
|
if(GCAT_URL!=null){
|
||||||
try {
|
try {
|
||||||
GCatClientDiscovery.forceToURL(GCAT_URL);
|
GCatClientDiscovery.forceToURL(GCAT_URL);
|
||||||
|
|
Loading…
Reference in New Issue