Skip to content

Commit

Permalink
Change TrustStoreTest to use File.separator to support Windows path (o…
Browse files Browse the repository at this point in the history
…pensearch-project#258)

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Sep 30, 2022
1 parent 40290ac commit 7dcb3a0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class TrustStoreTest {
public void testCreate() throws Exception {
String resourceName = "sample.pem";
String absolutePath = new File(getClass().getClassLoader().getResource(resourceName).getFile()).getAbsolutePath();
assertTrue(absolutePath.endsWith("/sample.pem"));
assertTrue(absolutePath.endsWith(File.separator + "sample.pem"));

KeyStore store = new TrustStore(absolutePath).create();
assertNotNull(store);
Expand Down

0 comments on commit 7dcb3a0

Please sign in to comment.