Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.integration.test')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project56
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/build.properties8
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/ModeUtilTest.java142
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeModelTestSuite.java50
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeTypesTestSuite.java52
5 files changed, 154 insertions, 154 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project
index 346009bfb9..d996202e0a 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project
@@ -1,28 +1,28 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.osee.framework.core.dsl.integration.test</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.osee.framework.core.dsl.integration.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/build.properties b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/build.properties
index 41eb6ade2b..34d2e4d2da 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/build.properties
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/build.properties
@@ -1,4 +1,4 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/ModeUtilTest.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/ModeUtilTest.java
index f0d3358c0e..a733ea54af 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/ModeUtilTest.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/ModeUtilTest.java
@@ -1,71 +1,71 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.dsl.integration.test;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import org.eclipse.osee.framework.core.dsl.integration.ModelUtil;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.junit.Assert;
-import org.junit.Test;
-
-/**
- * @author Roberto E. Escobar
- */
-public class ModeUtilTest {
-
- private static String rawXTextData = //
- "artifactType \"Artifact\" { \n" + //
- " guid \"AAMFDh6S7gRLupAMwywA\" \n" + //
- " attribute \"Name\" \n" + //
- " attribute \"Annotation\" \n" + //
- "}\n" + //
- "attributeType \"Name\" extends StringAttribute {\n" + //
- " guid \"AAMFEcF1AzV7PKuHmxwA\" \n" + //
- " dataProvider DefaultAttributeDataProvider\n" + //
- " min 1\n" + //
- " max 1\n" + //
- " taggerId DefaultAttributeTaggerProvider\n" + //
- " description \"Descriptive Name\"\n" + //
- " defaultValue \"unnamed\"\n" + //
- "}\n" + //
- "attributeType \"Annotation\" extends StringAttribute {\n" + //
- "guid \"AAMFEcWy0xc4e3tcemQA\" \n" + //
- "dataProvider DefaultAttributeDataProvider\n" + //
- "min 0\n" + //
- "max unlimited\n" + //
- "taggerId DefaultAttributeTaggerProvider\n" + //
- "}\n" + //
- "\n";
-
- @Test
- public void testModelUtilSave() throws OseeCoreException, IOException {
- OseeDsl model1 = ModelUtil.loadModel("osee:/text.osee", rawXTextData);
- Assert.assertEquals(1, model1.getArtifactTypes().size());
- Assert.assertEquals(2, model1.getAttributeTypes().size());
-
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
- ModelUtil.saveModel(model1, "osee:/text.osee", outputStream, false);
- outputStream.flush();
- String value = outputStream.toString("UTF-8");
-
- OseeDsl model2 = ModelUtil.loadModel("osee:/text2.osee", value);
-
- Assert.assertEquals(model1.getArtifactTypes().size(), model2.getArtifactTypes().size());
- Assert.assertEquals(model1.getAttributeTypes().size(), model2.getAttributeTypes().size());
- Assert.assertEquals(model1.getRelationTypes().size(), model2.getRelationTypes().size());
- Assert.assertEquals(model1.getImports().size(), model2.getImports().size());
- Assert.assertEquals(model1.getEnumOverrides().size(), model2.getEnumOverrides().size());
- Assert.assertEquals(model1.getEnumTypes().size(), model2.getEnumTypes().size());
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.core.dsl.integration.test;
+
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import org.eclipse.osee.framework.core.dsl.integration.ModelUtil;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class ModeUtilTest {
+
+ private static String rawXTextData = //
+ "artifactType \"Artifact\" { \n" + //
+ " guid \"AAMFDh6S7gRLupAMwywA\" \n" + //
+ " attribute \"Name\" \n" + //
+ " attribute \"Annotation\" \n" + //
+ "}\n" + //
+ "attributeType \"Name\" extends StringAttribute {\n" + //
+ " guid \"AAMFEcF1AzV7PKuHmxwA\" \n" + //
+ " dataProvider DefaultAttributeDataProvider\n" + //
+ " min 1\n" + //
+ " max 1\n" + //
+ " taggerId DefaultAttributeTaggerProvider\n" + //
+ " description \"Descriptive Name\"\n" + //
+ " defaultValue \"unnamed\"\n" + //
+ "}\n" + //
+ "attributeType \"Annotation\" extends StringAttribute {\n" + //
+ "guid \"AAMFEcWy0xc4e3tcemQA\" \n" + //
+ "dataProvider DefaultAttributeDataProvider\n" + //
+ "min 0\n" + //
+ "max unlimited\n" + //
+ "taggerId DefaultAttributeTaggerProvider\n" + //
+ "}\n" + //
+ "\n";
+
+ @Test
+ public void testModelUtilSave() throws OseeCoreException, IOException {
+ OseeDsl model1 = ModelUtil.loadModel("osee:/text.osee", rawXTextData);
+ Assert.assertEquals(1, model1.getArtifactTypes().size());
+ Assert.assertEquals(2, model1.getAttributeTypes().size());
+
+ ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
+ ModelUtil.saveModel(model1, "osee:/text.osee", outputStream, false);
+ outputStream.flush();
+ String value = outputStream.toString("UTF-8");
+
+ OseeDsl model2 = ModelUtil.loadModel("osee:/text2.osee", value);
+
+ Assert.assertEquals(model1.getArtifactTypes().size(), model2.getArtifactTypes().size());
+ Assert.assertEquals(model1.getAttributeTypes().size(), model2.getAttributeTypes().size());
+ Assert.assertEquals(model1.getRelationTypes().size(), model2.getRelationTypes().size());
+ Assert.assertEquals(model1.getImports().size(), model2.getImports().size());
+ Assert.assertEquals(model1.getEnumOverrides().size(), model2.getEnumOverrides().size());
+ Assert.assertEquals(model1.getEnumTypes().size(), model2.getEnumTypes().size());
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeModelTestSuite.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeModelTestSuite.java
index 0e39358e1d..4fccfaf5f5 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeModelTestSuite.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeModelTestSuite.java
@@ -1,25 +1,25 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.dsl.integration.test;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-/**
- * @author Roberto E. Escobar
- */
-@RunWith(Suite.class)
-@Suite.SuiteClasses( { //
-ModeUtilTest.class, //
-})
-public class OseeModelTestSuite {
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.core.dsl.integration.test;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * @author Roberto E. Escobar
+ */
+@RunWith(Suite.class)
+@Suite.SuiteClasses( { //
+ModeUtilTest.class, //
+})
+public class OseeModelTestSuite {
+
+}
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeTypesTestSuite.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeTypesTestSuite.java
index f3f3191ba6..f7c3da832f 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeTypesTestSuite.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/OseeTypesTestSuite.java
@@ -1,26 +1,26 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.core.dsl.integration.test;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-/**
- * @author Roberto E. Escobar
- */
-@RunWith(Suite.class)
-@Suite.SuiteClasses({ //
-OseeModelTestSuite.class, //
-// OseeTypesAllTests.class, //
-})
-public class OseeTypesTestSuite {
-
-}
+/*******************************************************************************
+ * Copyright (c) 2004, 2007 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.framework.core.dsl.integration.test;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+/**
+ * @author Roberto E. Escobar
+ */
+@RunWith(Suite.class)
+@Suite.SuiteClasses({ //
+OseeModelTestSuite.class, //
+// OseeTypesAllTests.class, //
+})
+public class OseeTypesTestSuite {
+
+}

Back to the top