Search in sources :

Example 1 with ConsoleStreamDaemon

use of org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon in project linuxtools by eclipse.

the class ConsoleStreamDaemonTest method testConsoleStreamDaemon.

@Test
public void testConsoleStreamDaemon() {
    assertNotNull(daemon);
    ConsoleStreamDaemon csd = new ConsoleStreamDaemon(null);
    assertNotNull(csd);
    csd = new ConsoleStreamDaemon(ScriptConsole.getInstance("test"));
    assertNotNull(csd);
}
Also used : ConsoleStreamDaemon(org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon) Test(org.junit.Test)

Example 2 with ConsoleStreamDaemon

use of org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon in project linuxtools by eclipse.

the class ConsoleStreamDaemonTest method setUp.

@Before
public void setUp() {
    StreamGobbler gobbler = new StreamGobbler(System.in);
    gobbler.start();
    daemon = new ConsoleStreamDaemon(null);
}
Also used : StreamGobbler(org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler) ConsoleStreamDaemon(org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon) Before(org.junit.Before)

Example 3 with ConsoleStreamDaemon

use of org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon in project linuxtools by eclipse.

the class ErrorStreamDaemonTest method testIsDisposed.

@Test
public void testIsDisposed() {
    ConsoleStreamDaemon csd = new ConsoleStreamDaemon(null);
    assertFalse(csd.isDisposed());
    csd.dispose();
    assertTrue(csd.isDisposed());
}
Also used : ConsoleStreamDaemon(org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon) Test(org.junit.Test)

Example 4 with ConsoleStreamDaemon

use of org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon in project linuxtools by eclipse.

the class ConsoleStreamDaemonTest method testIsDisposed.

@Test
public void testIsDisposed() {
    ConsoleStreamDaemon csd = new ConsoleStreamDaemon(null);
    assertFalse(csd.isDisposed());
    csd.dispose();
    assertTrue(csd.isDisposed());
}
Also used : ConsoleStreamDaemon(org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon) Test(org.junit.Test)

Example 5 with ConsoleStreamDaemon

use of org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon in project linuxtools by eclipse.

the class ErrorStreamDaemonTest method testConsoleStreamDaemon.

@Test
public void testConsoleStreamDaemon() {
    assertNotNull(daemon);
    ConsoleStreamDaemon csd = new ConsoleStreamDaemon(null);
    assertNotNull(csd);
    csd = new ConsoleStreamDaemon(ScriptConsole.getInstance("test"));
    assertNotNull(csd);
}
Also used : ConsoleStreamDaemon(org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon) Test(org.junit.Test)

Aggregations

ConsoleStreamDaemon (org.eclipse.linuxtools.systemtap.ui.consolelog.structures.ConsoleStreamDaemon)5 Test (org.junit.Test)4 StreamGobbler (org.eclipse.linuxtools.systemtap.structures.runnable.StreamGobbler)1 Before (org.junit.Before)1