Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn F. Cook2011-08-08 16:41:21 -0400
committerRyan D. Brooks2011-08-08 16:41:21 -0400
commit0276a25446344462b279c122f44d4e020cb61780 (patch)
tree516043a39b1bdd4b0c4249eb2317c8f55e38e9ec /plugins/org.eclipse.osee.framework.core.model.test
parentf5b92c1a4b7e2b15175187dbc8f98a4dc10c7124 (diff)
downloadorg.eclipse.osee-0276a25446344462b279c122f44d4e020cb61780.tar.gz
org.eclipse.osee-0276a25446344462b279c122f44d4e020cb61780.tar.xz
org.eclipse.osee-0276a25446344462b279c122f44d4e020cb61780.zip
refactor[bgz_354193]: Remove unused exception declarations
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.model.test')
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java7
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java3
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java3
5 files changed, 10 insertions, 11 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java
index 6bd14b3c2f..bda475179e 100644
--- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java
+++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/cache/AbstractOseeCacheTest.java
@@ -15,14 +15,13 @@ import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
-import org.junit.Assert;
import org.eclipse.osee.framework.core.exception.OseeArgumentException;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.exception.OseeStateException;
import org.eclipse.osee.framework.core.exception.OseeTypeDoesNotExist;
import org.eclipse.osee.framework.core.model.AbstractOseeType;
-import org.eclipse.osee.framework.core.model.cache.AbstractOseeCache;
import org.eclipse.osee.framework.jdk.core.util.GUID;
+import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
@@ -221,7 +220,7 @@ public abstract class AbstractOseeCacheTest<T extends AbstractOseeType> {
@Ignore
@Test
- public void testPersist() throws OseeCoreException {
+ public void testPersist() {
// T item1 = data.get(0);
// T item2 = data.get(1);
//
@@ -249,6 +248,8 @@ public abstract class AbstractOseeCacheTest<T extends AbstractOseeType> {
// public void storeItems(Collection<T> toStore) throws OseeCoreException {
}
+ @SuppressWarnings("unused")
+ //OseeCoreException is thrown by inheriting class.
protected void checkEquals(T expected, T actual) throws OseeCoreException {
Assert.assertEquals(expected, actual);
}
diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java
index 4a955eb6ea..c12947091e 100644
--- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java
+++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/AssociatedArtifactFieldTest.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.osee.framework.core.model.fields;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.model.internal.fields.AssociatedArtifactField;
import org.junit.Assert;
import org.junit.BeforeClass;
@@ -36,7 +35,7 @@ public class AssociatedArtifactFieldTest {
}
@Test
- public void test() throws OseeCoreException {
+ public void test() {
AssociatedArtifactField field = new AssociatedArtifactField(art1);
Assert.assertEquals(false, field.isDirty());
diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java
index 2b54b168b0..dc47bf35c9 100644
--- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java
+++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/BaseOseeFieldTest.java
@@ -12,10 +12,10 @@ package org.eclipse.osee.framework.core.model.fields;
import java.util.ArrayList;
import java.util.Collection;
-import org.junit.Assert;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.model.OseeField;
import org.eclipse.osee.framework.jdk.core.util.Compare;
+import org.junit.Assert;
import org.junit.Test;
import org.junit.runners.Parameterized.Parameters;
@@ -71,7 +71,7 @@ public abstract class BaseOseeFieldTest {
@SuppressWarnings("unchecked")
@Parameters
- public static Collection<Object[]> data() throws OseeCoreException {
+ public static Collection<Object[]> data() {
Collection<Object[]> data = new ArrayList<Object[]>();
data.add(new Object[] {//
diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java
index 250d766cc5..939e168272 100644
--- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java
+++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/OseeFieldMainTest.java
@@ -12,10 +12,10 @@ package org.eclipse.osee.framework.core.model.fields;
import java.util.ArrayList;
import java.util.Collection;
-import org.junit.Assert;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.model.OseeField;
import org.eclipse.osee.framework.jdk.core.util.Compare;
+import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
@@ -74,7 +74,7 @@ public class OseeFieldMainTest {
@SuppressWarnings("unchecked")
@Parameters
- public static Collection<Object[]> data() throws OseeCoreException {
+ public static Collection<Object[]> data() {
Collection<Object[]> data = new ArrayList<Object[]>();
data.add(new Object[] {//
diff --git a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java
index b3867476d2..37b9ad49d5 100644
--- a/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java
+++ b/plugins/org.eclipse.osee.framework.core.model.test/src/org/eclipse/osee/framework/core/model/fields/UniqueIdFieldTest.java
@@ -12,7 +12,6 @@ package org.eclipse.osee.framework.core.model.fields;
import java.util.ArrayList;
import java.util.Collection;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.exception.OseeStateException;
import org.eclipse.osee.framework.core.model.IOseeStorable;
import org.eclipse.osee.framework.core.model.internal.fields.UniqueIdField;
@@ -34,7 +33,7 @@ public class UniqueIdFieldTest extends BaseOseeFieldTest {
@SuppressWarnings("unchecked")
@Parameters
- public static Collection<Object[]> data() throws OseeCoreException {
+ public static Collection<Object[]> data() {
Collection<Object[]> data = new ArrayList<Object[]>();
data.add(new Object[] {new OseeFieldTestData<Integer>(
new UniqueIdField(), //

Back to the top