Java Code Examples for java.time.LocalDate#atTime()

The following examples show how to use java.time.LocalDate#atTime() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TCKLocalDate.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_int_nanoTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 30, 40, 1000000000);
}
 
Example 2
Source File: TCKLocalDate.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_secondTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 30, 60);
}
 
Example 3
Source File: TCKLocalDate.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Test(expected=DateTimeException.class)
public void test_atTime_int_int_int_int_minuteTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, -1, 40, 50);
}
 
Example 4
Source File: TCKLocalDate.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_hourTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(-1, 30, 40);
}
 
Example 5
Source File: TCKLocalDate.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Test(expected=DateTimeException.class)
public void test_atTime_int_int_int_int_hourTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(-1, 30, 40, 50);
}
 
Example 6
Source File: TCKLocalDate.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_minuteTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 60, 40);
}
 
Example 7
Source File: TCKLocalDate.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_int_hourTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(24, 30, 40, 50);
}
 
Example 8
Source File: TCKLocalDate.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_int_secondTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 30, -1, 50);
}
 
Example 9
Source File: TCKLocalDate.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_int_hourTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(-1, 30, 40, 50);
}
 
Example 10
Source File: TCKLocalDate.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_minuteTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 60, 40);
}
 
Example 11
Source File: TCKLocalDate.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_minuteTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, -1);
}
 
Example 12
Source File: TCKLocalDate.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_hourTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(24, 30);
}
 
Example 13
Source File: TCKLocalDate.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Test(expected=DateTimeException.class)
public void test_atTime_int_int_int_int_secondTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 30, 60, 50);
}
 
Example 14
Source File: TCKLocalDate.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_minuteTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 60);
}
 
Example 15
Source File: TCKLocalDate.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Test(expected=DateTimeException.class)
public void test_atTime_int_int_minuteTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 60);
}
 
Example 16
Source File: TCKLocalDate.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_int_int_nanoTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 30, 40, 1000000000);
}
 
Example 17
Source File: TCKLocalDate.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_hourTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(-1, 30);
}
 
Example 18
Source File: TCKLocalDate.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_hourTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(-1, 30);
}
 
Example 19
Source File: TCKLocalDate.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_hourTooSmall() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(-1, 30);
}
 
Example 20
Source File: TCKLocalDate.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=DateTimeException.class)
public void test_atTime_int_int_minuteTooBig() {
    LocalDate t = LocalDate.of(2008, 6, 30);
    t.atTime(11, 60);
}