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)

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

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
(cherry picked from commit 7dcb3a0)
  • Loading branch information
peterzhuamazon authored and github-actions[bot] committed Sep 30, 2022
1 parent 6f2cf89 commit 50cab31
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 50cab31

Please sign in to comment.