Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Clement Escoffier <clement.escoffier@gmail.com>
- Loading branch information
1 parent
97f27a5
commit 15c4bb4
Showing
2 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
core/wisdom-engine/src/test/java/org/wisdom/engine/ssl/FakeKeyStoreTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.wisdom.engine.ssl; | ||
|
||
import org.junit.Test; | ||
|
||
import java.io.File; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
public class FakeKeyStoreTest { | ||
|
||
@Test | ||
public void testKeyManagerFactory() throws Exception { | ||
File root = new File("target/tmp/security"); | ||
root.mkdirs(); | ||
File conf = new File(root, "conf"); | ||
conf.mkdirs(); | ||
FakeKeyStore.keyManagerFactory(root); | ||
assertThat(new File(conf, "fake.keystore")).isFile(); | ||
} | ||
} |