Skip to content

Commit 5ecbc17

Browse files
committed
UNITSOFMEASUREMENT-158: Add Tests according to Spec Chapter 5
Task-Url: https://java.net/jira/browse/UNITSOFMEASUREMENT-158
1 parent 7feb781 commit 5ecbc17

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>tec.uom</groupId>
1616
<artifactId>uom-parent</artifactId>
17-
<version>0.9-SNAPSHOT</version>
17+
<version>0.9</version>
1818
</parent>
1919

2020
<licenses>
@@ -35,13 +35,13 @@
3535
<!-- Build Settings -->
3636
<!-- ======================================================= -->
3737
<properties>
38-
<jsr.version>0.9-SNAPSHOT</jsr.version>
39-
<ri.version>0.9-SNAPSHOT</ri.version>
38+
<jsr.version>0.9</jsr.version>
39+
<ri.version>0.9</ri.version>
4040
<jdkVersion>1.7</jdkVersion>
4141
<project.build.javaVersion>${jdkVersion}</project.build.javaVersion>
4242
<maven.compile.targetLevel>1.7</maven.compile.targetLevel>
4343
<maven.compile.sourceLevel>${jdkVersion}</maven.compile.sourceLevel>
44-
<lib.version>0.9-SNAPSHOT</lib.version>
44+
<lib.version>0.9</lib.version>
4545
<testng.version>6.9.10</testng.version>
4646
<jboss.test.audit.version>1.1.0.Final</jboss.test.audit.version>
4747
<reflections.version>0.9.10</reflections.version>

src/main/java/tec/units/tck/tests/spi/ObtainingQuantiesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Unit-API - Units of Measurement API for Java Copyright (c) 2005-2016, Jean-Marie Dautelle, Werner
2+
* Units of Measurement TCK for Java Copyright (c) 2005-2016, Jean-Marie Dautelle, Werner
33
* Keil, V2COM.
44
*
55
* All rights reserved.

src/main/java/tec/units/tck/tests/unit/UnitConversionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Unit-API - Units of Measurement API for Java Copyright (c) 2005-2016, Jean-Marie Dautelle, Werner
2+
* Units of Measurement TCK for Java Copyright (c) 2005-2016, Jean-Marie Dautelle, Werner
33
* Keil, V2COM.
44
*
55
* All rights reserved.

src/main/java/tec/units/tck/tests/unit/UnitInterfaceTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void testToString() {
144144
/**
145145
* Ensure the shift() operation is implemented.
146146
*/
147-
@SpecAssertion(section = "4.2.1.2.1", id = "42121-A1")
147+
@SpecAssertion(section = "4.2.1.2", id = "42121-A1")
148148
@Test(groups = {"core"}, description = "4.2.1.2.1 Ensure the shift() operation is implemented.")
149149
public void testUnit42121Shift() {
150150
for (@SuppressWarnings("rawtypes")
@@ -156,7 +156,7 @@ public void testUnit42121Shift() {
156156
/**
157157
* Ensure the multiply() operation is implemented.
158158
*/
159-
@SpecAssertion(section = "4.2.1.2.1", id = "42121-A2")
159+
@SpecAssertion(section = "4.2.1.2", id = "42121-A2")
160160
@Test(groups = {"core"}, description = "4.2.1.2.1 Ensure the multiply() operation is implemented.")
161161
public void testUnit42121Multiply() {
162162
for (@SuppressWarnings("rawtypes")
@@ -168,7 +168,7 @@ public void testUnit42121Multiply() {
168168
/**
169169
* Ensure the divide() operation is implemented.
170170
*/
171-
@SpecAssertion(section = "4.2.1.2.1", id = "42121-A3")
171+
@SpecAssertion(section = "4.2.1.2", id = "42121-A3")
172172
@Test(groups = {"core"}, description = "4.2.1.2.1 Ensure the divide() operation is implemented.")
173173
public void testUnit42121Divide() {
174174
for (@SuppressWarnings("rawtypes")
@@ -180,7 +180,7 @@ public void testUnit42121Divide() {
180180
/**
181181
* Ensure the multiply() operation is implemented.
182182
*/
183-
@SpecAssertion(section = "4.2.1.2.1", id = "42121-A4")
183+
@SpecAssertion(section = "4.2.1.2", id = "42121-A4")
184184
@Test(groups = {"core"}, description = "4.2.1.2.1 Ensure the multiply(double) operation is implemented.")
185185
public void testUnit42121MultiplyWithDouble() {
186186
for (@SuppressWarnings("rawtypes")
@@ -192,7 +192,7 @@ public void testUnit42121MultiplyWithDouble() {
192192
/**
193193
* Ensure the divide() operation is implemented.
194194
*/
195-
@SpecAssertion(section = "4.2.1.2.1", id = "42121-A5")
195+
@SpecAssertion(section = "4.2.1.2", id = "42121-A5")
196196
@Test(groups = {"core"}, description = "4.2.1.2.1 Ensure the divide(double) operation is implemented.")
197197
public void testUnit42121DivideWithDouble() {
198198
for (@SuppressWarnings("rawtypes")
@@ -204,7 +204,7 @@ public void testUnit42121DivideWithDouble() {
204204
/**
205205
* Ensure the alternate() operation is implemented.
206206
*/
207-
@SpecAssertion(section = "4.2.1.2.1", id = "42121-A6")
207+
@SpecAssertion(section = "4.2.1.2", id = "42121-A6")
208208
@Test(groups = {"core"}, description = "4.2.1.2.1 Ensure the alternate() operation is implemented.")
209209
public void testUnit42121Alternate() {
210210
for (@SuppressWarnings("rawtypes")
@@ -216,7 +216,7 @@ public void testUnit42121Alternate() {
216216
/**
217217
* Ensure the pow() operation is implemented.
218218
*/
219-
@SpecAssertion(section = "4.2.1.2.2", id = "42122-A1")
219+
@SpecAssertion(section = "4.2.1.2", id = "42122-A1")
220220
@Test(groups = {"core"}, description = "4.2.1.2.2 Ensure the pow() operation is implemented.")
221221
public void testUnit42122Pow() {
222222
for (@SuppressWarnings("rawtypes")
@@ -228,7 +228,7 @@ public void testUnit42122Pow() {
228228
/**
229229
* Ensure the root() operation is implemented.
230230
*/
231-
@SpecAssertion(section = "4.2.1.2.2", id = "42122-A2")
231+
@SpecAssertion(section = "4.2.1.2", id = "42122-A2")
232232
@Test(groups = {"core"}, description = "4.2.1.2.2 Ensure the root() operation is implemented.")
233233
public void testUnit42122Root() {
234234
for (@SuppressWarnings("rawtypes")
@@ -240,7 +240,7 @@ public void testUnit42122Root() {
240240
/**
241241
* Ensure the transform() operation is implemented.
242242
*/
243-
@SpecAssertion(section = "4.2.1.2.2", id = "42122-A3")
243+
@SpecAssertion(section = "4.2.1.2", id = "42122-A3")
244244
@Test(groups = {"core"}, description = "4.2.1.2.2 Ensure the transform() operation is implemented.")
245245
public void testUnit42122Transform() {
246246
for (@SuppressWarnings("rawtypes")
@@ -252,7 +252,7 @@ public void testUnit42122Transform() {
252252
/**
253253
* Ensure the inverse() operation is implemented.
254254
*/
255-
@SpecAssertion(section = "4.2.1.2.3", id = "42123-A1")
255+
@SpecAssertion(section = "4.2.1.2", id = "42123-A1")
256256
@Test(groups = {"core"}, description = "4.2.1.2.3 Ensure the inverse() operation is implemented.")
257257
public void testUnit42123Inverse() {
258258
for (@SuppressWarnings("rawtypes")

0 commit comments

Comments
 (0)