Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-07-24 13:38:31 -0400
committerrbrooks2010-07-24 13:38:31 -0400
commit4081f04850d3eff9eb1bd7241763707bfbb43a45 (patch)
tree258620df94d4b24077ff103a6c4dea9cb78493fb /plugins/org.eclipse.osee.support.test.util/src
parent4ed8bddc791fda93940f238c5135556a07041dc0 (diff)
downloadorg.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.tar.gz
org.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.tar.xz
org.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.zip
applied Eclipse source cleanup
Diffstat (limited to 'plugins/org.eclipse.osee.support.test.util/src')
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/Activator.java2
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/AtsUserCommunity.java20
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoActionableItems.java92
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoArtifactTypes.java12
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoUsers.java4
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java22
6 files changed, 81 insertions, 71 deletions
diff --git a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/Activator.java b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/Activator.java
index ddab21b9df..ce2d5ed73b 100644
--- a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/Activator.java
+++ b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/Activator.java
@@ -19,9 +19,11 @@ import org.osgi.framework.BundleContext;
public class Activator implements BundleActivator {
public static final String PLUGIN_ID = "org.eclipse.osee.support.test.demo";
+ @Override
public void start(BundleContext context) throws Exception {
}
+ @Override
public void stop(BundleContext context) throws Exception {
}
}
diff --git a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/AtsUserCommunity.java b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/AtsUserCommunity.java
index d02bc7e841..fd3ced3486 100644
--- a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/AtsUserCommunity.java
+++ b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/AtsUserCommunity.java
@@ -8,11 +8,15 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.support.test.util;
-
-/**
- * @author Donald G. Dunne
- */
-public enum AtsUserCommunity {
- Program_1, Program_2, Tools, Processes, Other;
-}
+package org.eclipse.osee.support.test.util;
+
+/**
+ * @author Donald G. Dunne
+ */
+public enum AtsUserCommunity {
+ Program_1,
+ Program_2,
+ Tools,
+ Processes,
+ Other;
+}
diff --git a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoActionableItems.java b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoActionableItems.java
index 3659194d5e..c3c4c7a80d 100644
--- a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoActionableItems.java
+++ b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoActionableItems.java
@@ -8,49 +8,49 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.support.test.util;
-
-/**
- * @author Donald G. Dunne
- */
-public enum DemoActionableItems {
-
- Actionable_Items,
- SAW_CSCI,
- SAW_Code,
- Test_Page,
- SAW_Test,
- RunLists,
- SAW_Requirements,
- SAW_HW,
- Adapter,
- Manual,
- Screen,
- Case,
- SAW_SW_Design,
- CIS_CSCI,
- CIS_Code,
- CIS_Test,
- CIS_Requirements,
- CIS_SW_Design,
- Tools,
- Website,
- Reader,
- Timesheet,
- Results_Reporter,
- Processes,
- Coding_Standards,
- Config_Mgmt,
- Reviews,
- New_Employee_Manual,
- Facilities,
- Network,
- Vending_Machines,
- Computers,
- Break_Room,
- Backups;
-
- public String getName() {
- return name().replaceAll("_", " ");
- }
-}
+package org.eclipse.osee.support.test.util;
+
+/**
+ * @author Donald G. Dunne
+ */
+public enum DemoActionableItems {
+
+ Actionable_Items,
+ SAW_CSCI,
+ SAW_Code,
+ Test_Page,
+ SAW_Test,
+ RunLists,
+ SAW_Requirements,
+ SAW_HW,
+ Adapter,
+ Manual,
+ Screen,
+ Case,
+ SAW_SW_Design,
+ CIS_CSCI,
+ CIS_Code,
+ CIS_Test,
+ CIS_Requirements,
+ CIS_SW_Design,
+ Tools,
+ Website,
+ Reader,
+ Timesheet,
+ Results_Reporter,
+ Processes,
+ Coding_Standards,
+ Config_Mgmt,
+ Reviews,
+ New_Employee_Manual,
+ Facilities,
+ Network,
+ Vending_Machines,
+ Computers,
+ Break_Room,
+ Backups;
+
+ public String getName() {
+ return name().replaceAll("_", " ");
+ }
+}
diff --git a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoArtifactTypes.java b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoArtifactTypes.java
index b1889e5caa..e955c4a502 100644
--- a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoArtifactTypes.java
+++ b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoArtifactTypes.java
@@ -17,12 +17,12 @@ import org.eclipse.osee.framework.core.data.NamedIdentity;
* @author Ryan D. Brooks
*/
public class DemoArtifactTypes extends NamedIdentity implements IArtifactType {
- public static final DemoArtifactTypes DemoCodeTeamWorkflow =
- new DemoArtifactTypes("ABRNqDKnpGEKAyUm49gA", "Demo Code Team Workflow");
- public static final DemoArtifactTypes DemoReqTeamWorkflow =
- new DemoArtifactTypes("ABRO5pC6kCmP35t06RwA", "Demo Req Team Workflow");
- public static final DemoArtifactTypes DemoTestTeamWorkflow =
- new DemoArtifactTypes("ABRPeQO1qlCd4J7Bv5AA", "Demo Test Team Workflow");
+ public static final DemoArtifactTypes DemoCodeTeamWorkflow = new DemoArtifactTypes("ABRNqDKnpGEKAyUm49gA",
+ "Demo Code Team Workflow");
+ public static final DemoArtifactTypes DemoReqTeamWorkflow = new DemoArtifactTypes("ABRO5pC6kCmP35t06RwA",
+ "Demo Req Team Workflow");
+ public static final DemoArtifactTypes DemoTestTeamWorkflow = new DemoArtifactTypes("ABRPeQO1qlCd4J7Bv5AA",
+ "Demo Test Team Workflow");
private DemoArtifactTypes(String guid, String name) {
super(guid, name);
diff --git a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoUsers.java b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoUsers.java
index c5bebc4757..8d7c4e7514 100644
--- a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoUsers.java
+++ b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/DemoUsers.java
@@ -46,6 +46,7 @@ public enum DemoUsers implements IOseeUserInfo {
/**
* @return Returns the email.
*/
+ @Override
public String getEmail() {
return email;
}
@@ -53,6 +54,7 @@ public enum DemoUsers implements IOseeUserInfo {
/**
* @return Returns the name.
*/
+ @Override
public String getName() {
return name;
}
@@ -60,6 +62,7 @@ public enum DemoUsers implements IOseeUserInfo {
/**
* @return Returns the userID.
*/
+ @Override
public String getUserID() {
return userID;
}
@@ -67,6 +70,7 @@ public enum DemoUsers implements IOseeUserInfo {
/**
* @return Returns the active.
*/
+ @Override
public boolean isActive() {
return active;
}
diff --git a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java
index 051a76e750..8b035f6feb 100644
--- a/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java
+++ b/plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java
@@ -14,7 +14,7 @@ import java.util.Arrays;
import java.util.Collection;
import java.util.Map;
import java.util.logging.Level;
-import junit.framework.TestCase;
+import junit.framework.Assert;
import org.eclipse.osee.framework.core.client.ClientSessionManager;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.exception.OseeStateException;
@@ -28,8 +28,8 @@ import org.eclipse.osee.framework.logging.SevereLoggingMonitor;
*/
public class TestUtil {
private static final String DEMO_DB_TYPE = "demo";
- public static final Collection<String> ignoreLogging =
- Arrays.asList("No image was defined for art type", "Unable to load the image for [SAVED]");
+ public static final Collection<String> ignoreLogging = Arrays.asList("No image was defined for art type",
+ "Unable to load the image for [SAVED]");
public static boolean isInTest = false;
public static boolean isProductionDb() throws OseeCoreException {
@@ -116,7 +116,7 @@ public class TestUtil {
}
if (numExceptions > 0) {
throw new OseeStateException(
- "SevereLoggingMonitor found " + numExceptions + " exceptions (see console for details)!");
+ "SevereLoggingMonitor found " + numExceptions + " exceptions (see console for details)!");
}
}
}
@@ -143,11 +143,11 @@ public class TestUtil {
for (String name : prevCount.keySet()) {
String incStr = postCount.get(name) > prevCount.get(name) ? "Increased" : "ERROR, Not Increased";
System.out.println(String.format(incStr + ": [%s] pre[%d] vs post[%d]", name, prevCount.get(name),
- postCount.get(name)));
+ postCount.get(name)));
}
for (String name : prevCount.keySet()) {
- TestCase.assertTrue(String.format("[%s] did not increase as expected: pre[%d] vs post[%d]", name,
- prevCount.get(name), postCount.get(name)), postCount.get(name) > prevCount.get(name));
+ Assert.assertTrue(String.format("[%s] did not increase as expected: pre[%d] vs post[%d]", name,
+ prevCount.get(name), postCount.get(name)), postCount.get(name) > prevCount.get(name));
}
}
@@ -155,12 +155,12 @@ public class TestUtil {
for (String tableName : prevCount.keySet()) {
String equalStr = postCount.get(tableName).equals(prevCount.get(tableName)) ? "Equal" : "ERROR, NotEqual";
System.out.println(String.format(equalStr + ": [%s] pre[%d] post[%d]", tableName, prevCount.get(tableName),
- postCount.get(tableName)));
+ postCount.get(tableName)));
}
for (String tableName : prevCount.keySet()) {
- TestCase.assertTrue(String.format("[%s] count not equal pre[%d] post[%d]", tableName,
- prevCount.get(tableName), postCount.get(tableName)), postCount.get(tableName).equals(
- prevCount.get(tableName)));
+ Assert.assertTrue(
+ String.format("[%s] count not equal pre[%d] post[%d]", tableName, prevCount.get(tableName),
+ postCount.get(tableName)), postCount.get(tableName).equals(prevCount.get(tableName)));
}
}

Back to the top