/** * Create a working directory, it should be the build directory. Under this * directory an ApacheDS working directory will be created, this directory * will be deleted when the MiniKdc stops. * * @throws IOException */ public static void createTestDir() throws IOException { workDir = createTmpDir( new File(System.getProperty("build.test.dir", "build"))); }
public static void startMiniKdc() throws Exception { createTestDir(); createMiniKdcConf(); kdc = new MiniKdc(conf, workDir); kdc.start(); }
@AfterClass public static void tearDownSasl() throws Exception { stopMiniKdc(); FileUtils.deleteQuietly(workDir); }
@BeforeClass public static void setUpSasl() throws Exception { startMiniKdc(); }