Skip to content

Commit 5a79112

Browse files
committed
Moved plugins into parent.
1 parent 1d4da6a commit 5a79112

File tree

2 files changed

+100
-147
lines changed

2 files changed

+100
-147
lines changed

pom.xml

Lines changed: 3 additions & 124 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<artifactId>javamoney-parent</artifactId>
1515
<version>0.4-SNAPSHOT</version>
1616
</parent>
17+
1718
<artifactId>money-tck</artifactId>
1819
<packaging>jar</packaging>
1920

@@ -430,84 +431,7 @@
430431
</instructions>
431432
</configuration>
432433
</plugin>
433-
<plugin>
434-
<groupId>org.apache.maven.plugins</groupId>
435-
<artifactId>maven-clean-plugin</artifactId>
436-
<version>2.5</version>
437-
</plugin>
438-
<plugin>
439-
<groupId>org.apache.maven.plugins</groupId>
440-
<artifactId>maven-deploy-plugin</artifactId>
441-
<version>2.7</version>
442-
</plugin>
443-
<plugin>
444-
<groupId>org.apache.maven.plugins</groupId>
445-
<artifactId>maven-resources-plugin</artifactId>
446-
<version>2.6</version>
447-
</plugin>
448-
<plugin>
449-
<groupId>org.apache.maven.plugins</groupId>
450-
<artifactId>maven-jar-plugin</artifactId>
451-
<version>2.4</version>
452-
</plugin>
453-
<plugin>
454-
<groupId>org.apache.maven.plugins</groupId>
455-
<artifactId>maven-war-plugin</artifactId>
456-
<version>2.4</version>
457-
</plugin>
458-
<plugin>
459-
<groupId>org.apache.maven.plugins</groupId>
460-
<artifactId>maven-surefire-plugin</artifactId>
461-
<version>2.15</version>
462-
<configuration>
463-
<useSystemClassLoader>true</useSystemClassLoader>
464-
<skipTests>false</skipTests>
465-
<trimStackTrace>false</trimStackTrace>
466-
<testFailureIgnore>true</testFailureIgnore>
467-
<forkMode>once</forkMode>
468-
<includes>
469-
<include>**/*Test.java</include>
470-
</includes>
471-
<excludes>
472-
<exclude>**/Abstract*.java</exclude>
473-
</excludes>
474-
</configuration>
475-
</plugin>
476-
<plugin>
477-
<groupId>org.apache.maven.plugins</groupId>
478-
<artifactId>maven-assembly-plugin</artifactId>
479-
<version>2.4</version>
480-
</plugin>
481-
<plugin>
482-
<groupId>org.apache.maven.plugins</groupId>
483-
<artifactId>maven-install-plugin</artifactId>
484-
<version>2.4</version>
485-
<executions>
486-
<execution>
487-
<goals>
488-
<goal>install</goal>
489-
</goals>
490-
<configuration>
491-
<createChecksum>true</createChecksum>
492-
</configuration>
493-
</execution>
494-
</executions>
495-
</plugin>
496-
<plugin>
497-
<groupId>org.apache.maven.plugins</groupId>
498-
<artifactId>maven-dependency-plugin</artifactId>
499-
<version>2.8</version>
500-
</plugin>
501-
<plugin>
502-
<groupId>org.codehaus.mojo</groupId>
503-
<artifactId>versions-maven-plugin</artifactId>
504-
<version>2.1</version>
505-
</plugin>
506-
<plugin>
507-
<groupId>org.bsc.maven</groupId>
508-
<artifactId>maven-processor-plugin</artifactId>
509-
<version>2.0.4</version>
510-
</plugin>
434+
511435
<!--This plugin's configuration is used to store Eclipse m2e settings
512436
only. It has no influence on the Maven build itself. -->
513437
<plugin>
@@ -563,46 +487,10 @@
563487
<plugin>
564488
<groupId>org.codehaus.mojo</groupId>
565489
<artifactId>versions-maven-plugin</artifactId>
566-
<configuration></configuration>
567-
</plugin>
568-
<plugin>
569-
<artifactId>maven-release-plugin</artifactId>
570-
<version>2.4.1</version>
571-
<configuration>
572-
<!-- Workaround for MGPG-9 and MRELEASE-424, MRELEASE-263 -->
573-
<mavenExecutorId>forked-path</mavenExecutorId>
574-
</configuration>
575490
</plugin>
576491
<plugin>
577492
<groupId>org.apache.maven.plugins</groupId>
578-
<artifactId>maven-enforcer-plugin</artifactId>
579-
<version>1.3.1</version>
580-
<executions>
581-
<execution>
582-
<id>enforce-versions</id>
583-
<goals>
584-
<goal>enforce</goal>
585-
</goals>
586-
<configuration>
587-
<rules>
588-
<requireMavenVersion>
589-
<version>3.0.4</version>
590-
</requireMavenVersion>
591-
<requireJavaVersion>
592-
<version>1.7.0</version>
593-
</requireJavaVersion>
594-
<!-- <bannedDependencies> <excludes> <exclude>commons-logging:*</exclude>
595-
</excludes> </bannedDependencies> -->
596-
<requirePluginVersions>
597-
<banLatest>false</banLatest>
598-
<banRelease>true</banRelease>
599-
<banSnapshots>true</banSnapshots>
600-
<!-- <unCheckedPluginList>org.codehaus.mojo:sonar-maven-plugin</unCheckedPluginList> -->
601-
</requirePluginVersions>
602-
</rules>
603-
</configuration>
604-
</execution>
605-
</executions>
493+
<artifactId>maven-release-plugin</artifactId>
606494
</plugin>
607495
<!-- ======================================================= -->
608496
<!-- Packaging (OSGi bundle) -->
@@ -611,18 +499,9 @@
611499
<groupId>org.apache.felix</groupId>
612500
<artifactId>maven-bundle-plugin</artifactId>
613501
</plugin>
614-
615502
<plugin>
616503
<groupId>org.apache.maven.plugins</groupId>
617504
<artifactId>maven-jar-plugin</artifactId>
618-
<version>2.2</version>
619-
<executions>
620-
<execution>
621-
<goals>
622-
<goal>test-jar</goal>
623-
</goals>
624-
</execution>
625-
</executions>
626505
</plugin>
627506
</plugins>
628507
</build>

test-audit.xml

Lines changed: 97 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
xmlns="http://jboss.com/products/weld/tck/audit" xsi:schemaLocation="http://jboss.com/products/weld/tck/audit"
44
name="JSR 354 Money and Currency" version="1.0.0" id="JSR 354"
55
generateSectionIds="false">
6-
<section id="0" title="TCK Setup" >
6+
<section id="0" title="TCK Setup">
77
<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>
911
</assertion>
1012
<assertion id="EnsurePackageSetup">
11-
<text>Asserts the basic implementation packages are registered.</text>
13+
<text>Asserts the basic implementation packages are registered.
14+
</text>
1215
</assertion>
1316
<assertion id="EnsureAdjusterSetup">
1417
<text>Asserts adjusters to test are not empty.</text>
@@ -21,21 +24,22 @@
2124
<section id="2" title="Use Cases" />
2225
<section id="3" title="Requirements" />
2326
<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">
2629
<group>
2730
<text>Managing the Currency code</text>
2831
<assertion id="EnsureCurrencyUnit">
2932
<text>Ensure at least one javax.money.CurrencyUnit implementation
30-
is available.
33+
is
34+
available.
3135
</text>
3236
</assertion>
3337
<assertion id="CurrencyCodeUnique">
3438
<text>Ensure at the currency code is unique.
3539
</text>
3640
</assertion>
3741
<assertion id="Enforce3LetterCode4ISO">
38-
<text>Ensure ISO codes 3-letters are available.
42+
<text>Ensure ISO 3-letters codes are available.
3943
</text>
4044
</assertion>
4145
<assertion id="AllowAny4NonISOCode">
@@ -76,37 +80,100 @@
7680
<text>Preconditions</text>
7781
<assertion id="EnsureMonetaryAmount">
7882
<text>Ensure at least one javax.money.MonetaryAmount
79-
implementation is available.
83+
implementation
84+
is available.
8085
</text>
8186
</assertion>
8287
</group>
8388
<group>
8489
<text>Currency Code and Numeric Representation</text>
85-
<assertion id="CurrencyCode">
90+
<assertion id="getCurrency">
8691
<text>Ensure getCurrencyCode returns correct results.</text>
8792
</assertion>
88-
<assertion id="AmountWhole">
93+
<assertion id="getNumber">
8994
<text>Ensure getAmountWhole returns correct results.</text>
9095
</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.
93134
</text>
94135
</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.
98138
</text>
99139
</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.
103170
</text>
104171
</assertion>
105172
</group>
106173
<group>
107174
<text>Extension Points</text>
108175
<assertion id="With">
109-
<text>Ensure with(MonetaryAdjuster) can be called and produces
176+
<text>Ensure with(MonetaryOperator) can be called and produces
110177
valuable results.
111178
</text>
112179
</assertion>
@@ -120,21 +187,28 @@
120187
<text>General Requirements</text>
121188
<assertion id="ImplementsEquals">
122189
<text>Implementations of MonetaryAmount must implement equals,
123-
considering number, currency and implementation type.
190+
considering number, currency and implementation type, monetary context.
124191
</text>
125192
</assertion>
126193
<assertion id="ImplementsHashCode">
127194
<text>Implementations of MonetaryAmount must implement hashCode,
128-
considering number, currency and implementation type.
195+
considering number, currency and implementation type, monetary context.
129196
</text>
130197
</assertion>
131198
<assertion id="IsComparable">
132199
<text>Implementations of MonetaryAmount must be Comparable.
133200
</text>
134201
</assertion>
202+
<assertion id="IsSerializable">
203+
<text>Implementations of MonetaryAmount must be Serializable.
204+
</text>
205+
</assertion>
135206
</group>
136207
</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" />
138212
<section id="4.2.4" title="Interface javax.money.MonetaryQuery" />
139213
<section id="4.2.5" title="Interface javax.money.MonetaryException">
140214
<assertion id="Exceptions">
@@ -149,7 +223,7 @@
149223
<text>Formatting different groupSizes.</text>
150224
</assertion>
151225
</section>
152-
<section id="5" title="Recommendations"/>
226+
<section id="5" title="Recommendations" />
153227
<section id="5.1" title="Rounding">
154228
<group>
155229
<text>Access Recommendations</text>

0 commit comments

Comments
 (0)