MCPcopy Create free account
hub / github.com/MenoData/Time4J / DatePatternTest

Class DatePatternTest

base/src/test/java/net/time4j/i18n/DatePatternTest.java:20–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20@RunWith(Parameterized.class)
21public class DatePatternTest {
22
23 @Parameterized.Parameters
24 (name= "{index}: "
25 + "(pattern={0},locale={1},value={2},text={3})")
26 public static Iterable<Object[]> data() {
27 return Arrays.asList(
28 new Object[][] {
29 {"dd.MM.uuuu ('mjd'=g)",
30 "de",
31 "2014-05-30",
32 "30.05.2014 (mjd=56807)"},
33 {"dd.MM.uuuu ('mjd'=g)",
34 "de",
35 "1858-11-17",
36 "17.11.1858 (mjd=0)"},
37 {"F. EEEE 'im Monat,' dd.MM.uuuu",
38 "de",
39 "2014-05-30",
40 "5. Freitag im Monat, 30.05.2014"},
41 {"F. EEEE 'in month,' MM/dd/uuuu",
42 "us",
43 "2014-05-19",
44 "3. Monday in month, 05/19/2014"},
45 {"uuuu-DDD",
46 "",
47 "2014-12-31",
48 "2014-365"},
49 {"uuuu-MM-dd (w)",
50 "",
51 "2009-12-28",
52 "2009-12-28 (53)"},
53 {"uuuu-MM-dd (W)",
54 "de",
55 "2009-12-28",
56 "2009-12-28 (5)"},
57 {"YYYY-MM-dd ('W'ww-e)",
58 "de",
59 "2010-01-03",
60 "2009-01-03 (W53-7)"},
61 {"uuuu-MM-dd (QQ)",
62 "de",
63 "2009-12-28",
64 "2009-12-28 (04)"},
65 {"uuuu-MM-dd (QQQ)",
66 "de",
67 "2009-12-28",
68 "2009-12-28 (Q4)"},
69 {"uuuu-MM-dd (QQQQ)",
70 "de",
71 "2009-12-28",
72 "2009-12-28 (4. Quartal)"},
73 {"dd.MM.yyyy G",
74 "de",
75 "2009-12-28",
76 "28.12.2009 n. Chr."},
77 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected