@Override public void clear() { delegate.clear(); } }
@Override public void stop() { cleanup(); system.clear(); }
@Override public void stop() { cleanup(); system.clear(); }
@Override public void stop() { cleanup(); system.clear(); }
/** * Stops the test container gracefully, undeploying all modules and uninstalling all bundles. */ @Override public void stop() { if (glassFish != null) { cleanup(); system.clear(); } else { LOG.warn("Framework does not exist. Called start() before ? "); } }
@Override public void stop() { if (framework != null) { try { cleanup(); stopOrAbort(); framework = null; system.clear(); } catch (BundleException exc) { LOG.warn("Problem during stopping fw.", exc); } catch (InterruptedException exc) { LOG.warn("InterruptedException during stopping fw.", exc); } } else { LOG.warn("Framework does not exist. Called start() before ? "); } }
@Override public TestContainer stop() { if (framework != null) { try { cleanup(); stopOrAbort(); framework = null; system.clear(); } catch (BundleException e) { LOG.warn("Problem during stopping fw.", e); } catch (InterruptedException e) { LOG.warn("InterruptedException during stopping fw.", e); } } else { LOG.warn("Framework does not exist. Called start() before ? "); } return this; }
/** * Clears up resources taken by system (like temporary files). */ @Override public void clear() { try { warnUnusedOptions(); if (clean == null || clean.getValue() == Boolean.TRUE) { for (ExamSystem sys : subsystems) { sys.clear(); } FileUtils.delete(cache.getCanonicalFile()); } } catch (IOException e) { // LOG.info("Clearing " + this.toString() + " failed." ,e); } }
target = null; if (deleteRuntime) { system.clear(); try { FileUtils.forceDelete(targetFolder);
/** * {@inheritDoc} */ public synchronized TestContainer stop() { LOG.debug( "Shutting down the test container (Pax Runner)" ); try { if( m_started ) { m_target.stop(); RemoteBundleContextClient remoteBundleContextClient = m_target.getClientRBC(); if( remoteBundleContextClient != null ) { remoteBundleContextClient.stop(); } if( m_javaRunner != null ) { m_javaRunner.shutdown(); } } else { throw new RuntimeException( "Container never came up" ); } } finally { m_started = false; m_target = null; m_system.clear(); } return this; }
target = null; if (shouldDeleteRuntime()) { system.clear(); try { FileUtils.forceDelete(targetFolder);
target = null; if (shouldDeleteRuntime()) { system.clear(); try { FileUtils.forceDelete(targetFolder);
target = null; if (shouldDeleteRuntime()) { system.clear(); try { FileUtils.forceDelete(targetDirectory.toFile());
target = null; if (shouldDeleteRuntime()) { system.clear(); try { FileUtils.forceDelete(targetDirectory.toFile());