Skip to content

Commit 73ffb97

Browse files
author
ssambasu
committed
Fixing the property file path
1 parent 8099ffa commit 73ffb97

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

test-complete/src/test/java/com/marklogic/client/datamovement/functionaltests/QBFailover.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ public static void setUpBeforeClass() throws Exception {
130130
String location = null;
131131
String seperator = File.separator;
132132
try {
133-
input = new FileInputStream(System.getProperty("user.dir") + ".." + seperator + ".." + seperator + "qa"
134-
+ seperator + "failover-location.properties");
133+
input = new FileInputStream(System.getProperty("user.dir") + seperator + ".." + seperator + ".."
134+
+ seperator + "qa" + seperator + "failover-location.properties");
135135
prop.load(input);
136136
location = prop.getProperty("location");
137137
System.out.println(prop.getProperty("location"));

test-complete/src/test/java/com/marklogic/client/datamovement/functionaltests/WBFailover.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.marklogic.client.datamovement.functionaltests;
22

33
import java.io.BufferedReader;
4+
import java.io.File;
45
import java.io.FileInputStream;
56
import java.io.IOException;
67
import java.io.InputStream;
@@ -102,8 +103,10 @@ public static void setUpBeforeClass() throws Exception {
102103
Properties prop = new Properties();
103104
InputStream input = null;
104105
String location = null;
106+
String seperator = File.separator;
105107
try {
106-
input = new FileInputStream("failover-location.properties");
108+
input = new FileInputStream(System.getProperty("user.dir") + seperator + ".." + seperator + ".."
109+
+ seperator + "qa" + seperator + "failover-location.properties");
107110
prop.load(input);
108111
location = prop.getProperty("location");
109112
System.out.println(prop.getProperty("location"));

0 commit comments

Comments
 (0)