下面列出了java.time.OffsetDateTime#from ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=NullPointerException.class)
public void test_factory_Calendricals_null() {
OffsetDateTime.from((TemporalAccessor) null);
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=NullPointerException.class)
public void test_factory_Calendricals_null() {
OffsetDateTime.from((TemporalAccessor) null);
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=NullPointerException.class)
public void test_factory_Calendricals_null() {
OffsetDateTime.from((TemporalAccessor) null);
}
public OffsetDateTime getOffsetDateTime() {
return OffsetDateTime.from(internal);
}
@Test(expectedExceptions=NullPointerException.class)
public void test_factory_Calendricals_null() {
OffsetDateTime.from((TemporalAccessor) null);
}
@Test(expectedExceptions=NullPointerException.class)
public void test_factory_Calendricals_null() {
OffsetDateTime.from((TemporalAccessor) null);
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=NullPointerException.class)
public void test_factory_Calendricals_null() {
OffsetDateTime.from((TemporalAccessor) null);
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=NullPointerException.class)
public void test_factory_Calendricals_null() {
OffsetDateTime.from((TemporalAccessor) null);
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=NullPointerException.class)
public void test_factory_Calendricals_null() {
OffsetDateTime.from((TemporalAccessor) null);
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
@Test(expectedExceptions=DateTimeException.class)
public void test_factory_CalendricalObject_invalid_noDerive() {
OffsetDateTime.from(LocalTime.of(12, 30));
}
private OffsetDateTime fromString(String val) {
return null != val ? OffsetDateTime.from(DEFAULT_FORMATTER.parse(val)): null;
}