Package org.auraframework.impl.controller.TimeZoneInfoController

Examples of org.auraframework.impl.controller.TimeZoneInfoController.TimeZoneInfo


 
  /**
   * Test null value
   */
  public void testNullTimeZoneInfo() throws Exception{
    TimeZoneInfo ti = TimeZoneInfoController.getTimeZoneInfo(null);
    assertEquals(null, ti);   
  }
View Full Code Here


 
  /**
   * Test empty string as time zone value
   */
  public void testEmptyTimeZoneInfo() throws Exception{
    TimeZoneInfo ti = TimeZoneInfoController.getTimeZoneInfo("");
    assertNotNull(ti);   
    assertEquals(null, ti.getInfo());   
  }
View Full Code Here

 
  /**
   * Test string with slash only as time zone value
   */
  public void testSlashTimeZoneInfo() throws Exception{
    TimeZoneInfo ti = TimeZoneInfoController.getTimeZoneInfo("/");
    assertNotNull(ti);   
    assertEquals(null, ti.getInfo());   
  }
View Full Code Here

  /**
   * Test invalid time zone value
   */
  public void testInvalidTimeZoneInfo() throws Exception{
    String timezoneId = "America/San_Francisco";                   
    TimeZoneInfo ti = TimeZoneInfoController.getTimeZoneInfo(timezoneId);
    assertNotNull(ti);   
    assertEquals(null, ti.getInfo());   
  }
View Full Code Here

   */
  public void testLATimeZoneInfo() throws Exception{
    String timezoneId = "America/Los_Angeles"
    String info = "Los_Angeles";
    when(helpers.readTZInfoFromFile(timezoneId)).thenReturn(info);
    TimeZoneInfo ti = TimeZoneInfoController.getTimeZoneInfo(timezoneId, helpers);
    assertNotNull(ti);   
    assertTrue(ti.getInfo().contains(info));
 
View Full Code Here

   */
  public void testNYTimeZoneInfo() throws Exception{
    String timezoneId = "America/New_York"
    String info = "New_York";
    when(helpers.readTZInfoFromFile(timezoneId)).thenReturn(info);
    TimeZoneInfo ti = TimeZoneInfoController.getTimeZoneInfo(timezoneId, helpers);
    assertNotNull(ti);   
    assertTrue(ti.getInfo().contains(info));
 
View Full Code Here

TOP

Related Classes of org.auraframework.impl.controller.TimeZoneInfoController.TimeZoneInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.