Commit d0c5995f authored by Daniel Bluhm's avatar Daniel Bluhm

Remove now useless helpers

Signed-off-by: Daniel Bluhm's avatarDaniel Bluhm <bluhmdj@ornl.gov>
parent 8f91e144
......@@ -13,10 +13,8 @@ package org.eclipse.ice.tests.dev.annotations.processors;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Locale;
import javax.annotation.processing.Processor;
import javax.tools.Diagnostic;
import javax.tools.JavaFileObject;
import org.eclipse.ice.dev.annotations.processors.DataElementProcessor;
......@@ -31,14 +29,7 @@ import static com.google.testing.compile.Compiler.*;
*/
public class DataElementAnnotationTestHelper {
private boolean showDiagnostics = false;
public DataElementAnnotationTestHelper() {
String show = System.getenv("SHOW_DIAGNOSTICS");
if (show != null && show.equals("true")) {
this.showDiagnostics = true;
}
}
public DataElementAnnotationTestHelper() { }
/**
* Retrieve an instance of Lombok's Annotation Processor.
......@@ -66,18 +57,6 @@ public class DataElementAnnotationTestHelper {
return p;
}
private void printDiagnostics(Compilation compilation) {
for (Diagnostic<? extends JavaFileObject> diag :
compilation.diagnostics()
) {
System.err.println(String.format(
"[%s]: %s",
diag.getKind().toString(),
diag.getMessage(Locale.ENGLISH)
));
}
}
/**
* Compile the sources with needed processors.
* @param sources to compile
......@@ -89,9 +68,6 @@ public class DataElementAnnotationTestHelper {
getLombokAnnotationProcessor(),
new DataElementProcessor()
).compile(sources);
if (showDiagnostics) {
printDiagnostics(compilation);
}
return compilation;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment