tmf: Add a StateSystemDisposedException
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core.tests / src / org / eclipse / linuxtools / tmf / core / tests / statesystem / StateSystemPushPopTest.java
index 05d5dbfd17a35d0d151620ccfac8c53c495a7e34..281ac851954e395c10f8ee4875844a1760601027 100644 (file)
@@ -22,6 +22,7 @@ import org.eclipse.linuxtools.internal.tmf.core.statesystem.IStateHistoryBackend
 import org.eclipse.linuxtools.internal.tmf.core.statesystem.StateSystem;
 import org.eclipse.linuxtools.internal.tmf.core.statesystem.historytree.HistoryTreeBackend;
 import org.eclipse.linuxtools.tmf.core.exceptions.AttributeNotFoundException;
+import org.eclipse.linuxtools.tmf.core.exceptions.StateSystemDisposedException;
 import org.eclipse.linuxtools.tmf.core.exceptions.StateValueTypeException;
 import org.eclipse.linuxtools.tmf.core.exceptions.TimeRangeException;
 import org.eclipse.linuxtools.tmf.core.interval.ITmfStateInterval;
@@ -35,7 +36,7 @@ import org.eclipse.linuxtools.tmf.core.statevalue.TmfStateValue;
  *
  * @author Alexandre Montplaisir
  */
-public class StateSystemPushPopTest extends TestCase{
+public class StateSystemPushPopTest extends TestCase {
 
     private ITmfStateSystemBuilder ss;
 
@@ -158,6 +159,8 @@ public class StateSystemPushPopTest extends TestCase{
             fail(errMsg + e.toString());
         } catch (TimeRangeException e) {
             fail(errMsg + e.toString());
+        } catch (StateSystemDisposedException e) {
+            fail(errMsg + e.toString());
         }
     }
 
@@ -192,6 +195,8 @@ public class StateSystemPushPopTest extends TestCase{
             fail(errMsg + e.toString());
         } catch (TimeRangeException e) {
             fail(errMsg + e.toString());
+        } catch (StateSystemDisposedException e) {
+            fail(errMsg + e.toString());
         }
     }
 
@@ -218,6 +223,8 @@ public class StateSystemPushPopTest extends TestCase{
             fail(errMsg + e.toString());
         } catch (TimeRangeException e) {
             fail(errMsg + e.toString());
+        } catch (StateSystemDisposedException e) {
+            fail(errMsg + e.toString());
         }
     }
 
@@ -250,6 +257,8 @@ public class StateSystemPushPopTest extends TestCase{
             fail(errMsg + e.toString());
         } catch (TimeRangeException e) {
             fail(errMsg + e.toString());
+        } catch (StateSystemDisposedException e) {
+            fail(errMsg + e.toString());
         }
     }
 
@@ -294,6 +303,8 @@ public class StateSystemPushPopTest extends TestCase{
             fail(errMsg + e.toString());
         } catch (TimeRangeException e) {
             fail(errMsg + e.toString());
+        } catch (StateSystemDisposedException e) {
+            fail(errMsg + e.toString());
         }
     }
 }
This page took 0.025908 seconds and 5 git commands to generate.