Merge branch 'testCaseFixes' of https://github.com/GDLMadushanka/carbon-device-mgt into testCaseFixes

4.x.x
GDLMadushanka 7 years ago
commit 1ecb9b0495

@ -29,7 +29,7 @@ public class CarbonContextInitializationUtil {
private final static String CARBON_HOME = "carbon.home"; private final static String CARBON_HOME = "carbon.home";
public static void initializeCarbonContext() { public static void initializeCarbonContext() {
if (System.getProperty("carbon.home") == null) { if (System.getProperty(CARBON_HOME) == null) {
File file = new File("src/test/resources"); File file = new File("src/test/resources");
if (file.exists()) { if (file.exists()) {
System.setProperty(CARBON_HOME, file.getAbsolutePath()); System.setProperty(CARBON_HOME, file.getAbsolutePath());

Loading…
Cancel
Save