Author: dgolovin
Date: 2008-06-19 01:59:11 -0400 (Thu, 19 Jun 2008)
New Revision: 8841
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/TemplatesExpressionParsingTest.java
trunk/vpe/tests/org.jboss.tools.vpe.test/testFailure-plugin.xml
trunk/vpe/tests/org.jboss.tools.vpe.test/testOk-plugin.xml
Log:
fix NullPointerException in test
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/TemplatesExpressionParsingTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/TemplatesExpressionParsingTest.java 2008-06-19
05:57:16 UTC (rev 8840)
+++
trunk/vpe/tests/org.jboss.tools.vpe.test/src/org/jboss/tools/vpe/test/TemplatesExpressionParsingTest.java 2008-06-19
05:59:11 UTC (rev 8841)
@@ -93,6 +93,20 @@
}
/**
+ * Creates test template and testing possible(without errors) variants
+ *
+ * @throws Exception
+ */
+ public void testCorrectTemplates() throws Exception {
+ createTemplatesForTesting(PLUGIN_OK_NAME);
+ vpeTemplateManager = VpeTemplateManager.getInstance();
+ vpeTemplateManager.reload();
+ assertNull("Can not parse template from ReDHat DevStudio" + iStatus,
iStatus);
+ assertEquals("There exist some errors", 0, errorNumber);
+ return;
+ }
+
+ /**
* Creates test template and testing that extensions with errors have errors
* variants
*
@@ -109,19 +123,6 @@
return;
}
- /**
- * Creates test template and testing possible(without errors) variants
- *
- * @throws Exception
- */
- public void testCorrectTemplates() throws Exception {
- createTemplatesForTesting(PLUGIN_OK_NAME);
- vpeTemplateManager = VpeTemplateManager.getInstance();
- vpeTemplateManager.reload();
- assertNull("Can not parse template from ReDHat DevStudio" + iStatus,
iStatus);
- assertEquals("There exist some errors", 0, errorNumber);
- return;
- }
/**
* Tests passible template
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/testFailure-plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/testFailure-plugin.xml 2008-06-19 05:57:16
UTC (rev 8840)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/testFailure-plugin.xml 2008-06-19 05:59:11
UTC (rev 8841)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<!-- This plugin contains test templates for which test must failed -->
<plugin>
- <extension id="org.jboss.tools.vpe.tests.failureExtensions"
+ <extension
point="org.jboss.tools.vpe.templates">
<templates
name="Test1"
Modified: trunk/vpe/tests/org.jboss.tools.vpe.test/testOk-plugin.xml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.test/testOk-plugin.xml 2008-06-19 05:57:16 UTC
(rev 8840)
+++ trunk/vpe/tests/org.jboss.tools.vpe.test/testOk-plugin.xml 2008-06-19 05:59:11 UTC
(rev 8841)
@@ -2,7 +2,7 @@
<?eclipse version="3.2"?>
<!-- This plugin contains test for which test must be successful -->
<plugin>
- <extension id="org.jboss.tools.vpe.tests.okExtensions"
+ <extension
point="org.jboss.tools.vpe.templates">
<templates
name="Test3"