Skip to content

Commit ce1e800

Browse files
committed
Fix Windows path in test
1 parent b8b33bb commit ce1e800

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/opentok/OpenTokTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,9 @@ public void testStopCaptions() throws Exception {
28562856
@Test
28572857
public void testVonageShim() throws Exception {
28582858
String appId = UUID.randomUUID().toString();
2859-
String testResourceDir = Paths.get(getClass().getResource("").toURI()).toString().replace("classes/java", "resources");
2859+
String testResourceDir = Paths.get(getClass().getResource("").toURI()).toString()
2860+
.replace("classes\\java", "classes/java")
2861+
.replace("classes/java", "resources");
28602862
var privateKeyPath = Paths.get(testResourceDir, "application_key");
28612863
OpenTok vonage = new OpenTok(appId, privateKeyPath);
28622864
assertNotNull(vonage);

0 commit comments

Comments
 (0)