@Before public void init() throws Exception { testKdc = new TestKDC(); testKdc.startDirectoryService(); testKdc.startKDC(); clientSubject = JaasUtil.loginClient(); serverSubject = JaasUtil.loginServer(); }
@After public void dispose() throws Exception { if (client != null) client.dispose(); if (server != null) server.dispose(); if (testKdc != null) testKdc.stopAll(); }