Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParallelTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParallelTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParallelTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParallelTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,84 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.Parallel;
+import org.apache.commons.scxml.ScxmlFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Parallel</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ParallelTest extends NamedElementTest {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ParallelTest.class);
+ }
+
+ /**
+ * Constructs a new Parallel test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ParallelTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Parallel test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private Parallel getFixture() {
+ return (Parallel)fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createParallel());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //ParallelTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParallelTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParamTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParamTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParamTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParamTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,84 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.Param;
+import org.apache.commons.scxml.ScxmlFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Param</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ParamTest extends ExecutableContentTest {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ParamTest.class);
+ }
+
+ /**
+ * Constructs a new Param test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ParamTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Param test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private Param getFixture() {
+ return (Param)fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createParam());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //ParamTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ParamTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/RaiseTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/RaiseTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/RaiseTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/RaiseTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,84 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.Raise;
+import org.apache.commons.scxml.ScxmlFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Raise</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class RaiseTest extends ExecutableContentTest {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(RaiseTest.class);
+ }
+
+ /**
+ * Constructs a new Raise test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public RaiseTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Raise test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private Raise getFixture() {
+ return (Raise)fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createRaise());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //RaiseTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/RaiseTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScriptTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScriptTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScriptTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScriptTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,104 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.framework.TestCase;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.Script;
+import org.apache.commons.scxml.ScxmlFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Script</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ScriptTest extends TestCase {
+
+ /**
+ * The fixture for this Script test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Script fixture = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ScriptTest.class);
+ }
+
+ /**
+ * Constructs a new Script test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ScriptTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Sets the fixture for this Script test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void setFixture(Script fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * Returns the fixture for this Script test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private Script getFixture() {
+ return fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createScript());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //ScriptTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScriptTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlAllTests.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlAllTests.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlAllTests.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlAllTests.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,63 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test suite for the '<em><b>Scxml</b></em>' model.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ScxmlAllTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new ScxmlAllTests("Scxml Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ScxmlAllTests(String name) {
+ super(name);
+ }
+
+} //ScxmlAllTests
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlAllTests.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlExample.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlExample.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlExample.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlExample.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,141 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import java.io.File;
+import java.io.IOException;
+
+import java.util.Iterator;
+
+import org.apache.commons.scxml.NamedElement;
+import org.apache.commons.scxml.ScxmlFactory;
+import org.apache.commons.scxml.ScxmlPackage;
+
+import org.eclipse.emf.common.util.Diagnostic;
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+
+import org.eclipse.emf.ecore.util.Diagnostician;
+
+import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * A sample utility for the '<em><b>scxml</b></em>' package.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ScxmlExample {
+ /**
+ * <!-- begin-user-doc -->
+ * Load all the argument file paths or URIs as instances of the model.
+ * <!-- end-user-doc -->
+ * @param args the file paths or URIs.
+ * @generated
+ */
+ public static void main(String[] args) {
+ // Create a resource set to hold the resources.
+ //
+ ResourceSet resourceSet = new ResourceSetImpl();
+
+ // Register the appropriate resource factory to handle all file
extensions.
+ //
+
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put
+ (Resource.Factory.Registry.DEFAULT_EXTENSION,
+ new XMIResourceFactoryImpl());
+
+ // Register the package to ensure it is available during
loading.
+ //
+ resourceSet.getPackageRegistry().put
+ (ScxmlPackage.eNS_URI,
+ ScxmlPackage.eINSTANCE);
+
+ // If there are no arguments, emit an appropriate usage message.
+ //
+ if (args.length == 0) {
+ System.out.println("Enter a list of file paths or URIs
that have content like this:");
+ try {
+ Resource resource =
resourceSet.createResource(URI.createURI("http:///My.scxml"));
+ NamedElement root =
ScxmlFactory.eINSTANCE.createNamedElement();
+ resource.getContents().add(root);
+ resource.save(System.out, null);
+ }
+ catch (IOException exception) {
+ exception.printStackTrace();
+ }
+ }
+ else {
+ // Iterate over all the arguments.
+ //
+ for (int i = 0; i < args.length; ++i) {
+ // Construct the URI for the instance file.
+ // The argument is treated as a file path only
if it denotes an existing file.
+ // Otherwise, it's directly treated as a URL.
+ //
+ File file = new File(args[i]);
+ URI uri = file.isFile() ?
URI.createFileURI(file.getAbsolutePath()): URI.createURI(args[0]);
+
+ try {
+ // Demand load resource for this file.
+ //
+ Resource resource =
resourceSet.getResource(uri, true);
+ System.out.println("Loaded " + uri);
+
+ // Validate the contents of the loaded
resource.
+ //
+ for (Iterator j =
resource.getContents().iterator(); j.hasNext(); ) {
+ EObject eObject =
(EObject)j.next();
+ Diagnostic diagnostic =
Diagnostician.INSTANCE.validate(eObject);
+ if (diagnostic.getSeverity() !=
Diagnostic.OK) {
+
printDiagnostic(diagnostic, "");
+ }
+ }
+ }
+ catch (RuntimeException exception) {
+ System.out.println("Problem loading " +
uri);
+ exception.printStackTrace();
+ }
+ }
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * Prints diagnostics with indentation.
+ * <!-- end-user-doc -->
+ * @param diagnostic the diagnostic to print.
+ * @param indent the indentation for printing.
+ * @generated
+ */
+ protected static void printDiagnostic(Diagnostic diagnostic, String
indent) {
+ System.out.print(indent);
+ System.out.println(diagnostic.getMessage());
+ for (Iterator i = diagnostic.getChildren().iterator();
i.hasNext(); ) {
+ printDiagnostic((Diagnostic)i.next(), indent + " ");
+ }
+ }
+
+} //ScxmlExample
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlExample.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlTests.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlTests.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlTests.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlTests.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,63 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import junit.textui.TestRunner;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test suite for the '<em><b>scxml</b></em>' package.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ScxmlTests extends TestSuite {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(suite());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static Test suite() {
+ TestSuite suite = new ScxmlTests("scxml Tests");
+ return suite;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ScxmlTests(String name) {
+ super(name);
+ }
+
+} //ScxmlTests
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ScxmlTests.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/SendTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/SendTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/SendTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/SendTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,84 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.ScxmlFactory;
+import org.apache.commons.scxml.Send;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Send</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SendTest extends ExecutableContentTest {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(SendTest.class);
+ }
+
+ /**
+ * Constructs a new Send test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SendTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Send test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private Send getFixture() {
+ return (Send)fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createSend());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //SendTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/SendTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ServiceTemplateTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ServiceTemplateTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ServiceTemplateTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ServiceTemplateTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,104 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.framework.TestCase;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.ScxmlFactory;
+import org.apache.commons.scxml.ServiceTemplate;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Service Template</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ServiceTemplateTest extends TestCase {
+
+ /**
+ * The fixture for this Service Template test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ServiceTemplate fixture = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ServiceTemplateTest.class);
+ }
+
+ /**
+ * Constructs a new Service Template test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ServiceTemplateTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Sets the fixture for this Service Template test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void setFixture(ServiceTemplate fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * Returns the fixture for this Service Template test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private ServiceTemplate getFixture() {
+ return fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createServiceTemplate());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //ServiceTemplateTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ServiceTemplateTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/StateTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/StateTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/StateTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/StateTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,84 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.ScxmlFactory;
+import org.apache.commons.scxml.State;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>State</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class StateTest extends NamedElementTest {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(StateTest.class);
+ }
+
+ /**
+ * Constructs a new State test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public StateTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this State test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private State getFixture() {
+ return (State)fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createState());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //StateTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/StateTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/TranslationTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/TranslationTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/TranslationTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/TranslationTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,104 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.framework.TestCase;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.ScxmlFactory;
+import org.apache.commons.scxml.Translation;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Translation</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class TranslationTest extends TestCase {
+
+ /**
+ * The fixture for this Translation test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Translation fixture = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(TranslationTest.class);
+ }
+
+ /**
+ * Constructs a new Translation test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public TranslationTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Sets the fixture for this Translation test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void setFixture(Translation fixture) {
+ this.fixture = fixture;
+ }
+
+ /**
+ * Returns the fixture for this Translation test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private Translation getFixture() {
+ return fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createTranslation());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //TranslationTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/TranslationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ValidateTest.java
URL:
http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ValidateTest.java?rev=945193&view=auto
==============================================================================
---
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ValidateTest.java
(added)
+++
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ValidateTest.java
Mon May 17 14:57:50 2010
@@ -0,0 +1,84 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ *
+ * $Id$
+ */
+package org.apache.commons.scxml.tests;
+
+import junit.textui.TestRunner;
+
+import org.apache.commons.scxml.ScxmlFactory;
+import org.apache.commons.scxml.Validate;
+
+/**
+ * <!-- begin-user-doc -->
+ * A test case for the model object '<em><b>Validate</b></em>'.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ValidateTest extends ExecutableContentTest {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static void main(String[] args) {
+ TestRunner.run(ValidateTest.class);
+ }
+
+ /**
+ * Constructs a new Validate test case with the given name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValidateTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Returns the fixture for this Validate test case.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private Validate getFixture() {
+ return (Validate)fixture;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#setUp()
+ * @generated
+ */
+ protected void setUp() throws Exception {
+ setFixture(ScxmlFactory.eINSTANCE.createValidate());
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see junit.framework.TestCase#tearDown()
+ * @generated
+ */
+ protected void tearDown() throws Exception {
+ setFixture(null);
+ }
+
+} //ValidateTest
Propchange:
commons/sandbox/gsoc/2010/scxml-eclipse/trunk/src/test/java/org.apache.commons.scxml.tests/src/org/apache/commons/scxml/tests/ValidateTest.java
------------------------------------------------------------------------------
svn:eol-style = native