Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-03-31 04:41:22 +0000
committerddunne2010-03-31 04:41:22 +0000
commit4d287e1218474620892df2d3b88b2bba3a596d26 (patch)
tree976602bf1339adfb16e5f37e7cfc3dc20a9a922f /plugins/org.eclipse.osee.support.test.util
parent32c244941878dc5cd85148708acb706d1b5ceaba (diff)
downloadorg.eclipse.osee-4d287e1218474620892df2d3b88b2bba3a596d26.tar.gz
org.eclipse.osee-4d287e1218474620892df2d3b88b2bba3a596d26.tar.xz
org.eclipse.osee-4d287e1218474620892df2d3b88b2bba3a596d26.zip
coverage events
Diffstat (limited to 'plugins/org.eclipse.osee.support.test.util')
-rw-r--r--plugins/org.eclipse.osee.support.test.util/src/org/eclipse/osee/support/test/util/TestUtil.java8
1 files changed, 7 insertions, 1 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 001bb4fed1a..6b687f1ad41 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
@@ -87,6 +87,10 @@ public class TestUtil {
}
public static void severeLoggingEnd(SevereLoggingMonitor monitorLog) throws Exception {
+ severeLoggingEnd(monitorLog, ignoreLogging);
+ }
+
+ public static void severeLoggingEnd(SevereLoggingMonitor monitorLog, Collection<String> ignoreLogging) throws Exception {
OseeLog.unregisterLoggerListener(monitorLog);
Collection<IHealthStatus> healthStatuses = monitorLog.getAllLogs();
int numExceptions = 0;
@@ -97,6 +101,7 @@ public class TestUtil {
for (String str : ignoreLogging) {
if (status.getMessage().startsWith(str)) {
ignoreIt = true;
+ break;
}
}
if (ignoreIt) {
@@ -113,7 +118,8 @@ public class TestUtil {
}
}
if (numExceptions > 0) {
- throw new OseeStateException("SevereLoggingMonitor found " + numExceptions + " exceptions!");
+ throw new OseeStateException(
+ "SevereLoggingMonitor found " + numExceptions + " exceptions (see console for details)!");
}
}
}

Back to the top