Skip to content

Commit

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

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

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
(cherry picked from commit 7dcb3a0)

Co-authored-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
1 parent 6f2cf89 commit 0bd06b9
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 0bd06b9

Please sign in to comment.