Java Code Examples for java.time.Year#atMonthDay()

The following examples show how to use java.time.Year#atMonthDay() . 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: TCKYear.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 2
Source File: TCKYear.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 3
Source File: TCKYear.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 4
Source File: TCKYear.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 5
Source File: TCKYear.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 6
Source File: TCKYear.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 7
Source File: TCKYear.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 8
Source File: TCKYear.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 9
Source File: TCKYear.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 10
Source File: TCKYear.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 11
Source File: TCKYear.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 12
Source File: TCKYear.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 13
Source File: TCKYear.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(expectedExceptions=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 14
Source File: TCKYear.java    From j2objc with Apache License 2.0 4 votes vote down vote up
@Test(expected=NullPointerException.class)
public void test_atMonthDay_nullMonthDay() {
    Year test = Year.of(2008);
    test.atMonthDay((MonthDay) null);
}
 
Example 15
Source File: DateTimeExtensions.java    From groovy with Apache License 2.0 2 votes vote down vote up
/**
 * Returns a {@link java.time.LocalDate} of this month/day and the provided {@link java.time.Year}.
 *
 * @param self a MonthDay
 * @param year a Year
 * @return a LocalDate
 * @since 2.5.0
 */
public static LocalDate leftShift(final MonthDay self, Year year) {
    return year.atMonthDay(self);
}
 
Example 16
Source File: DateTimeExtensions.java    From groovy with Apache License 2.0 2 votes vote down vote up
/**
 * Returns a {@link java.time.LocalDate} of this year on the given {@link java.time.MonthDay}.
 *
 * @param self     a Year
 * @param monthDay a MonthDay
 * @return a LocalDate
 * @since 2.5.0
 */
public static LocalDate leftShift(final Year self, MonthDay monthDay) {
    return self.atMonthDay(monthDay);
}