@Override public void after() { super.after(); } }
@Override public void after() { // don't cleanup if using cache tmpdir if (TMP == null) { super.after(); } } };
@Override protected void after() { if (originalPropertyValue == null) { System.clearProperty(propertyName); } else { System.setProperty(propertyName, originalPropertyValue); } super.after(); } }
@Override protected void after() { if (originalPropertyValue == null) { System.clearProperty(propertyName); } else { System.setProperty(propertyName, originalPropertyValue); } super.after(); } }
/** * {@inheritDoc} */ @Override protected void after() { super.after(); if( failed ) { System.out.println( textCompiled ); } }
/** * Stops the {@link CommandExecutor} and the {@link ProjectManager}. */ @Override protected void after() { super.after(); executor.stop(); projectManager.close(ShuttingDownException::new); } }
@Override public void after() { // reset the classloader Thread.currentThread().setContextClassLoader( originalClassLoader ); try { classLoader.close(); } catch (IOException e) { throw new RuntimeException( e ); } super.after(); }
@Override protected void after() { try { for (RealmConfiguration configuration : configurations) { Realm.deleteRealm(configuration); } } catch (IllegalStateException e) { // Only throw the exception caused by deleting the opened Realm if the test case itself doesn't throw. if (!unitTestFailed) { throw e; } } finally { // This will delete the temp directory. super.after(); } }