Java Code Examples for java.time.MonthDay#toString()

The following examples show how to use java.time.MonthDay#toString() . 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: TCKMonthDay.java    From j2objc with Apache License 2.0 5 votes vote down vote up
@Test()
@UseDataProvider("provider_sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 2
Source File: TCKMonthDay.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 3
Source File: StringColumnMonthDayMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullValue(MonthDay value) {
    return value.toString();
}
 
Example 4
Source File: MonthDayXmlAdapter.java    From threeten-jaxb with Apache License 2.0 4 votes vote down vote up
@Override
public String marshal(MonthDay value) {
    return value != null ? value.toString() : null;
}
 
Example 5
Source File: TCKMonthDay.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 6
Source File: TCKMonthDay.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 7
Source File: TCKMonthDay.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 8
Source File: TCKMonthDay.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 9
Source File: MonthDayFormatter.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public String print(MonthDay object, Locale locale) {
	return object.toString();
}
 
Example 10
Source File: TCKMonthDay.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 11
Source File: MonthDayFormatter.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public String print(MonthDay object, Locale locale) {
	return object.toString();
}
 
Example 12
Source File: TCKMonthDay.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 13
Source File: TCKMonthDay.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 14
Source File: TimestampColumnMonthDayMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullString(MonthDay value) {
    return value.toString();
}
 
Example 15
Source File: MonthDayFormatter.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String print(MonthDay object, Locale locale) {
	return object.toString();
}
 
Example 16
Source File: TCKMonthDay.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 17
Source File: TCKMonthDay.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 18
Source File: DateColumnMonthDayMapper.java    From jadira with Apache License 2.0 4 votes vote down vote up
@Override
public String toNonNullString(MonthDay value) {
    return value.toString();
}
 
Example 19
Source File: TCKMonthDay.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}
 
Example 20
Source File: TCKMonthDay.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
@Test(dataProvider="sampleToString")
public void test_toString(int m, int d, String expected) {
    MonthDay test = MonthDay.of(m, d);
    String str = test.toString();
    assertEquals(str, expected);
}