tmf: lttngControl: TraceEnablement: mi support + utility function
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.core.tests / src / org / eclipse / linuxtools / lttng2 / control / core / tests / model / impl / EventInfoTest.java
index bc15edd028291d600cb03d7e47f89fb75284b095..e0c5212a352b5bb73dd2401876897fe131970a58 100644 (file)
@@ -168,6 +168,13 @@ public class EventInfoTest {
         assertEquals("DISABLED", state.toString());
         assertEquals(0, state.ordinal());
 
+        fixture.setState("false");
+        state = fixture.getState();
+        assertEquals("false", state.getInMiName());
+        assertEquals("DISABLED", state.name());
+        assertEquals("DISABLED", state.toString());
+        assertEquals(0, state.ordinal());
+
         fixture.setState("bla");
         state = fixture.getState();
         assertEquals("disabled", state.getInName());
@@ -182,6 +189,13 @@ public class EventInfoTest {
         assertEquals("ENABLED", state.toString());
         assertEquals(1, state.ordinal());
 
+        fixture.setState("true");
+        state = fixture.getState();
+        assertEquals("true", state.getInMiName());
+        assertEquals("ENABLED", state.name());
+        assertEquals("ENABLED", state.toString());
+        assertEquals(1, state.ordinal());
+
         // setState(TraceEnablement state)
         fixture.setState(TraceEnablement.DISABLED);
         state = fixture.getState();
This page took 0.027192 seconds and 5 git commands to generate.