Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-08-29 01:01:47 +0000
committerrbrooks2010-08-29 01:01:47 +0000
commitc850774504ad977892dfece2dc330ab769b234f1 (patch)
treeb5b3c5180df8ce8df02c89899cd246e7818cd47c /plugins/org.eclipse.osee.framework.core.dsl.integration.test
parent863713c742d9269c2c43600e587f76923da28532 (diff)
downloadorg.eclipse.osee-c850774504ad977892dfece2dc330ab769b234f1.tar.gz
org.eclipse.osee-c850774504ad977892dfece2dc330ab769b234f1.tar.xz
org.eclipse.osee-c850774504ad977892dfece2dc330ab769b234f1.zip
convert all line terminators to Unix style
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.integration.test')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project68
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java52
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java44
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java118
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java116
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java112
6 files changed, 255 insertions, 255 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 a1edc0ea801..740ae5b566e 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/.project
@@ -1,34 +1,34 @@
-<?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>
- <buildCommand>
- <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.xtext.ui.shared.xtextNature</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>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java
index 96c13e00eec..a5a834b4daf 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/CheckAccessDetailCollectorNotCalled.java
@@ -1,27 +1,27 @@
-/*******************************************************************************
- * 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.mocks;
-
-import org.eclipse.osee.framework.core.model.access.AccessDetail;
-import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
-import org.junit.Assert;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class CheckAccessDetailCollectorNotCalled implements AccessDetailCollector {
-
- @Override
- public void collect(AccessDetail<?> accessDetail) {
- Assert.fail("Method was unexpectedly called");
- }
-
+/*******************************************************************************
+ * 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.mocks;
+
+import org.eclipse.osee.framework.core.model.access.AccessDetail;
+import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
+import org.junit.Assert;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class CheckAccessDetailCollectorNotCalled implements AccessDetailCollector {
+
+ @Override
+ public void collect(AccessDetail<?> accessDetail) {
+ Assert.fail("Method was unexpectedly called");
+ }
+
}; \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java
index eb84e9ae0da..4005ef41858 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockAccessContextId.java
@@ -1,23 +1,23 @@
-/*******************************************************************************
- * 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.mocks;
-
-import org.eclipse.osee.framework.core.data.AccessContextId;
-import org.eclipse.osee.framework.core.data.NamedIdentity;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class MockAccessContextId extends NamedIdentity implements AccessContextId {
- public MockAccessContextId(String guid, String name) {
- super(guid, name);
- }
+/*******************************************************************************
+ * 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.mocks;
+
+import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.data.NamedIdentity;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class MockAccessContextId extends NamedIdentity implements AccessContextId {
+ public MockAccessContextId(String guid, String name) {
+ super(guid, name);
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java
index 0d23171ba36..e57bb964fb3 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockArtifactDataProvider.java
@@ -1,60 +1,60 @@
-/*******************************************************************************
- * 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.mocks;
-
-import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider;
-import org.junit.Assert;
-
-/**
- * @author Roberto E. Escobar
- */
-public final class MockArtifactDataProvider implements ArtifactDataProvider {
-
- private final boolean isApplicable;
- private final Object expectedObject;
- private final ArtifactData artifactData;
- private boolean wasIsApplicableCalled;
- private boolean wasAsCastedObjectCalled;
-
- public MockArtifactDataProvider(boolean isApplicable, Object expectedObject, ArtifactData artifactData) {
- this.isApplicable = isApplicable;
- this.expectedObject = expectedObject;
- this.artifactData = artifactData;
- reset();
- }
-
- public void reset() {
- wasIsApplicableCalled = false;
- wasAsCastedObjectCalled = false;
- }
-
- @Override
- public boolean isApplicable(Object object) {
- wasIsApplicableCalled = true;
- Assert.assertEquals(expectedObject, object);
- return isApplicable;
- }
-
- @Override
- public ArtifactData asCastedObject(Object object) {
- wasAsCastedObjectCalled = true;
- Assert.assertEquals(expectedObject, object);
- return artifactData;
- }
-
- public boolean wasIsApplicableCalled() {
- return wasIsApplicableCalled;
- }
-
- public boolean wasAsCastedObjectCalled() {
- return wasAsCastedObjectCalled;
- }
+/*******************************************************************************
+ * 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.mocks;
+
+import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider;
+import org.junit.Assert;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public final class MockArtifactDataProvider implements ArtifactDataProvider {
+
+ private final boolean isApplicable;
+ private final Object expectedObject;
+ private final ArtifactData artifactData;
+ private boolean wasIsApplicableCalled;
+ private boolean wasAsCastedObjectCalled;
+
+ public MockArtifactDataProvider(boolean isApplicable, Object expectedObject, ArtifactData artifactData) {
+ this.isApplicable = isApplicable;
+ this.expectedObject = expectedObject;
+ this.artifactData = artifactData;
+ reset();
+ }
+
+ public void reset() {
+ wasIsApplicableCalled = false;
+ wasAsCastedObjectCalled = false;
+ }
+
+ @Override
+ public boolean isApplicable(Object object) {
+ wasIsApplicableCalled = true;
+ Assert.assertEquals(expectedObject, object);
+ return isApplicable;
+ }
+
+ @Override
+ public ArtifactData asCastedObject(Object object) {
+ wasAsCastedObjectCalled = true;
+ Assert.assertEquals(expectedObject, object);
+ return artifactData;
+ }
+
+ public boolean wasIsApplicableCalled() {
+ return wasIsApplicableCalled;
+ }
+
+ public boolean wasAsCastedObjectCalled() {
+ return wasAsCastedObjectCalled;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java
index fc06ae804d5..7bfaecfe94a 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockDslProvider.java
@@ -1,59 +1,59 @@
-/*******************************************************************************
- * 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.mocks;
-
-import org.eclipse.osee.framework.core.dsl.integration.OseeDslProvider;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
-
-/**
- * @author Roberto E. Escobar
- */
-public class MockDslProvider implements OseeDslProvider {
-
- private final OseeDsl dslToReturn;
-
- private boolean wasLoadDslCalled;
- private boolean wasGetDslCalled;
- private OseeDsl dslToStore;
-
- public MockDslProvider(OseeDsl dslToReturn) {
- this.dslToReturn = dslToReturn;
- }
-
- @Override
- public void loadDsl() {
- wasLoadDslCalled = true;
- }
-
- @Override
- public OseeDsl getDsl() {
- wasGetDslCalled = true;
- return dslToReturn;
- }
-
- @Override
- public void storeDsl(OseeDsl dsl) {
- dslToStore = dsl;
- }
-
- public OseeDsl getDslToStore() {
- return dslToStore;
- }
-
- public boolean wasLoadDslCalled() {
- return wasLoadDslCalled;
- }
-
- public boolean wasGetDslCalled() {
- return wasGetDslCalled;
- }
-
+/*******************************************************************************
+ * 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.mocks;
+
+import org.eclipse.osee.framework.core.dsl.integration.OseeDslProvider;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.OseeDsl;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class MockDslProvider implements OseeDslProvider {
+
+ private final OseeDsl dslToReturn;
+
+ private boolean wasLoadDslCalled;
+ private boolean wasGetDslCalled;
+ private OseeDsl dslToStore;
+
+ public MockDslProvider(OseeDsl dslToReturn) {
+ this.dslToReturn = dslToReturn;
+ }
+
+ @Override
+ public void loadDsl() {
+ wasLoadDslCalled = true;
+ }
+
+ @Override
+ public OseeDsl getDsl() {
+ wasGetDslCalled = true;
+ return dslToReturn;
+ }
+
+ @Override
+ public void storeDsl(OseeDsl dsl) {
+ dslToStore = dsl;
+ }
+
+ public OseeDsl getDslToStore() {
+ return dslToStore;
+ }
+
+ public boolean wasLoadDslCalled() {
+ return wasLoadDslCalled;
+ }
+
+ public boolean wasGetDslCalled() {
+ return wasGetDslCalled;
+ }
+
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java
index 28328587b8f..91c2e89e8dd 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration.test/src/org/eclipse/osee/framework/core/dsl/integration/test/mocks/MockRestrictionHandler.java
@@ -1,57 +1,57 @@
-/*******************************************************************************
- * 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.mocks;
-
-import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider.ArtifactData;
-import org.eclipse.osee.framework.core.dsl.integration.RestrictionHandler;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
-import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
-import org.junit.Assert;
-
-/**
- * @author Roberto E. Escobar
- */
-public class MockRestrictionHandler implements RestrictionHandler<Object> {
-
- private final ObjectRestriction expectedObjectRestriction;
- private final ArtifactData expectedArtifactData;
- private final AccessDetailCollector expectedCollector;
- private boolean wasProcessCalled;
-
- public MockRestrictionHandler(ObjectRestriction expectedObjectRestriction, ArtifactData expectedArtifactData, AccessDetailCollector expectedCollector) {
- super();
- this.expectedObjectRestriction = expectedObjectRestriction;
- this.expectedArtifactData = expectedArtifactData;
- this.expectedCollector = expectedCollector;
- reset();
- }
-
- @Override
- public Object asCastedObject(ObjectRestriction objectRestriction) {
- return null;
- }
-
- public void reset() {
- wasProcessCalled = false;
- }
-
- public boolean wasProcessCalled() {
- return wasProcessCalled;
- }
-
- @Override
- public void process(ObjectRestriction objectRestriction, ArtifactData artifactData, AccessDetailCollector collector) {
- wasProcessCalled = true;
- Assert.assertEquals(expectedObjectRestriction, objectRestriction);
- Assert.assertEquals(expectedArtifactData, artifactData);
- Assert.assertEquals(expectedCollector, collector);
- }
+/*******************************************************************************
+ * 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.mocks;
+
+import org.eclipse.osee.framework.core.dsl.integration.ArtifactDataProvider.ArtifactData;
+import org.eclipse.osee.framework.core.dsl.integration.RestrictionHandler;
+import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
+import org.eclipse.osee.framework.core.model.access.AccessDetailCollector;
+import org.junit.Assert;
+
+/**
+ * @author Roberto E. Escobar
+ */
+public class MockRestrictionHandler implements RestrictionHandler<Object> {
+
+ private final ObjectRestriction expectedObjectRestriction;
+ private final ArtifactData expectedArtifactData;
+ private final AccessDetailCollector expectedCollector;
+ private boolean wasProcessCalled;
+
+ public MockRestrictionHandler(ObjectRestriction expectedObjectRestriction, ArtifactData expectedArtifactData, AccessDetailCollector expectedCollector) {
+ super();
+ this.expectedObjectRestriction = expectedObjectRestriction;
+ this.expectedArtifactData = expectedArtifactData;
+ this.expectedCollector = expectedCollector;
+ reset();
+ }
+
+ @Override
+ public Object asCastedObject(ObjectRestriction objectRestriction) {
+ return null;
+ }
+
+ public void reset() {
+ wasProcessCalled = false;
+ }
+
+ public boolean wasProcessCalled() {
+ return wasProcessCalled;
+ }
+
+ @Override
+ public void process(ObjectRestriction objectRestriction, ArtifactData artifactData, AccessDetailCollector collector) {
+ wasProcessCalled = true;
+ Assert.assertEquals(expectedObjectRestriction, objectRestriction);
+ Assert.assertEquals(expectedArtifactData, artifactData);
+ Assert.assertEquals(expectedCollector, collector);
+ }
} \ No newline at end of file

Back to the top