Skip to content

Commit f5cc814

Browse files
committed
Latest Android Update broke test resources so reading overview.json from hard-coded path
1 parent d1195e0 commit f5cc814

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/AndroidClient/client/src/test/java/net/servicestack/client/tests/TechStacksServiceTests.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import net.servicestack.client.JsonServiceClient;
55
import net.servicestack.client.Utils;
66

7+
import java.io.FileInputStream;
78
import java.io.IOException;
89
import java.io.InputStream;
910
import java.util.ArrayList;
@@ -115,8 +116,10 @@ public void test_Can_deserialize_Full_Option() {
115116

116117
public void test_Can_deserialize_Overview() throws IOException {
117118

118-
InputStream is = TechStacksServiceTests.class.getResourceAsStream("/overview.json");
119-
String json = Utils.readToEnd(is, "UTF-8");
119+
//Latest Android Update broke test resources
120+
//InputStream is = TechStacksServiceTests.class.getResourceAsStream("/overview.json");
121+
//String json = Utils.readToEnd(is, "UTF-8");
122+
String json = Utils.readToEnd(new FileInputStream("C:\\src\\ServiceStack.Java\\src\\AndroidClient\\client\\src\\test\\resources\\overview.json"), "UTF-8");
120123

121124
OverviewResponse dto = (OverviewResponse)client.fromJson(json, OverviewResponse.class);
122125

0 commit comments

Comments
 (0)