@Test public void testParsePlayListNumber() throws Exception { SortedSet<MatchResult> results = parser.parse(LogFileHelper.getValidCsvLogFile("playlistAsNumber.csv")); assertEquals(results.size(), 1); assertEquals(results.first().getPlayList(), MatchResult.SOLO_RANKED_3V3); }
@Test public void testParse() throws Exception { SortedSet<MatchResult> results = parser.parse(LogFileHelper.getValidCsvLogFile("log.csv")); assertEquals(results.size(), 2); assertEquals(results.first().getSkillMean(), -1f); assertEquals(results.first().getSkillSigma(), -1f); }
@Test public void testParseBadPlayListNumber() throws Exception { SortedSet<MatchResult> results = parser.parse(LogFileHelper.getInvalidCsvLogFile("playlistAsBadNumber.csv")); assertEquals(results.size(), 0); }
@Test public void testParseBadValues() throws Exception { SortedSet<MatchResult> results = parser.parse(LogFileHelper.getInvalidCsvLogFile("badvalues.csv")); assertEquals(results.size(), 0); }
@Test public void testParseMissingHeader() throws Exception { SortedSet<MatchResult> results = parser.parse(LogFileHelper.getInvalidCsvLogFile("noheader.csv")); assertEquals(results.size(), 0); }