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