}
public boolean shouldCleanup()
{
final CleanupUsingScript cleanupUsingScriptAnnotation = metadataExtractor.cleanupUsingScript().fetchUsingFirst(testMethod);
return cleanupUsingScriptAnnotation == null || TestExecutionPhase.NONE.equals(cleanupUsingScriptAnnotation.phase());
}
public boolean shouldCleanupBefore()
{
return shouldCleanup() && TestExecutionPhase.BEFORE.equals(getCleanupTestPhase());