@@ -0,0 +1,1983 @@
+package de.kopis.timeclicker;%0A%0Aimport de.kopis.timeclicker.api.TimeclickerAPI;%0Aimport de.kopis.timeclicker.model.UserSettings;%0A%0Aimport java.util.TimeZone;%0A%0Aimport com.google.appengine.api.users.User;%0Aimport com.google.appengine.api.users.UserService;%0Aimport com.google.appengine.api.users.UserServiceFactory;%0Aimport com.google.appengine.repackaged.com.google.common.collect.ImmutableMap;%0Aimport com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig;%0Aimport com.google.appengine.tools.development.testing.LocalServiceTestHelper;%0Aimport com.google.appengine.tools.development.testing.LocalUserServiceTestConfig;%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class ApplicationTest %7B%0A  public static final TimeZone USER_TIMEZONE = TimeZone.getTimeZone(%22Singapore%22);%0A  private final LocalServiceTestHelper helper = new LocalServiceTestHelper(%0A      new LocalUserServiceTestConfig(),%0A      new LocalDatastoreServiceTestConfig());%0A%0A  private TimeclickerAPI api = new TimeclickerAPI();%0A  private User user;%0A%0A  @Before%0A  public void setUp() throws Exception %7B%0A    helper%0A        .setEnvEmail(%22tester@localhost.localdomain%22)%0A        .setEnvAuthDomain(%22localhost.localdomain%22)%0A        .setEnvIsLoggedIn(true)%0A        // necessary to set the user ID, otherwise it is NULL%0A        .setEnvAttributes(ImmutableMap.of(%22com.google.appengine.api.users.UserService.user_id_key%22, %22123%22))%0A        .setUp();%0A%0A    final UserService userService = UserServiceFactory.getUserService();%0A    user = userService.getCurrentUser();%0A    // set a custom timezone for the current user%0A    final UserSettings settings = new UserSettings();%0A    settings.setTimezone(USER_TIMEZONE);%0A    api.setUserSettings(settings, user);%0A  %7D%0A%0A  @After%0A  public void tearDown() %7B%0A    helper.tearDown();%0A  %7D%0A%0A  @Test%0A  public void getDateFormat() %7B%0A    assertEquals(USER_TIMEZONE, Application.getDateFormat().getTimeZone());%0A  %7D%0A%7D%0A

Add testcase for user timezone