diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java index ae3ae33ffe..9e60b1c4f3 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java +++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java @@ -257,7 +257,7 @@ public AbstractDebugTest(String name) { @Override protected void setUp() throws Exception { - TestUtil.log(IStatus.INFO, getName(), "setUp"); + TestUtil.logInfo("SETUP " + getClass().getSimpleName() + "." + getName()); super.setUp(); setPreferences(); IProject pro = ResourcesPlugin.getWorkspace().getRoot().getProject(ONE_FOUR_PROJECT_NAME); @@ -2790,7 +2790,7 @@ public void runBare() throws Throwable { @Override protected void tearDown() throws Exception { - TestUtil.log(IStatus.INFO, getName(), "tearDown"); + TestUtil.logInfo("TDOWN " + getClass().getSimpleName() + "." + getName()); shutdownDebugTargets(); TestUtil.cleanUp(getName()); super.tearDown(); diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/TestUtil.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/TestUtil.java index 5b8c3a1516..c25fcc475f 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/TestUtil.java +++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/TestUtil.java @@ -15,9 +15,11 @@ import java.lang.management.ManagementFactory; import java.lang.management.ThreadInfo; +import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; +import java.util.Date; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; @@ -65,6 +67,10 @@ public static void cleanUp(String owner) { Assert.assertEquals("expected no launches after test", Collections.EMPTY_LIST, launches); } + public static void logInfo(String message) { + System.out.println(new SimpleDateFormat("HH:mm:ss.SSS").format(new Date()) + " " + message); + } + public static void log(int severity, String owner, String message, Throwable... optionalError) { message = "[" + owner + "] " + message; Throwable error = null; diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/OpenFromClipboardTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/OpenFromClipboardTests.java index f3fd267d86..7275f18145 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/OpenFromClipboardTests.java +++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/ui/OpenFromClipboardTests.java @@ -24,7 +24,6 @@ import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Path; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.IJavaProject; @@ -120,13 +119,13 @@ private static IJavaProject createProject(String name) throws CoreException { @Before public void setUp() throws Exception { - TestUtil.log(IStatus.INFO, name.getMethodName(), "setUp"); + TestUtil.logInfo("SETUP " + getClass().getSimpleName() + "." + name.getMethodName()); fSourceFolder = JavaProjectHelper.addSourceContainer(fJProject, "src"); } @After public void tearDown() throws Exception { - TestUtil.log(IStatus.INFO, name.getMethodName(), "tearDown"); + TestUtil.logInfo("TDOWN " + getClass().getSimpleName() + "." + name.getMethodName()); JavaProjectHelper.removeSourceContainer(fJProject, "src"); }