Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.lifecycle.test')
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/.classpath14
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/.project56
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/build.properties8
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/AllLifecycleTestSuite.java26
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/InternalLifecycleTestSuite.java26
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleOperationTest.java118
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleServiceTest.java142
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockHandler.java44
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockLifecycePoint.java66
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockHandler.java160
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockLifecycePoint.java88
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/NonRunHandler.java78
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/StrictMockLifecycePoint.java82
13 files changed, 454 insertions, 454 deletions
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/.classpath b/plugins/org.eclipse.osee.framework.lifecycle.test/.classpath
index 8a8f1668cd..ad32c83a78 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/.classpath
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/.classpath
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/.project b/plugins/org.eclipse.osee.framework.lifecycle.test/.project
index 31feb18481..ec753fa48b 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/.project
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/.project
@@ -1,28 +1,28 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.osee.framework.lifecycle.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.lifecycle.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.lifecycle.test/build.properties b/plugins/org.eclipse.osee.framework.lifecycle.test/build.properties
index 41eb6ade2b..34d2e4d2da 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/build.properties
+++ b/plugins/org.eclipse.osee.framework.lifecycle.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.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/AllLifecycleTestSuite.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/AllLifecycleTestSuite.java
index 9118387bd5..cfccf5ddf9 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/AllLifecycleTestSuite.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/AllLifecycleTestSuite.java
@@ -8,16 +8,16 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.lifecycle.test;
-
-import org.eclipse.osee.framework.lifecycle.test.internal.InternalLifecycleTestSuite;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses( { //
-InternalLifecycleTestSuite.class, //
-})
-public class AllLifecycleTestSuite {
-
-}
+package org.eclipse.osee.framework.lifecycle.test;
+
+import org.eclipse.osee.framework.lifecycle.test.internal.InternalLifecycleTestSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses( { //
+InternalLifecycleTestSuite.class, //
+})
+public class AllLifecycleTestSuite {
+
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/InternalLifecycleTestSuite.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/InternalLifecycleTestSuite.java
index 2f17d11c34..4eb8d62556 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/InternalLifecycleTestSuite.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/InternalLifecycleTestSuite.java
@@ -8,16 +8,16 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.lifecycle.test.internal;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({ //
-LifecycleServiceTest.class, //
- LifecycleOperationTest.class, //
-})
-public class InternalLifecycleTestSuite {
-
-}
+package org.eclipse.osee.framework.lifecycle.test.internal;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses({ //
+LifecycleServiceTest.class, //
+ LifecycleOperationTest.class, //
+})
+public class InternalLifecycleTestSuite {
+
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleOperationTest.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleOperationTest.java
index b80121615c..97f1a07761 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleOperationTest.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleOperationTest.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.lifecycle.test.internal;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.operation.IOperation;
-import org.eclipse.osee.framework.core.operation.LogProgressMonitor;
-import org.eclipse.osee.framework.core.operation.Operations;
-import org.eclipse.osee.framework.lifecycle.AbstractLifecycleOperation;
-import org.eclipse.osee.framework.lifecycle.ILifecycleService;
-import org.eclipse.osee.framework.lifecycle.LifecycleServiceImpl;
-import org.eclipse.osee.framework.lifecycle.test.mock.MockHandler;
-import org.eclipse.osee.framework.lifecycle.test.mock.StrictMockLifecycePoint;
-import org.junit.Assert;
-import org.junit.Test;
-
-/**
- * Test Case for {@link AbstractLifecycleOperation}
- *
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public class LifecycleOperationTest {
-
- @Test
- public void testOperation() throws OseeCoreException {
- ILifecycleService service = new LifecycleServiceImpl();
-
- service.addHandler(StrictMockLifecycePoint.TYPE, new MockHandler());
-
- IOperation op = new MockLifecycleOperation(service, "a string", "b string");
- Operations.executeWork(op, new LogProgressMonitor(), -1.0);
-
- IStatus status = op.getStatus();
- Assert.assertTrue(status.isOK());
- }
-
- private static class MockLifecycleOperation extends AbstractLifecycleOperation {
-
- public MockLifecycleOperation(ILifecycleService service, String a, String b) {
- super(service, new StrictMockLifecycePoint(a, b), "Mock Op", "TestBundle");
- }
-
- @Override
- protected void doCoreWork(IProgressMonitor monitor) throws Exception {
- }
- }
-
-}
+/*******************************************************************************
+ * 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.lifecycle.test.internal;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.core.operation.IOperation;
+import org.eclipse.osee.framework.core.operation.LogProgressMonitor;
+import org.eclipse.osee.framework.core.operation.Operations;
+import org.eclipse.osee.framework.lifecycle.AbstractLifecycleOperation;
+import org.eclipse.osee.framework.lifecycle.ILifecycleService;
+import org.eclipse.osee.framework.lifecycle.LifecycleServiceImpl;
+import org.eclipse.osee.framework.lifecycle.test.mock.MockHandler;
+import org.eclipse.osee.framework.lifecycle.test.mock.StrictMockLifecycePoint;
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * Test Case for {@link AbstractLifecycleOperation}
+ *
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public class LifecycleOperationTest {
+
+ @Test
+ public void testOperation() throws OseeCoreException {
+ ILifecycleService service = new LifecycleServiceImpl();
+
+ service.addHandler(StrictMockLifecycePoint.TYPE, new MockHandler());
+
+ IOperation op = new MockLifecycleOperation(service, "a string", "b string");
+ Operations.executeWork(op, new LogProgressMonitor(), -1.0);
+
+ IStatus status = op.getStatus();
+ Assert.assertTrue(status.isOK());
+ }
+
+ private static class MockLifecycleOperation extends AbstractLifecycleOperation {
+
+ public MockLifecycleOperation(ILifecycleService service, String a, String b) {
+ super(service, new StrictMockLifecycePoint(a, b), "Mock Op", "TestBundle");
+ }
+
+ @Override
+ protected void doCoreWork(IProgressMonitor monitor) throws Exception {
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleServiceTest.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleServiceTest.java
index ccae4cca14..d6d544c5bd 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleServiceTest.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/internal/LifecycleServiceTest.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.lifecycle.test.internal;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.lifecycle.AbstractLifecycleVisitor;
-import org.eclipse.osee.framework.lifecycle.ILifecycleService;
-import org.eclipse.osee.framework.lifecycle.LifecycleServiceImpl;
-import org.eclipse.osee.framework.lifecycle.test.mock.AnotherMockHandler;
-import org.eclipse.osee.framework.lifecycle.test.mock.AnotherMockLifecycePoint;
-import org.eclipse.osee.framework.lifecycle.test.mock.MockHandler;
-import org.eclipse.osee.framework.lifecycle.test.mock.MockLifecycePoint;
-import org.eclipse.osee.framework.lifecycle.test.mock.NonRunHandler;
-import org.junit.Assert;
-import org.junit.Test;
-
-/**
- * Test Case for {@link LifecycleServiceImpl}
- *
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public class LifecycleServiceTest {
-
- @Test
- public void testAccess() throws OseeCoreException {
- ILifecycleService lifecycleServices = new LifecycleServiceImpl();
- Assert.assertTrue(lifecycleServices.getHandlerTypes().isEmpty());
-
- MockHandler mockHandler = new MockHandler();
- AnotherMockHandler anotherMockHandler = new AnotherMockHandler();
- NonRunHandler nonRunHandler = new NonRunHandler();
-
- lifecycleServices.addHandler(MockLifecycePoint.TYPE, mockHandler);
- lifecycleServices.addHandler(MockLifecycePoint.TYPE, anotherMockHandler);
- lifecycleServices.addHandler(AnotherMockLifecycePoint.TYPE, nonRunHandler);
-
- Assert.assertEquals(2, lifecycleServices.getHandlerCount(MockLifecycePoint.TYPE));
- Assert.assertFalse(lifecycleServices.getHandlerTypes().isEmpty());
-
- Assert.assertFalse(mockHandler.hasRan());
- Assert.assertFalse(anotherMockHandler.hasRan());
- Assert.assertFalse(nonRunHandler.hasRan());
-
- //Execute the handlers
- AbstractLifecycleVisitor<?> accessPoint = new MockLifecycePoint("one", "two");
- IStatus status = lifecycleServices.dispatch(new NullProgressMonitor(), accessPoint, "");
- Assert.assertTrue(status.isOK());
-
- Assert.assertTrue(mockHandler.hasRan());
- Assert.assertTrue(anotherMockHandler.hasRan());
- Assert.assertFalse(nonRunHandler.hasRan());
-
- lifecycleServices.removeHandler(MockLifecycePoint.TYPE, mockHandler);
- lifecycleServices.removeHandler(MockLifecycePoint.TYPE, anotherMockHandler);
- lifecycleServices.removeHandler(AnotherMockLifecycePoint.TYPE, nonRunHandler);
- //Check that everything cleaned up
- Assert.assertTrue(lifecycleServices.getHandlerTypes().isEmpty());
- Assert.assertEquals(0, lifecycleServices.getHandlerCount(MockLifecycePoint.TYPE));
- }
-}
+/*******************************************************************************
+ * 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.lifecycle.test.internal;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.osee.framework.core.exception.OseeCoreException;
+import org.eclipse.osee.framework.lifecycle.AbstractLifecycleVisitor;
+import org.eclipse.osee.framework.lifecycle.ILifecycleService;
+import org.eclipse.osee.framework.lifecycle.LifecycleServiceImpl;
+import org.eclipse.osee.framework.lifecycle.test.mock.AnotherMockHandler;
+import org.eclipse.osee.framework.lifecycle.test.mock.AnotherMockLifecycePoint;
+import org.eclipse.osee.framework.lifecycle.test.mock.MockHandler;
+import org.eclipse.osee.framework.lifecycle.test.mock.MockLifecycePoint;
+import org.eclipse.osee.framework.lifecycle.test.mock.NonRunHandler;
+import org.junit.Assert;
+import org.junit.Test;
+
+/**
+ * Test Case for {@link LifecycleServiceImpl}
+ *
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public class LifecycleServiceTest {
+
+ @Test
+ public void testAccess() throws OseeCoreException {
+ ILifecycleService lifecycleServices = new LifecycleServiceImpl();
+ Assert.assertTrue(lifecycleServices.getHandlerTypes().isEmpty());
+
+ MockHandler mockHandler = new MockHandler();
+ AnotherMockHandler anotherMockHandler = new AnotherMockHandler();
+ NonRunHandler nonRunHandler = new NonRunHandler();
+
+ lifecycleServices.addHandler(MockLifecycePoint.TYPE, mockHandler);
+ lifecycleServices.addHandler(MockLifecycePoint.TYPE, anotherMockHandler);
+ lifecycleServices.addHandler(AnotherMockLifecycePoint.TYPE, nonRunHandler);
+
+ Assert.assertEquals(2, lifecycleServices.getHandlerCount(MockLifecycePoint.TYPE));
+ Assert.assertFalse(lifecycleServices.getHandlerTypes().isEmpty());
+
+ Assert.assertFalse(mockHandler.hasRan());
+ Assert.assertFalse(anotherMockHandler.hasRan());
+ Assert.assertFalse(nonRunHandler.hasRan());
+
+ //Execute the handlers
+ AbstractLifecycleVisitor<?> accessPoint = new MockLifecycePoint("one", "two");
+ IStatus status = lifecycleServices.dispatch(new NullProgressMonitor(), accessPoint, "");
+ Assert.assertTrue(status.isOK());
+
+ Assert.assertTrue(mockHandler.hasRan());
+ Assert.assertTrue(anotherMockHandler.hasRan());
+ Assert.assertFalse(nonRunHandler.hasRan());
+
+ lifecycleServices.removeHandler(MockLifecycePoint.TYPE, mockHandler);
+ lifecycleServices.removeHandler(MockLifecycePoint.TYPE, anotherMockHandler);
+ lifecycleServices.removeHandler(AnotherMockLifecycePoint.TYPE, nonRunHandler);
+ //Check that everything cleaned up
+ Assert.assertTrue(lifecycleServices.getHandlerTypes().isEmpty());
+ Assert.assertEquals(0, lifecycleServices.getHandlerCount(MockLifecycePoint.TYPE));
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockHandler.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockHandler.java
index 72321c028c..1f44f2b8b8 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockHandler.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockHandler.java
@@ -1,22 +1,22 @@
-/*******************************************************************************
- * 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.lifecycle.test.mock;
-
-/**
- * @author Jeff C. Phillips
- */
-public class AnotherMockHandler extends MockHandler {
-
- @Override
- public void doSomething() {
- hasRan = true;
- }
-}
+/*******************************************************************************
+ * 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.lifecycle.test.mock;
+
+/**
+ * @author Jeff C. Phillips
+ */
+public class AnotherMockHandler extends MockHandler {
+
+ @Override
+ public void doSomething() {
+ hasRan = true;
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockLifecycePoint.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockLifecycePoint.java
index 4148996c40..a266ef1076 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockLifecycePoint.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/AnotherMockLifecycePoint.java
@@ -1,34 +1,34 @@
-/*******************************************************************************
- * 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.lifecycle.test.mock;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.osee.framework.lifecycle.AbstractLifecycleVisitor;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public class AnotherMockLifecycePoint extends AbstractLifecycleVisitor<NonRunHandler> {
-
- public static final Type<NonRunHandler> TYPE = new Type<NonRunHandler>();
-
- @Override
- public Type<NonRunHandler> getAssociatedType() {
- return TYPE;
- }
-
- @Override
- protected IStatus dispatch(IProgressMonitor monitor, NonRunHandler handler, String sourceId) {
- return handler.onCheck(monitor);
- }
+/*******************************************************************************
+ * 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.lifecycle.test.mock;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.osee.framework.lifecycle.AbstractLifecycleVisitor;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public class AnotherMockLifecycePoint extends AbstractLifecycleVisitor<NonRunHandler> {
+
+ public static final Type<NonRunHandler> TYPE = new Type<NonRunHandler>();
+
+ @Override
+ public Type<NonRunHandler> getAssociatedType() {
+ return TYPE;
+ }
+
+ @Override
+ protected IStatus dispatch(IProgressMonitor monitor, NonRunHandler handler, String sourceId) {
+ return handler.onCheck(monitor);
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockHandler.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockHandler.java
index 0e8332fe42..7fc6d934cd 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockHandler.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockHandler.java
@@ -1,81 +1,81 @@
-/*******************************************************************************
- * 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.lifecycle.test.mock;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.osee.framework.lifecycle.LifecycleOpHandler;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public class MockHandler implements LifecycleOpHandler {
-
- private String a;
- private String b;
- private IStatus status;
- boolean hasRan;
-
- public MockHandler() {
- this.status = Status.OK_STATUS;
- this.hasRan = false;
- }
-
- public void setData(String a, String b) {
- this.a = a;
- this.b = b;
- }
-
- public String getA() {
- return a;
- }
-
- public String getB() {
- return b;
- }
-
- public void setStatus(IStatus status) {
- this.status = status;
- }
-
- public IStatus getStatus() {
- return status;
- }
-
- @Override
- public IStatus onCheck(IProgressMonitor monitor) {
- hasRan = true;
- return status;
- }
-
- @Override
- public IStatus onPostCondition(IProgressMonitor monitor) {
- hasRan = true;
- return status;
- }
-
- @Override
- public IStatus onPreCondition(IProgressMonitor monitor) {
- hasRan = true;
- return status;
- }
-
- public void doSomething() {
- hasRan = true;
- }
-
- public boolean hasRan() {
- return hasRan;
- }
+/*******************************************************************************
+ * 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.lifecycle.test.mock;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.osee.framework.lifecycle.LifecycleOpHandler;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public class MockHandler implements LifecycleOpHandler {
+
+ private String a;
+ private String b;
+ private IStatus status;
+ boolean hasRan;
+
+ public MockHandler() {
+ this.status = Status.OK_STATUS;
+ this.hasRan = false;
+ }
+
+ public void setData(String a, String b) {
+ this.a = a;
+ this.b = b;
+ }
+
+ public String getA() {
+ return a;
+ }
+
+ public String getB() {
+ return b;
+ }
+
+ public void setStatus(IStatus status) {
+ this.status = status;
+ }
+
+ public IStatus getStatus() {
+ return status;
+ }
+
+ @Override
+ public IStatus onCheck(IProgressMonitor monitor) {
+ hasRan = true;
+ return status;
+ }
+
+ @Override
+ public IStatus onPostCondition(IProgressMonitor monitor) {
+ hasRan = true;
+ return status;
+ }
+
+ @Override
+ public IStatus onPreCondition(IProgressMonitor monitor) {
+ hasRan = true;
+ return status;
+ }
+
+ public void doSomething() {
+ hasRan = true;
+ }
+
+ public boolean hasRan() {
+ return hasRan;
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockLifecycePoint.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockLifecycePoint.java
index 5b3817a93c..540547cfd7 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockLifecycePoint.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/MockLifecycePoint.java
@@ -1,45 +1,45 @@
-/*******************************************************************************
- * 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.lifecycle.test.mock;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.osee.framework.lifecycle.AbstractLifecycleVisitor;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public class MockLifecycePoint extends AbstractLifecycleVisitor<MockHandler> {
-
- public static final Type<MockHandler> TYPE = new Type<MockHandler>();
-
- private final String a;
- private final String b;
-
- public MockLifecycePoint(String a, String b) {
- super();
- this.a = a;
- this.b = b;
- }
-
- @Override
- public Type<MockHandler> getAssociatedType() {
- return TYPE;
- }
-
- @Override
- protected IStatus dispatch(IProgressMonitor monitor, MockHandler handler, String sourceId) {
- handler.setData(a, b);
- handler.doSomething();
- return handler.getStatus();
- }
+/*******************************************************************************
+ * 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.lifecycle.test.mock;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.osee.framework.lifecycle.AbstractLifecycleVisitor;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public class MockLifecycePoint extends AbstractLifecycleVisitor<MockHandler> {
+
+ public static final Type<MockHandler> TYPE = new Type<MockHandler>();
+
+ private final String a;
+ private final String b;
+
+ public MockLifecycePoint(String a, String b) {
+ super();
+ this.a = a;
+ this.b = b;
+ }
+
+ @Override
+ public Type<MockHandler> getAssociatedType() {
+ return TYPE;
+ }
+
+ @Override
+ protected IStatus dispatch(IProgressMonitor monitor, MockHandler handler, String sourceId) {
+ handler.setData(a, b);
+ handler.doSomething();
+ return handler.getStatus();
+ }
} \ No newline at end of file
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/NonRunHandler.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/NonRunHandler.java
index 9516a17340..aaa0626ebb 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/NonRunHandler.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/NonRunHandler.java
@@ -8,42 +8,42 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.lifecycle.test.mock;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.osee.framework.lifecycle.LifecycleOpHandler;
-
-public class NonRunHandler implements LifecycleOpHandler {
- private boolean hasRun;
- IStatus status;
-
- public NonRunHandler() {
- super();
- this.status = Status.OK_STATUS;
- hasRun = false;
- }
-
- @Override
- public IStatus onCheck(IProgressMonitor monitor) {
- hasRun = true;
- return status;
- }
-
- @Override
- public IStatus onPostCondition(IProgressMonitor monitor) {
- hasRun = true;
- return status;
- }
-
- @Override
- public IStatus onPreCondition(IProgressMonitor monitor) {
- hasRun = true;
- return status;
- }
-
- public boolean hasRan() {
- return hasRun;
- }
-}
+package org.eclipse.osee.framework.lifecycle.test.mock;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.osee.framework.lifecycle.LifecycleOpHandler;
+
+public class NonRunHandler implements LifecycleOpHandler {
+ private boolean hasRun;
+ IStatus status;
+
+ public NonRunHandler() {
+ super();
+ this.status = Status.OK_STATUS;
+ hasRun = false;
+ }
+
+ @Override
+ public IStatus onCheck(IProgressMonitor monitor) {
+ hasRun = true;
+ return status;
+ }
+
+ @Override
+ public IStatus onPostCondition(IProgressMonitor monitor) {
+ hasRun = true;
+ return status;
+ }
+
+ @Override
+ public IStatus onPreCondition(IProgressMonitor monitor) {
+ hasRun = true;
+ return status;
+ }
+
+ public boolean hasRan() {
+ return hasRun;
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/StrictMockLifecycePoint.java b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/StrictMockLifecycePoint.java
index 00273865f6..e3a6333147 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/StrictMockLifecycePoint.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle.test/src/org/eclipse/osee/framework/lifecycle/test/mock/StrictMockLifecycePoint.java
@@ -1,41 +1,41 @@
-/*******************************************************************************
- * 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.lifecycle.test.mock;
-
-import org.eclipse.osee.framework.lifecycle.AbstractLifecyclePoint;
-
-/**
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public class StrictMockLifecycePoint extends AbstractLifecyclePoint<MockHandler> {
-
- public static final Type<MockHandler> TYPE = new Type<MockHandler>();
-
- private final String a;
- private final String b;
-
- public StrictMockLifecycePoint(String a, String b) {
- super();
- this.a = a;
- this.b = b;
- }
-
- @Override
- public Type<MockHandler> getAssociatedType() {
- return TYPE;
- }
-
- @Override
- protected void initializeHandlerData(MockHandler handler) {
- handler.setData(a, b);
- }
-}
+/*******************************************************************************
+ * 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.lifecycle.test.mock;
+
+import org.eclipse.osee.framework.lifecycle.AbstractLifecyclePoint;
+
+/**
+ * @author Roberto E. Escobar
+ * @author Jeff C. Phillips
+ */
+public class StrictMockLifecycePoint extends AbstractLifecyclePoint<MockHandler> {
+
+ public static final Type<MockHandler> TYPE = new Type<MockHandler>();
+
+ private final String a;
+ private final String b;
+
+ public StrictMockLifecycePoint(String a, String b) {
+ super();
+ this.a = a;
+ this.b = b;
+ }
+
+ @Override
+ public Type<MockHandler> getAssociatedType() {
+ return TYPE;
+ }
+
+ @Override
+ protected void initializeHandlerData(MockHandler handler) {
+ handler.setData(a, b);
+ }
+}

Back to the top