예제 #1
0
 @BeforeClass
 public static void startServer() throws URISyntaxException {
   CRYPTOR.randomizeMasterKey();
   SERVER.start();
   SERVLET =
       SERVER.createServlet(
           TMP_VAULT.toPath(),
           CRYPTOR,
           new ArrayList<String>(),
           new ArrayList<String>(),
           "JUnitTestVault");
   SERVLET.start();
   VAULT_BASE_URI = new URI("http", SERVLET.getServletUri().getSchemeSpecificPart() + "/", null);
   Assert.assertTrue(SERVLET.isRunning());
   Assert.assertNotNull(VAULT_BASE_URI);
 }
예제 #2
0
 @AfterClass
 public static void stopServer() {
   SERVLET.stop();
   SERVER.stop();
   FileUtils.deleteQuietly(TMP_VAULT);
 }