summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbkolb2007-10-11 15:15:05 (EDT)
committer bkolb2007-10-11 15:15:05 (EDT)
commitfe95d154d1fec66c054f5730ea68552ee8c5f881 (patch)
tree7f43ede16de7f1b9efc056edc0c04f13c15c6350
parente40ad7cc4a11f1aa40ae41114a63c7282fb81f93 (diff)
downloadorg.eclipse.mwe-fe95d154d1fec66c054f5730ea68552ee8c5f881.zip
org.eclipse.mwe-fe95d154d1fec66c054f5730ea68552ee8c5f881.tar.gz
org.eclipse.mwe-fe95d154d1fec66c054f5730ea68552ee8c5f881.tar.bz2
refactored the tests
added an test for issuesImpl
-rw-r--r--tests/org.eclipse.emf.mwe.tests/build.properties1
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/AllAllTests.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/AllAllTests.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/AllTests.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/AllTests.java)3
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/IssuesTest.java77
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/WorkflowRunnerTest.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/WorkflowRunnerTest.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/AllTests.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/AllTests.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/WorkflowParserTest.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/WorkflowParserTest.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/parser/AllTests.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/parser/AllTests.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/parser/XmlLocationAnalyserTest.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/parser/XmlLocationAnalyserTest.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/AbstractWorkflowParsingTestBase.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/AbstractWorkflowParsingTestBase.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/AllTests.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/AllTests.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/VisitorAnalyzerTest.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/VisitorAnalyzerTest.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/WorkflowFactoryTest.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/WorkflowFactoryTest.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/lib/AbstractWorkflowComponentTest.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/lib/AbstractWorkflowComponentTest.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/lib/AllTests.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/lib/AllTests.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/AllTests.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/AllTests.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/DummyResourceLoader.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/DummyResourceLoader.java)0
-rw-r--r--tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/ResourceLoaderFactoryTest.java (renamed from tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/ResourceLoaderFactoryTest.java)0
18 files changed, 79 insertions, 2 deletions
diff --git a/tests/org.eclipse.emf.mwe.tests/build.properties b/tests/org.eclipse.emf.mwe.tests/build.properties
index 2ae2505..50ef82f 100644
--- a/tests/org.eclipse.emf.mwe.tests/build.properties
+++ b/tests/org.eclipse.emf.mwe.tests/build.properties
@@ -8,7 +8,6 @@ bin.includes = plugin.xml,\
.,\
epl-v10.html,\
modeling32.png,\
- about.properties,\
about.mappings,\
about.ini,\
about.html,\
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/AllAllTests.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/AllAllTests.java
index 112b299..112b299 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/AllAllTests.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/AllAllTests.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/AllTests.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/AllTests.java
index 1e84dfa..0114dfa 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/AllTests.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/AllTests.java
@@ -7,9 +7,10 @@ public class AllTests {
public static Test suite() {
TestSuite suite = new TestSuite(
- "Test for org.eclipse.emf.mwe.tests");
+ "Test for org.eclipse.emf.mwe.core.tests");
//$JUnit-BEGIN$
suite.addTestSuite(WorkflowRunnerTest.class);
+ suite.addTestSuite(IssuesTest.class);
//$JUnit-END$
return suite;
}
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/IssuesTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/IssuesTest.java
new file mode 100644
index 0000000..becc843
--- /dev/null
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/IssuesTest.java
@@ -0,0 +1,77 @@
+package org.eclipse.emf.mwe.tests;
+
+import org.eclipse.emf.mwe.core.WorkflowComponent;
+import org.eclipse.emf.mwe.core.issues.IssuesImpl;
+
+import junit.framework.TestCase;
+
+public class IssuesTest extends TestCase {
+
+ private IssuesImpl issues;
+
+ @Override
+ protected void setUp() throws Exception {
+ issues = new IssuesImpl();
+ }
+
+ public void testAddErrorWorkflowComponentStringObjectThrowableListOfObject() {
+ issues.addError(null, "Test", null, null, null);
+ assertEquals(1, issues.getErrors().length);
+ }
+
+ public void testAddErrorWorkflowComponentString() {
+ issues.addError((WorkflowComponent) null, "Test");
+ assertEquals(1, issues.getErrors().length);
+ }
+
+ public void testAddErrorStringObject() {
+ issues.addError("Test", null);
+ assertEquals(1, issues.getErrors().length);
+ }
+
+ public void testAddErrorString() {
+ issues.addError("Test");
+ assertEquals(1, issues.getErrors().length);
+ }
+
+ public void testAddWarningWorkflowComponentString() {
+ issues.addWarning((WorkflowComponent) null, "Test");
+ assertEquals(1, issues.getWarnings().length);
+ }
+
+ public void testAddWarningStringObject() {
+ issues.addWarning("Test", null);
+ assertEquals(1, issues.getWarnings().length);
+ }
+
+ public void testAddWarningWorkflowComponentStringObjectThrowableListOfObject() {
+ issues.addWarning(null, "Test", null, null, null);
+ assertEquals(1, issues.getWarnings().length);
+ }
+
+ public void testAddWarningString() {
+ issues.addWarning("Test");
+ assertEquals(1, issues.getWarnings().length);
+ }
+
+ public void testAddInfoWorkflowComponentString() {
+ issues.addInfo((WorkflowComponent) null, "Test");
+ assertEquals(1, issues.getInfos().length);
+ }
+
+ public void testAddInfoStringObject() {
+ issues.addInfo("Test", null);
+ assertEquals(1, issues.getInfos().length);
+ }
+
+ public void testAddInfoWorkflowComponentStringObjectThrowableListOfObject() {
+ issues.addInfo(null, "Test", null, null, null);
+ assertEquals(1, issues.getInfos().length);
+ }
+
+ public void testAddInfoString() {
+ issues.addInfo("Test");
+ assertEquals(1, issues.getInfos().length);
+ }
+
+}
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/WorkflowRunnerTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/WorkflowRunnerTest.java
index 59a6e6e..59a6e6e 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/WorkflowRunnerTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/WorkflowRunnerTest.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/AllTests.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/AllTests.java
index 03dd453..03dd453 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/AllTests.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/AllTests.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/WorkflowParserTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/WorkflowParserTest.java
index 39fe0f7..39fe0f7 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/WorkflowParserTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/WorkflowParserTest.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/parser/AllTests.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/parser/AllTests.java
index 8dc6d5c..8dc6d5c 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/parser/AllTests.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/parser/AllTests.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/parser/XmlLocationAnalyserTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/parser/XmlLocationAnalyserTest.java
index f5bf347..f5bf347 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/parser/XmlLocationAnalyserTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/parser/XmlLocationAnalyserTest.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/AbstractWorkflowParsingTestBase.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/AbstractWorkflowParsingTestBase.java
index 50fc105..50fc105 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/AbstractWorkflowParsingTestBase.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/AbstractWorkflowParsingTestBase.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/AllTests.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/AllTests.java
index e5dfcd6..e5dfcd6 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/AllTests.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/AllTests.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/VisitorAnalyzerTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/VisitorAnalyzerTest.java
index 4f2333f..4f2333f 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/VisitorAnalyzerTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/VisitorAnalyzerTest.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/WorkflowFactoryTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/WorkflowFactoryTest.java
index a0f5b98..a0f5b98 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/ast/util/WorkflowFactoryTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/ast/util/WorkflowFactoryTest.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/lib/AbstractWorkflowComponentTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/lib/AbstractWorkflowComponentTest.java
index 5a1a7cd..5a1a7cd 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/lib/AbstractWorkflowComponentTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/lib/AbstractWorkflowComponentTest.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/lib/AllTests.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/lib/AllTests.java
index 471d0d2..471d0d2 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/lib/AllTests.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/lib/AllTests.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/AllTests.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/AllTests.java
index 0404c1f..0404c1f 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/AllTests.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/AllTests.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/DummyResourceLoader.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/DummyResourceLoader.java
index 842daf9..842daf9 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/DummyResourceLoader.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/DummyResourceLoader.java
diff --git a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/ResourceLoaderFactoryTest.java b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/ResourceLoaderFactoryTest.java
index 40ce295..40ce295 100644
--- a/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/core/tests/util/ResourceLoaderFactoryTest.java
+++ b/tests/org.eclipse.emf.mwe.tests/src/org/eclipse/emf/mwe/tests/util/ResourceLoaderFactoryTest.java