Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dariober committed Jul 26, 2024
1 parent e58cff4 commit be0d324
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/test/java/samTextViewer/InteractiveInputTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package samTextViewer;

import static org.junit.Assert.*;

import colouring.Config;
import com.google.common.base.Splitter;
import exceptions.InvalidCommandLineException;
Expand All @@ -27,6 +25,8 @@
import tracks.TrackPileup;
import tracks.TrackSet;

import static org.junit.Assert.*;

public class InteractiveInputTest {

public class ProcessInput {
Expand Down Expand Up @@ -237,13 +237,9 @@ public void canHandleSessionNameNotFound()
InvalidCommandLineException {
new Config(null);
TrackProcessor proc = this.gimmeTrackProcessor("chr7:1001-1800", 80);
InteractiveInput ip = new InteractiveInput(new ConsoleReader(), 0);
InteractiveInput ip = new InteractiveInput(new ConsoleReader(), 2);
ProcessInput pi = this.processInput(ip, "session open -f test_data/session.yaml spam", proc);
System.out.println("START");
System.out.println("STDOUT:\n" + pi.stdout);
System.out.println("STDERR:\n" + pi.stderr);
System.out.println("DONE");
assertEquals("bar", pi.stdout);
assertEquals("bar", pi.stderr);
// assertTrue(pi.stderr.contains("Cannot find session with name 'spam'"));
}

Expand Down

0 comments on commit be0d324

Please sign in to comment.