MeasurementThread implements Runnable { public boolean isAlive() { if (logThread == null) { return false; } return logThread.isAlive(); } MeasurementThread(ResultLogger l); void logResourcesUsage(); void run(); void start(int iInterval); void interrupt(); void join(); boolean isAlive(); boolean isRunning();  }
@Test public void testIsAliveWithoutCallingStart() throws FileNotFoundException { MeasurementThread m = new MeasurementThread(new ResultLogger( Platform.TMP_DIR, new TextGenerator(new FileOutputStream( new File(Platform.TMP_DIR + Platform.FILE_SEPARATOR + "tmp.txt"))),"C:\\Program Files\\JATK\\Salome-script\\Confile.xml")); assertFalse(m.isAlive()); }