forked from loafle/openapi-generator-original
Add test for RFC3999DateFormat clone method (#11706)
* add test for RFC3999DateFormat clone method * better comment
This commit is contained in:
parent
d153134dec
commit
ae86945653
@ -1,6 +1,7 @@
|
|||||||
package org.openapitools.client;
|
package org.openapitools.client;
|
||||||
|
|
||||||
import org.openapitools.client.auth.*;
|
import org.openapitools.client.auth.*;
|
||||||
|
import org.openapitools.client.RFC3339DateFormat;
|
||||||
|
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
@ -18,6 +19,13 @@ public class ApiClientTest {
|
|||||||
apiClient = new ApiClient();
|
apiClient = new ApiClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testRFC3339DateFormat() {
|
||||||
|
// test the constructor and the clone method to ensure there's no NPE
|
||||||
|
RFC3339DateFormat r = new RFC3339DateFormat();
|
||||||
|
RFC3339DateFormat r2 = (RFC3339DateFormat) r.clone();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testParseAndFormatDate() {
|
public void testParseAndFormatDate() {
|
||||||
// default date format
|
// default date format
|
||||||
|
Loading…
x
Reference in New Issue
Block a user