Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2011-04-06 18:11:16 -0400
committerRyan D. Brooks2011-04-06 18:11:16 -0400
commitbcfa3fc82450d4adebd20b64543e7876ec543974 (patch)
tree1a3dd4205ef79c2d2e54d31a83ba5a9724928628 /plugins/org.eclipse.osee.framework.skynet.core.test
parentc945a0c871ca0e233f6a91123f486c6cddba1040 (diff)
downloadorg.eclipse.osee-bcfa3fc82450d4adebd20b64543e7876ec543974.tar.gz
org.eclipse.osee-bcfa3fc82450d4adebd20b64543e7876ec543974.tar.xz
org.eclipse.osee-bcfa3fc82450d4adebd20b64543e7876ec543974.zip
refactor[bgz_342089]: Move SevereLogMonitorTest to osee.framework.logging.test
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/META-INF/MANIFEST.MF1
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/dunno/SevereLogMonitorTest.java49
3 files changed, 1 insertions, 51 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/META-INF/MANIFEST.MF b/plugins/org.eclipse.osee.framework.skynet.core.test/META-INF/MANIFEST.MF
index 0508c4bc94..8c2c606902 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/META-INF/MANIFEST.MF
@@ -9,7 +9,6 @@ Require-Bundle: org.junit
Export-Package: org.eclipse.osee.framework.skynet.core,
org.eclipse.osee.framework.skynet.core.artifact,
org.eclipse.osee.framework.skynet.core.artifact.search,
- org.eclipse.osee.framework.skynet.core.dunno,
org.eclipse.osee.framework.skynet.core.event,
org.eclipse.osee.framework.skynet.core.event.filter,
org.eclipse.osee.framework.skynet.core.event.model,
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java
index 8493527782..201db10990 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java
@@ -12,6 +12,7 @@ package org.eclipse.osee.framework.skynet.core;
import static org.junit.Assert.assertTrue;
import org.eclipse.osee.framework.core.client.ClientSessionManager;
+import org.eclipse.osee.framework.logging.SevereLogMonitorTest;
import org.eclipse.osee.framework.skynet.core.artifact.ArtifactPurgeTest;
import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTestSuite;
import org.eclipse.osee.framework.skynet.core.artifact.ArtifactTypeInheritanceTest;
@@ -30,7 +31,6 @@ import org.eclipse.osee.framework.skynet.core.artifact.ReplaceWithAttributeTest;
import org.eclipse.osee.framework.skynet.core.artifact.StaticIdManagerTest;
import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactLoaderTest;
import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQueryTestDemo;
-import org.eclipse.osee.framework.skynet.core.dunno.SevereLogMonitorTest;
import org.eclipse.osee.framework.skynet.core.event.filter.ArtifactEventFiltersTest;
import org.eclipse.osee.framework.skynet.core.event.filter.BranchEventFiltersTest;
import org.eclipse.osee.framework.skynet.core.event.model.ArtifactEventLoopbackTest;
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/dunno/SevereLogMonitorTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/dunno/SevereLogMonitorTest.java
deleted file mode 100644
index a59b8a8f0f..0000000000
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/dunno/SevereLogMonitorTest.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*******************************************************************************
- * 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.skynet.core.dunno;
-
-import static org.junit.Assert.assertTrue;
-
-import java.util.logging.Level;
-
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.logging.SevereLoggingMonitor;
-import org.eclipse.osee.support.test.util.TestUtil;
-import org.junit.Before;
-
-/**
- * @author Andrew M. Finkbeiner
- */
-public class SevereLogMonitorTest {
-
- @Before
- public void setup() throws Exception {
- assertTrue("Should be run on test or demo datbase.", TestUtil.isDemoDb() || TestUtil.isTestDb());
- }
-
- @org.junit.Test
- public void testCatchingOfException() {
-
- boolean madeItInException = false;
- SevereLoggingMonitor monitorLog = new SevereLoggingMonitor();
- OseeLog.registerLoggerListener(monitorLog);
- try {
- throw new Exception("this is my test exception");
- } catch (Exception ex) {
- madeItInException = true;
- OseeLog.log(SevereLogMonitorTest.class, Level.SEVERE, "caught our exception in a junit", ex);
- }
- assertTrue(madeItInException);
- assertTrue(String.format("%d SevereLogs during test.", monitorLog.getAllLogs().size()),
- monitorLog.getAllLogs().size() == 1);
- }
-
-}

Back to the top