public class DateTimeZoneRule extends Object implements org.junit.rules.MethodRule
| Modifier and Type | Field and Description |
|---|---|
protected org.joda.time.DateTimeZone |
zone |
| Constructor and Description |
|---|
DateTimeZoneRule() |
DateTimeZoneRule(org.joda.time.DateTimeZone zone) |
DateTimeZoneRule(String zoneId) |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target) |
org.joda.time.DateTimeZone |
getOldTimeZone() |
org.joda.time.DateTimeZone |
getZone() |
@Nonnull protected final org.joda.time.DateTimeZone zone
public DateTimeZoneRule()
throws IllegalArgumentException
IllegalArgumentExceptionpublic DateTimeZoneRule(@Nonnull String zoneId) throws IllegalArgumentException
IllegalArgumentExceptionpublic DateTimeZoneRule(@Nonnull org.joda.time.DateTimeZone zone)
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target)
apply in interface org.junit.rules.MethodRule@Nonnull public org.joda.time.DateTimeZone getZone()
@Nonnull public org.joda.time.DateTimeZone getOldTimeZone()
Copyright © 2007–2016 cedarsoft GmbH. All rights reserved.