Skip to content

Commit 7a2f977

Browse files
committed
Fixed failing test
Test was failing due to assertion test not matching expected value.
1 parent 845e96f commit 7a2f977

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/java/com/ffxivcensus/gatherer/ConsoleTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,17 @@ public void TestConsoleHelp() throws Exception{
197197

198198
@Test
199199
public void testMain(){
200-
String[] args = {"-s","200", "-f","300"};
200+
String[] args = {"-s","1100", "-f","1400"};
201201
Console.main(args);
202+
//Check output
203+
assertFalse(outContent.toString().contains("does not exist."));
202204
}
203205

204206
@Test
205207
public void testDefault(){
206208
String[] args = {"-s","500","-f","600"};
207209
GathererController gc = Console.run(args);
208210
//Check output
209-
assertTrue(outContent.toString().contains("written to database successfully."));
210211
assertFalse(outContent.toString().contains("does not exist."));
211212
}
212213

0 commit comments

Comments
 (0)