Author: dazarov
Date: 2010-02-10 15:28:46 -0500 (Wed, 10 Feb 2010)
New Revision: 20229
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/src/org/jboss/tools/cdi/text/ext/test/InjectedPointHyperlinkDetectorTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3125
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/src/org/jboss/tools/cdi/text/ext/test/InjectedPointHyperlinkDetectorTest.java
===================================================================
---
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/src/org/jboss/tools/cdi/text/ext/test/InjectedPointHyperlinkDetectorTest.java 2010-02-10
18:59:21 UTC (rev 20228)
+++
trunk/cdi/tests/org.jboss.tools.cdi.text.ext.test/src/org/jboss/tools/cdi/text/ext/test/InjectedPointHyperlinkDetectorTest.java 2010-02-10
20:28:46 UTC (rev 20229)
@@ -33,16 +33,20 @@
import org.jboss.tools.common.text.ext.util.AxisUtil;
public class InjectedPointHyperlinkDetectorTest extends TCKTest {
+ private static final String PROJECT_NAME = "/lookup/injectionpoint";
private static final String FILE_NAME =
"JavaSource/org/jboss/jsr299/tck/tests/lookup/injectionpoint/LoggerConsumer.java";
public static Test suite() {
return new TestSuite(InjectedPointHyperlinkDetectorTest.class);
}
-
-
+
public void testInjectedPointHyperlinkDetector() throws Exception {
- IProject project = importPreparedProject("/lookup/injectionpoint");
+ IProject project = importPreparedProject(PROJECT_NAME);
+ doTest(project);
+ cleanProject(PROJECT_NAME);
+ }
+ private void doTest(IProject project) throws Exception {
IFile javaFile = project.getFile(FILE_NAME);
assertTrue("The file \"" + FILE_NAME + "\" is not found",
(javaFile != null));