Created
October 28, 2015 11:04
-
-
Save solomax/818844adec1e8538123b to your computer and use it in GitHub Desktop.
Test to prove there is no IST time zone in threetenbp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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