Test suite
Test case 1
1: ProcessWatcher processWatcher0 = new ProcessWatcher((Process) null, "");
2: ProcessWatcherListener processWatcherListener0 = mock(ProcessWatcherListener.class, new ViolatedAssumptionAnswer());
3: processWatcher0.addProcessWatcherListener(processWatcherListener0);
Test case 2
1: Process process0 = mock(Process.class, new ViolatedAssumptionAnswer());
2: ProcessWatcher processWatcher0 = new ProcessWatcher(process0, "");
3: ProcessWatcherListener processWatcherListener0 = mock(ProcessWatcherListener.class, new ViolatedAssumptionAnswer());
4: processWatcher0.removeProcessWatcherListener(processWatcherListener0);
Test case 3
1: InputStream inputStream0 = mock(InputStream.class, new ViolatedAssumptionAnswer());
2: Process process0 = mock(Process.class, new ViolatedAssumptionAnswer());
3: doReturn(inputStream0).when(process0).getErrorStream();
4: ProcessWatcher processWatcher0 = new ProcessWatcher(process0, "\n", false);
5: processWatcher0.run();
Test case 4
1: ProcessWatcher processWatcher0 = new ProcessWatcher((Process) null, "");
2: processWatcher0.run();
Source Code
1: No source found for uk.ac.sanger.artemis.components.ProcessWatcher
EvoSuite Parameters
- TARGET_CLASS: uk.ac.sanger.artemis.components.ProcessWatcher
- Size: 4
- Length: 13
- criterion: LINE;BRANCH;EXCEPTION;WEAKMUTATION;OUTPUT;METHOD;METHODNOEXCEPTION;CBRANCH
- Coverage: 0.4320115546218487
- BranchCoverage: 0.29411764705882354
- MethodCoverage: 1.0
- OutputCoverage: 1.0
Back to Overview