Beispiel #1
0
 @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);
 }
Beispiel #2
0
 @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);
 }
Beispiel #3
0
 @Test
 public void testParseBadPlayListNumber() throws Exception {
   SortedSet<MatchResult> results =
       parser.parse(LogFileHelper.getInvalidCsvLogFile("playlistAsBadNumber.csv"));
   assertEquals(results.size(), 0);
 }
Beispiel #4
0
 @Test
 public void testParseBadValues() throws Exception {
   SortedSet<MatchResult> results =
       parser.parse(LogFileHelper.getInvalidCsvLogFile("badvalues.csv"));
   assertEquals(results.size(), 0);
 }
Beispiel #5
0
 @Test
 public void testParseMissingHeader() throws Exception {
   SortedSet<MatchResult> results =
       parser.parse(LogFileHelper.getInvalidCsvLogFile("noheader.csv"));
   assertEquals(results.size(), 0);
 }