Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2012-04-05 21:02:02 +0000
committerbvosburgh2012-04-05 21:02:02 +0000
commitab6dbade8a4502bddc3c1c786c0d6904b8c2d7dc (patch)
treef66ea2fce0c41c66a07aed40c8c9fe394313a44d /jpa/tests/org.eclipse.jpt.jpa.core.tests
parent96a78271f51aa80ffdd8defa7525729aa1609913 (diff)
downloadwebtools.dali-ab6dbade8a4502bddc3c1c786c0d6904b8c2d7dc.tar.gz
webtools.dali-ab6dbade8a4502bddc3c1c786c0d6904b8c2d7dc.tar.xz
webtools.dali-ab6dbade8a4502bddc3c1c786c0d6904b8c2d7dc.zip
capture sync and update stack traces for debugging
Diffstat (limited to 'jpa/tests/org.eclipse.jpt.jpa.core.tests')
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/model/JpaProjectManagerTests.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/model/JpaProjectManagerTests.java b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/model/JpaProjectManagerTests.java
index 67f5e60a01..afa17889bd 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/model/JpaProjectManagerTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.core.tests/src/org/eclipse/jpt/jpa/core/tests/internal/model/JpaProjectManagerTests.java
@@ -21,7 +21,7 @@ import org.eclipse.jpt.common.core.tests.internal.projects.TestFacetedProject;
import org.eclipse.jpt.common.core.tests.internal.projects.TestJavaProject;
import org.eclipse.jpt.common.core.tests.internal.projects.TestPlatformProject;
import org.eclipse.jpt.common.utility.internal.CollectionTools;
-import org.eclipse.jpt.common.utility.tests.internal.TestTools;
+import org.eclipse.jpt.common.utility.internal.ReflectionTools;
import org.eclipse.jpt.jpa.core.JpaFacet;
import org.eclipse.jpt.jpa.core.JpaProject;
import org.eclipse.jpt.jpa.core.JpaProjectManager;
@@ -54,7 +54,8 @@ public class JpaProjectManagerTests
}
private boolean debug() {
- return TestTools.debug(this.getGenericJpaProjectManagerClass());
+ Boolean debug = (Boolean) ReflectionTools.executeStaticMethod(this.getGenericJpaProjectManagerClass(), "debug");
+ return debug.booleanValue();
}
// InternalJpaProjectManager is package-private
@@ -128,14 +129,6 @@ public class JpaProjectManagerTests
return p.getProject().getFile(new Path(path));
}
- /**
- * Make sure the <code>DEBUG</code> constant is <code>false</code>
- * before checking in the code.
- */
- public void testDEBUG() {
- TestTools.assertFalseDEBUG(this.getGenericJpaProjectManagerClass());
- }
-
public void testJpaProjectManager() {
assertNotNull(this.getJpaProjectManager());
}

Back to the top