Skip to content

Commit dd869b1

Browse files
committed
Fixed versions.
1 parent 60efe2b commit dd869b1

File tree

4 files changed

+40
-27
lines changed

4 files changed

+40
-27
lines changed

pom.xml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
<parent>
1313
<groupId>org.javamoney</groupId>
1414
<artifactId>javamoney-parent</artifactId>
15-
<version>1.0-SNAPSHOT</version>
15+
<version>1.0</version>
1616
</parent>
1717

1818
<artifactId>javamoney-tck-usage-example</artifactId>
1919
<packaging>jar</packaging>
2020

21-
<version>1.0-SNAPSHOT</version>
21+
<version>1.0</version>
2222

2323
<name>JSR 354 - TCK Test (Java8)</name>
2424

@@ -39,20 +39,18 @@
3939
<properties>
4040
<!-- ************ TCK Setup ****************** -->
4141

42-
<!-- 1) JSR API version to be used. -->
43-
<api.version>1.0-SNAPSHOT</api.version>
44-
<api.artifactId>money-api</api.artifactId>
45-
46-
<!-- 2) TCK version to be used. -->
47-
<org.javamoney.tck.version>1.0-SNAPSHOT</org.javamoney.tck.version>
42+
<!-- 1) Your implementation artifact to be tested. -->
43+
<impl.groupId>org.javamoney</impl.groupId>
44+
<impl.artifactId>moneta</impl.artifactId>
45+
<impl.version>1.0</impl.version>
46+
<impl.packageType>jar</impl.packageType>
4847

49-
<!-- 3) Your implementation artifact to be tested. -->
50-
<impl.groupId>org.javamoney</impl.groupId>
51-
<impl.artifactId>moneta</impl.artifactId>
52-
<impl.version>1.0-SNAPSHOT</impl.version>
53-
<impl.packageType>jar</impl.packageType>
48+
<!-- 2) JSR API version to be used. -->
49+
<api.version>1.0</api.version>
50+
<api.artifactId>money-api</api.artifactId>
5451

5552
<!-- ************ Other settings, Should normally not be changed. ************ -->
53+
<org.javamoney.tck.version>1.0</org.javamoney.tck.version>
5654
<jdkVersion>1.8</jdkVersion>
5755
<maven.compile.targetLevel>${jdkVersion}</maven.compile.targetLevel>
5856
<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel>

src/main/java/org/javamoney/text/tck/TCKTestSetup.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import org.javamoney.moneta.internal.JDKCurrencyAdapter;
2121
import org.javamoney.tck.JSR354TestConfiguration;
2222

23+
import javax.money.Monetary;
2324
import javax.money.MonetaryOperator;
24-
import javax.money.MonetaryRoundings;
2525
import javax.money.convert.MonetaryConversions;
2626
import java.util.ArrayList;
2727
import java.util.Arrays;
@@ -74,7 +74,7 @@ public Collection<Class> getCurrencyClasses() {
7474
@Override
7575
public Collection<MonetaryOperator> getMonetaryOperators4Test() {
7676
List<MonetaryOperator> ops = new ArrayList<>();
77-
ops.add(MonetaryRoundings.getDefaultRounding());
77+
ops.add(Monetary.getDefaultRounding());
7878
ops.add(MonetaryConversions.getConversion("EUR"));
7979
return ops;
8080
}

src/test/java/org/javamoney/test/tck/RunTCK.java

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* Copyright (c) 2012, 2014, Credit Suisse (Anatole Tresch), Werner Keil and others by the @author tag.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
16+
package org.javamoney.test.tck;
17+
18+
import org.javamoney.tck.TCKRunner;
19+
import org.testng.annotations.Test;
20+
21+
public class RunTCKTest {
22+
23+
@Test
24+
public void runTCK(){
25+
TCKRunner.main(new String[0]);
26+
}
27+
}

0 commit comments

Comments
 (0)