Merge pull request #1775 from songsungkyun/test_timezone

fix timezone issue on testing
This commit is contained in:
Timo Westkämper 2016-01-31 13:37:09 +02:00
commit 034712184d

View File

@ -19,7 +19,10 @@ import java.lang.reflect.Method;
import java.sql.Time;
import java.util.Date;
import java.util.List;
import java.util.TimeZone;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.google.common.collect.ImmutableList;
@ -36,6 +39,19 @@ public class ExpressionsTest {
TEST;
}
private TimeZone timeZone = null;
@Before
public void setUp() {
this.timeZone = TimeZone.getDefault();
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
}
@After
public void tearDown() {
TimeZone.setDefault(this.timeZone);
}
@Test
public void Signature() throws NoSuchMethodException {
List<String> types = ImmutableList.of("boolean", "comparable", "date", "dsl", "dateTime",