|
11 | 11 |
|
12 | 12 | package org.javamoney.tck.tests; |
13 | 13 |
|
| 14 | +import org.jboss.test.audit.annotations.SpecAssertion; |
14 | 15 | import org.jboss.test.audit.annotations.SpecVersion; |
15 | 16 | import org.junit.Assert; |
16 | 17 | import org.junit.Test; |
|
21 | 22 | @SpecVersion(spec = "JSR 354", version = "1.0.0") |
22 | 23 | public class AccessingCurrenciesAmountsRoundingsTest{ |
23 | 24 |
|
24 | | - @Test |
25 | | - public void placeholder(){ |
| 25 | + // ****************** A. Accessing Currencies ******************* |
| 26 | + |
| 27 | + |
| 28 | + /** |
| 29 | + * Test if MonetaryCurrencies provides all ISO related entries, |
| 30 | + similar to the JDK. |
| 31 | + */ |
| 32 | + @Test @SpecAssertion(section="4.2.7", id = "427-A1") |
| 33 | + public void testAllISOCurrenciesAvailable(){ |
| 34 | + Assert.fail(); |
| 35 | + } |
| 36 | + |
| 37 | + /** |
| 38 | + * Test if MonetaryCurrencies provides all Locale related |
| 39 | + entries, similar to the JDK. |
| 40 | + */ |
| 41 | + @Test @SpecAssertion(section="4.2.7", id = "427-A2") |
| 42 | + public void testAllLocaleCurrenciesAvailable(){ |
| 43 | + Assert.fail(); |
| 44 | + } |
| 45 | + |
| 46 | + /** |
| 47 | + * Test if MonetaryCurrencies provides correct instance with ISO |
| 48 | + codes. |
| 49 | + */ |
| 50 | + @Test @SpecAssertion(section="4.2.7", id = "427-A3") |
| 51 | + public void testCorrectISOCodes(){ |
| 52 | + Assert.fail(); |
| 53 | + } |
| 54 | + |
| 55 | + /** |
| 56 | + * Test if MonetaryCurrencies provides correct instance with |
| 57 | + Locales. |
| 58 | + */ |
| 59 | + @Test @SpecAssertion(section="4.2.7", id = "427-A4") |
| 60 | + public void testCorrectLocales(){ |
| 61 | + Assert.fail(); |
| 62 | + } |
| 63 | + |
| 64 | + /** |
| 65 | + * Test for custom MonetaryCurrencies provided, based on the TCK |
| 66 | + TestProvider. |
| 67 | + */ |
| 68 | + @Test @SpecAssertion(section="4.2.7", id = "427-A5") |
| 69 | + public void testCustomCurrencies(){ |
| 70 | + Assert.fail(); |
| 71 | + } |
| 72 | + |
| 73 | + // ********************************* B. Accessing Monetary Amount Factories *********************** |
| 74 | + |
| 75 | + /** |
| 76 | + * Ensure the types available, must be at least one type (if one |
| 77 | + has a specified AmountFlavor, 2 are recommended). |
| 78 | + */ |
| 79 | + @Test @SpecAssertion(section="4.2.7", id = "427-B1") |
| 80 | + public void testAmountTypesDefined(){ |
| 81 | + Assert.fail(); |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * Ensure amount factories are accessible for all types |
| 86 | + available, |
| 87 | + providing also the |
| 88 | + some test implementations with the |
| 89 | + TCK. |
| 90 | + */ |
| 91 | + @Test @SpecAssertion(section="4.2.7", id = "427-B2") |
| 92 | + public void testAmountTypesProvided(){ |
26 | 93 | Assert.fail(); |
27 | 94 | } |
28 | 95 |
|
29 | | - /* |
30 | | - <group> |
31 | | - <text>A. Accessing Currencies</text> |
32 | | - <assertion id="427-A1"> |
33 | | - <text>Test if MonetaryCurrencies provides all ISO related entries, |
34 | | - similar to the JDK. |
35 | | - </text> |
36 | | - </assertion> |
37 | | - <assertion id="427-A2"> |
38 | | - <text>Test if MonetaryCurrencies provides all Locale related |
39 | | - entries, similar to the JDK. |
40 | | - </text> |
41 | | - </assertion> |
42 | | - <assertion id="427-A3"> |
43 | | - <text>Test if MonetaryCurrencies provides correct check for ISO |
44 | | - codes. |
45 | | - </text> |
46 | | - </assertion> |
47 | | - <assertion id="427-A4"> |
48 | | - <text>Test if MonetaryCurrencies provides correct check for |
49 | | - Locales. |
50 | | - </text> |
51 | | - </assertion> |
52 | | - <assertion id="427-A5"> |
53 | | - <text>Test for custom MonetaryCurrencies provided, based on the TCK |
54 | | - TestProvider. |
55 | | - </text> |
56 | | - </assertion> |
57 | | - </group> |
58 | | - <group> |
59 | | - <text>B. Accessing Monetary Amount Factories</text> |
60 | | - <assertion id="427-B1"> |
61 | | - <text>Ensure the types available, must be at least one type (if one |
62 | | - has a specified AmountFlavor, 2 are recommended). |
63 | | - </text> |
64 | | - </assertion> |
65 | | - <assertion id="427-B2"> |
66 | | - <text>Ensure amount factories are accessible for all types |
67 | | - available, |
68 | | - providing also the |
69 | | - some test implementations with the |
70 | | - TCK. |
71 | | - </text> |
72 | | - </assertion> |
73 | | - <assertion id="427-B3"> |
74 | | - <text>Ensure amount factories are accessible for all types |
75 | | - available, |
76 | | - providing also the |
77 | | - some test implementations with the |
78 | | - TCK, |
79 | | - and that |
80 | | - every factory accessed |
81 | | - is a new instance. |
82 | | - </text> |
83 | | - </assertion> |
84 | | - <assertion id="427-B4"> |
85 | | - <text>Ensure correct query function implementations, providing also |
86 | | - the |
87 | | - some test implementations with the TCK. |
88 | | - </text> |
89 | | - </assertion> |
90 | | - <assertion id="427-B5"> |
91 | | - <text>Ensure a default factory is returned. Test javamoney.config |
92 | | - for |
93 | | - configuring default value. |
94 | | - </text> |
95 | | - </assertion> |
96 | | - </group> |
97 | | - <group> |
98 | | - <text>C. Accessing Roundings</text> |
99 | | - <assertion id="427-C1"> |
100 | | - <text>Access roundings using all defined currencies, including TCK |
101 | | - custom currencies. |
102 | | - </text> |
103 | | - </assertion> |
104 | | - <assertion id="427-C2"> |
105 | | - <text>Access roundings using a MonetaryContext. Use different |
106 | | - MathContext/RoundingMode, as an attribute, when running |
107 | | - on the JDK. |
108 | | - </text> |
109 | | - </assertion> |
110 | | - <assertion id="427-C3"> |
111 | | - <text>Access custom roundings and ensure TCK custom roundings are |
112 | | - registered. |
113 | | - </text> |
114 | | - </assertion> |
115 | | - <assertion id="427-C4"> |
116 | | - <text>Test TCK custom roundings. |
117 | | - </text> |
118 | | - </assertion> |
119 | | - </group> |
| 96 | + /** |
| 97 | + * Ensure amount factories are accessible for all types |
| 98 | + available, |
| 99 | + providing also the |
| 100 | + some test implementations with the |
| 101 | + TCK, |
| 102 | + and that |
| 103 | + every factory accessed |
| 104 | + is a new instance. |
120 | 105 | */ |
| 106 | + @Test @SpecAssertion(section="4.2.7", id = "427-B3") |
| 107 | + public void testAmountTypesInstantiatable(){ |
| 108 | + Assert.fail(); |
| 109 | + } |
| 110 | + |
| 111 | + /** |
| 112 | + * Ensure correct query function implementations, providing also |
| 113 | + the some test implementations with the TCK. |
| 114 | + */ |
| 115 | + @Test @SpecAssertion(section="4.2.7", id = "427-B4") |
| 116 | + public void testAmountQueryType(){ |
| 117 | + Assert.fail(); |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * Ensure a default factory is returned. Test javamoney.config |
| 122 | + for configuring default value. |
| 123 | + */ |
| 124 | + @Test @SpecAssertion(section="4.2.7", id = "427-B5") |
| 125 | + public void testAmountDefaultType(){ |
| 126 | + Assert.fail(); |
| 127 | + } |
| 128 | + |
| 129 | + // ********************************* C. Accessing Roundings ***************************** |
| 130 | + |
| 131 | + /** |
| 132 | + * Access roundings using all defined currencies, including TCK |
| 133 | + custom currencies. |
| 134 | + */ |
| 135 | + @Test @SpecAssertion(section="4.2.7", id = "427-C1") |
| 136 | + public void testAccessRoundingsForCustomCurrencies(){ |
| 137 | + Assert.fail(); |
| 138 | + } |
| 139 | + |
| 140 | + /** |
| 141 | + * Access roundings using a MonetaryContext. Use different |
| 142 | + MathContext/RoundingMode, as an attribute, when running |
| 143 | + on the JDK. |
| 144 | + */ |
| 145 | + @Test @SpecAssertion(section="4.2.7", id = "427-C2") |
| 146 | + public void testAccessRoundingsWithMonetaryContext(){ |
| 147 | + Assert.fail(); |
| 148 | + } |
| 149 | + |
| 150 | + /** |
| 151 | + * Access custom roundings and ensure TCK custom roundings are |
| 152 | + registered. |
| 153 | + */ |
| 154 | + @Test @SpecAssertion(section="4.2.7", id = "427-C3") |
| 155 | + public void testAccessCustomRoundings(){ |
| 156 | + Assert.fail(); |
| 157 | + } |
| 158 | + |
| 159 | + /** |
| 160 | + * Test TCK custom roundings. |
| 161 | + */ |
| 162 | + @Test @SpecAssertion(section="4.2.7", id = "427-C4") |
| 163 | + public void testCustomRoundings(){ |
| 164 | + Assert.fail(); |
| 165 | + } |
| 166 | + |
121 | 167 | } |
0 commit comments