mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
Merge pull request #1775 from songsungkyun/test_timezone
fix timezone issue on testing
This commit is contained in:
commit
034712184d
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user