Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Escobar2012-11-19 20:16:51 -0500
committerRoberto E. Escobar2012-11-19 20:16:51 -0500
commita449d7d1088236cb3db52d4c86dfb7e9b8c728d0 (patch)
tree2470812adbb84c576d5dcd8ddf3964ee7176a6d7 /plugins/org.eclipse.osee.support.test.util/src
parent4717be4f002279624ab59a21e25a7a7faad866ba (diff)
downloadorg.eclipse.osee-a449d7d1088236cb3db52d4c86dfb7e9b8c728d0.tar.gz
org.eclipse.osee-a449d7d1088236cb3db52d4c86dfb7e9b8c728d0.tar.xz
org.eclipse.osee-a449d7d1088236cb3db52d4c86dfb7e9b8c728d0.zip
feature[ats_TL5SF]: Add OSEE client integration tests to maven
Remove fragment dependencies Convert tests to use new client test framework rules Cleanup test initialization and teardowns Change-Id: I32f18302d8464e58c6edab065b3c9c4c706663db
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/TestUtil.java32
1 files changed, 0 insertions, 32 deletions
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 1f2aec56ca..4ae819c17b 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
@@ -12,18 +12,15 @@ package org.eclipse.osee.support.test.util;
import java.util.Arrays;
import java.util.Collection;
-import java.util.Map;
import java.util.logging.Level;
import org.eclipse.osee.framework.core.client.ClientSessionManager;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.exception.OseeStateException;
import org.eclipse.osee.framework.database.core.OseeInfo;
import org.eclipse.osee.framework.jdk.core.util.Lib;
-import org.eclipse.osee.framework.jdk.core.util.OseeProperties;
import org.eclipse.osee.framework.logging.IHealthStatus;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.logging.SevereLoggingMonitor;
-import org.junit.Assert;
/**
* @author Donald G. Dunne
@@ -129,33 +126,4 @@ public class TestUtil {
}
}
- public static void checkThatIncreased(Map<String, Integer> prevCount, Map<String, Integer> postCount) {
- for (String name : prevCount.keySet()) {
- if (!OseeProperties.isInTest()) {
- 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)));
- }
- }
- for (String name : prevCount.keySet()) {
- 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));
- }
- }
-
- public static void checkThatEqual(Map<String, Integer> prevCount, Map<String, Integer> postCount) {
- for (String tableName : prevCount.keySet()) {
- if (!OseeProperties.isInTest()) {
- 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)));
- }
- }
- for (String tableName : prevCount.keySet()) {
- 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