Skip to content

Instantly share code, notes, and snippets.

@solomax
Created October 28, 2015 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solomax/818844adec1e8538123b to your computer and use it in GitHub Desktop.
Save solomax/818844adec1e8538123b to your computer and use it in GitHub Desktop.
Test to prove there is no IST time zone in threetenbp
package com.mycompany.app;
import static org.junit.Assert.assertNotNull;
import java.util.TimeZone;
import org.junit.Test;
import org.threeten.bp.ZoneId;
/**
* Unit test for simple App.
*/
public class ISTTest {
@Test
public void test() {
TimeZone tz = TimeZone.getTimeZone(App.ZONE_ID);
assertNotNull("Java time zone should not be null", tz);
ZoneId bpz = ZoneId.of(App.ZONE_ID);
assertNotNull("threeten.bp.ZoneId should not be null", bpz);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment