Esempio n. 1
0
  /** Test parsing a graduation date */
  @Test
  public void testParseGraduation() {
    List<String> parsedGrad = ViewTab.parseGraduation("May 2012");

    assertEquals("May", parsedGrad.get(0));
    assertEquals("2012", parsedGrad.get(1));
  }
Esempio n. 2
0
  /** Test converting a month String to an integer */
  @Test
  public void testMonthNameToInt() {
    int month = ViewTab.monthNameToInt("May");

    assertEquals(4, month);
  }