|
3 | 3 | xmlns="http://jboss.com/products/weld/tck/audit" xsi:schemaLocation="http://jboss.com/products/weld/tck/audit" |
4 | 4 | name="JSR 354 Money and Currency" version="1.0.0" id="JSR 354" |
5 | 5 | generateSectionIds="false"> |
6 | | - <section id="0" title="TCK Setup" > |
| 6 | + <section id="0" title="TCK Setup"> |
7 | 7 | <assertion id="EnsureSetup"> |
8 | | - <text>Ensure an implementation of org.javamoney.tck.JSR354TestConfiguration is registered using the java.util.ServiceLoader.</text> |
| 8 | + <text>Ensure an implementation of |
| 9 | + org.javamoney.tck.JSR354TestConfiguration is registered using the |
| 10 | + java.util.ServiceLoader.</text> |
9 | 11 | </assertion> |
10 | 12 | <assertion id="EnsurePackageSetup"> |
11 | | - <text>Asserts the basic implementation packages are registered.</text> |
| 13 | + <text>Asserts the basic implementation packages are registered. |
| 14 | + </text> |
12 | 15 | </assertion> |
13 | 16 | <assertion id="EnsureAdjusterSetup"> |
14 | 17 | <text>Asserts adjusters to test are not empty.</text> |
|
21 | 24 | <section id="2" title="Use Cases" /> |
22 | 25 | <section id="3" title="Requirements" /> |
23 | 26 | <section id="4" title="Specification" /> |
24 | | - <section id="4.2" title="Money and Currency API"/> |
25 | | - <section id="4.2.1" title="Interface javax.money.CurrencyUnit" > |
| 27 | + <section id="4.2" title="Money and Currency Core API" /> |
| 28 | + <section id="4.2.1" title="Interface javax.money.CurrencyUnit"> |
26 | 29 | <group> |
27 | 30 | <text>Managing the Currency code</text> |
28 | 31 | <assertion id="EnsureCurrencyUnit"> |
29 | 32 | <text>Ensure at least one javax.money.CurrencyUnit implementation |
30 | | - is available. |
| 33 | + is |
| 34 | + available. |
31 | 35 | </text> |
32 | 36 | </assertion> |
33 | 37 | <assertion id="CurrencyCodeUnique"> |
34 | 38 | <text>Ensure at the currency code is unique. |
35 | 39 | </text> |
36 | 40 | </assertion> |
37 | 41 | <assertion id="Enforce3LetterCode4ISO"> |
38 | | - <text>Ensure ISO codes 3-letters are available. |
| 42 | + <text>Ensure ISO 3-letters codes are available. |
39 | 43 | </text> |
40 | 44 | </assertion> |
41 | 45 | <assertion id="AllowAny4NonISOCode"> |
|
76 | 80 | <text>Preconditions</text> |
77 | 81 | <assertion id="EnsureMonetaryAmount"> |
78 | 82 | <text>Ensure at least one javax.money.MonetaryAmount |
79 | | - implementation is available. |
| 83 | + implementation |
| 84 | + is available. |
80 | 85 | </text> |
81 | 86 | </assertion> |
82 | 87 | </group> |
83 | 88 | <group> |
84 | 89 | <text>Currency Code and Numeric Representation</text> |
85 | | - <assertion id="CurrencyCode"> |
| 90 | + <assertion id="getCurrency"> |
86 | 91 | <text>Ensure getCurrencyCode returns correct results.</text> |
87 | 92 | </assertion> |
88 | | - <assertion id="AmountWhole"> |
| 93 | + <assertion id="getNumber"> |
89 | 94 | <text>Ensure getAmountWhole returns correct results.</text> |
90 | 95 | </assertion> |
91 | | - <assertion id="AmountFractionNumber"> |
92 | | - <text>Ensure getAmountFractionNumber returns correct results. |
| 96 | + <assertion id="getMonetaryContext"> |
| 97 | + <text>Ensure getMonetaryContext returns correct results. |
| 98 | + </text> |
| 99 | + </assertion> |
| 100 | + <assertion id="getFactory"> |
| 101 | + <text>Ensure getFactory returns a MonetaryAmountFactory and that |
| 102 | + instances created are of the same type. |
| 103 | + </text> |
| 104 | + </assertion> |
| 105 | + <assertion id="isGreaterThan"> |
| 106 | + <text>The isGreaterThan() implemented correctly.</text> |
| 107 | + </assertion> |
| 108 | + <assertion id="isGreaterThanOrEqals"> |
| 109 | + <text>The isGreaterThanOrEqals() implemented correctly.</text> |
| 110 | + </assertion> |
| 111 | + <assertion id="isLessThan"> |
| 112 | + <text>The isLessThan() implemented correctly.</text> |
| 113 | + </assertion> |
| 114 | + <assertion id="isLessThanOrEqals"> |
| 115 | + <text>The isLessThanOrEqals() implemented correctly.</text> |
| 116 | + </assertion> |
| 117 | + <assertion id="isEqualTo"> |
| 118 | + <text>The isEqualTos() return true, regardless of display type.</text> |
| 119 | + </assertion> |
| 120 | + <assertion id="signum"> |
| 121 | + <text>The signum() function is implemented correctly. |
| 122 | + </text> |
| 123 | + </assertion> |
| 124 | + <assertion id="isPositive"> |
| 125 | + <text>The isPositive() function is implemented correctly. |
| 126 | + </text> |
| 127 | + </assertion> |
| 128 | + <assertion id="isNegative"> |
| 129 | + <text>The isNegative() function is implemented correctly. |
| 130 | + </text> |
| 131 | + </assertion> |
| 132 | + <assertion id="isZero"> |
| 133 | + <text>The isZero() function must return true, regardless of the value's precision. |
93 | 134 | </text> |
94 | 135 | </assertion> |
95 | | - <assertion id="AmountFractionDenominator"> |
96 | | - <text>Ensure getAmountFractionDenominator returns correct |
97 | | - results. |
| 136 | + <assertion id="add"> |
| 137 | + <text>The add() function must add two values. |
98 | 138 | </text> |
99 | 139 | </assertion> |
100 | | - <assertion id="NumericRepresentation"> |
101 | | - <text>The portable numeric representation constraints must be |
102 | | - followed. |
| 140 | + <assertion id="subtract"> |
| 141 | + <text>The subtract() function must subtract a value from another. |
| 142 | + </text> |
| 143 | + </assertion> |
| 144 | + <assertion id="multiply"> |
| 145 | + <text>The multiply function allow to multiply numbers. |
| 146 | + </text> |
| 147 | + </assertion> |
| 148 | + <assertion id="divide"> |
| 149 | + <text>The "divide" function allow to divide numbers. |
| 150 | + </text> |
| 151 | + </assertion> |
| 152 | + <assertion id="remainder"> |
| 153 | + <text>The ""remainder"" function allow to calculate the remainder. |
| 154 | + </text> |
| 155 | + </assertion> |
| 156 | + <assertion id="divideAndRemainder"> |
| 157 | + <text>The "divideAndRemainder" function allow to dive/remind numbers. |
| 158 | + </text> |
| 159 | + </assertion> |
| 160 | + <assertion id="scaleByPowerOfTen"> |
| 161 | + <text>The "scaleByPowerOfTen" function allow to scale by power of 10. |
| 162 | + </text> |
| 163 | + </assertion> |
| 164 | + <assertion id="abs"> |
| 165 | + <text>The abs() function allow to scalculate the absolute value. |
| 166 | + </text> |
| 167 | + </assertion> |
| 168 | + <assertion id="negate"> |
| 169 | + <text>The negate() function allow to negate the value. |
103 | 170 | </text> |
104 | 171 | </assertion> |
105 | 172 | </group> |
106 | 173 | <group> |
107 | 174 | <text>Extension Points</text> |
108 | 175 | <assertion id="With"> |
109 | | - <text>Ensure with(MonetaryAdjuster) can be called and produces |
| 176 | + <text>Ensure with(MonetaryOperator) can be called and produces |
110 | 177 | valuable results. |
111 | 178 | </text> |
112 | 179 | </assertion> |
|
120 | 187 | <text>General Requirements</text> |
121 | 188 | <assertion id="ImplementsEquals"> |
122 | 189 | <text>Implementations of MonetaryAmount must implement equals, |
123 | | - considering number, currency and implementation type. |
| 190 | + considering number, currency and implementation type, monetary context. |
124 | 191 | </text> |
125 | 192 | </assertion> |
126 | 193 | <assertion id="ImplementsHashCode"> |
127 | 194 | <text>Implementations of MonetaryAmount must implement hashCode, |
128 | | - considering number, currency and implementation type. |
| 195 | + considering number, currency and implementation type, monetary context. |
129 | 196 | </text> |
130 | 197 | </assertion> |
131 | 198 | <assertion id="IsComparable"> |
132 | 199 | <text>Implementations of MonetaryAmount must be Comparable. |
133 | 200 | </text> |
134 | 201 | </assertion> |
| 202 | + <assertion id="IsSerializable"> |
| 203 | + <text>Implementations of MonetaryAmount must be Serializable. |
| 204 | + </text> |
| 205 | + </assertion> |
135 | 206 | </group> |
136 | 207 | </section> |
137 | | - <section id="4.2.3" title="Interface javax.money.MonetaryAdjuster" /> |
| 208 | + <section id="4.2.3" title="Interface javax.money.NumberValue" > |
| 209 | + |
| 210 | + </section> |
| 211 | + <section id="4.2.4" title="Interface javax.money.MonetaryOperator" /> |
138 | 212 | <section id="4.2.4" title="Interface javax.money.MonetaryQuery" /> |
139 | 213 | <section id="4.2.5" title="Interface javax.money.MonetaryException"> |
140 | 214 | <assertion id="Exceptions"> |
|
149 | 223 | <text>Formatting different groupSizes.</text> |
150 | 224 | </assertion> |
151 | 225 | </section> |
152 | | - <section id="5" title="Recommendations"/> |
| 226 | + <section id="5" title="Recommendations" /> |
153 | 227 | <section id="5.1" title="Rounding"> |
154 | 228 | <group> |
155 | 229 | <text>Access Recommendations</text> |
|
0 commit comments