Skip to content

Commit 62acf7e

Browse files
committed
Minor changes.
1 parent d4419fe commit 62acf7e

File tree

7 files changed

+355
-354
lines changed

7 files changed

+355
-354
lines changed

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>org.javamoney</groupId>
2121
<artifactId>javamoney-parent</artifactId>
22-
<version>0.5</version>
22+
<version>1.0-SNAPSHOT</version>
2323
</parent>
2424

2525
<artifactId>moneta</artifactId>
@@ -629,5 +629,4 @@
629629
</plugins>
630630
</reporting>
631631

632-
<version>1.0-RC1</version>
633632
</project>

src/test/java/org/javamoney/moneta/FastMoneyTest.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @author Anatole
3333
*/
3434
public class FastMoneyTest{
35-
35+
3636
private static final Logger LOG = Logger.getLogger(MethodHandles.lookup().lookupClass().getName());
3737

3838
private static final BigDecimal TEN = new BigDecimal(10.0d);
@@ -421,12 +421,12 @@ public void testMultiplyDouble(){
421421
FastMoney m = FastMoney.of(100, "CHF");
422422
assertEquals(FastMoney.of(new BigDecimal("50.0"), "CHF"), m.multiply(0.5));
423423
}
424-
424+
425425
/**
426426
* Test method for {@link org.javamoney.moneta.FastMoney#multiply(double)}.
427427
*/
428428
@Test
429-
public void testMultiplyDoublePositiveInfinity(){
429+
public void testMultiplyDoublePositiveInfinity() {
430430
FastMoney m = FastMoney.of(new BigDecimal("50.0"), "USD");
431431
try {
432432
m.multiply(Double.POSITIVE_INFINITY);
@@ -435,12 +435,12 @@ public void testMultiplyDoublePositiveInfinity(){
435435
LOG.log(Level.FINE, "multiplying with POSITIVE_INFINITY fails as expected", e);
436436
}
437437
}
438-
438+
439439
/**
440440
* Test method for {@link org.javamoney.moneta.FastMoney#multiply(double)}.
441441
*/
442442
@Test
443-
public void testMultiplyDoubleNegativeInfinity(){
443+
public void testMultiplyDoubleNegativeInfinity() {
444444
FastMoney m = FastMoney.of(new BigDecimal("50.0"), "USD");
445445
try {
446446
m.multiply(Double.NEGATIVE_INFINITY);
@@ -449,12 +449,12 @@ public void testMultiplyDoubleNegativeInfinity(){
449449
LOG.log(Level.FINE, "multiplying with NEGATIVE_INFINITY fails as expected", e);
450450
}
451451
}
452-
452+
453453
/**
454454
* Test method for {@link org.javamoney.moneta.FastMoney#multiply(double)}.
455455
*/
456456
@Test
457-
public void testMultiplyDoubleNaN(){
457+
public void testMultiplyDoubleNaN() {
458458
FastMoney m = FastMoney.of(new BigDecimal("50.0"), "USD");
459459
try {
460460
m.multiply(Double.NaN);
@@ -463,12 +463,12 @@ public void testMultiplyDoubleNaN(){
463463
LOG.log(Level.FINE, "multiplying with NaN fails as expected", e);
464464
}
465465
}
466-
466+
467467
/**
468468
* Test method for {@link org.javamoney.moneta.FastMoney#multiply(Number)}.
469469
*/
470470
@Test
471-
public void testMultiplyNumberPositiveInfinity(){
471+
public void testMultiplyNumberPositiveInfinity() {
472472
FastMoney m = FastMoney.of(new BigDecimal("50.0"), "USD");
473473
try {
474474
m.multiply(Double.valueOf(Double.POSITIVE_INFINITY));
@@ -477,12 +477,12 @@ public void testMultiplyNumberPositiveInfinity(){
477477
LOG.log(Level.FINE, "multiplying with POSITIVE_INFINITY fails as expected", e);
478478
}
479479
}
480-
480+
481481
/**
482482
* Test method for {@link org.javamoney.moneta.FastMoney#multiply(Number)}.
483483
*/
484484
@Test
485-
public void testMultiplyNumberNegativeInfinity(){
485+
public void testMultiplyNumberNegativeInfinity() {
486486
FastMoney m = FastMoney.of(new BigDecimal("50.0"), "USD");
487487
try {
488488
m.multiply(Double.valueOf(Double.NEGATIVE_INFINITY));
@@ -491,12 +491,12 @@ public void testMultiplyNumberNegativeInfinity(){
491491
LOG.log(Level.FINE, "multiplying with NEGATIVE_INFINITY fails as expected", e);
492492
}
493493
}
494-
494+
495495
/**
496496
* Test method for {@link org.javamoney.moneta.FastMoney#multiply(Number)}.
497497
*/
498498
@Test
499-
public void testMultiplyNumberNaN(){
499+
public void testMultiplyNumberNaN() {
500500
FastMoney m = FastMoney.of(new BigDecimal("50.0"), "USD");
501501
try {
502502
m.multiply(Double.valueOf(Double.NaN));
@@ -505,12 +505,12 @@ public void testMultiplyNumberNaN(){
505505
LOG.log(Level.FINE, "multiplying with NaN fails as expected", e);
506506
}
507507
}
508-
508+
509509
/**
510510
* Test method for {@link org.javamoney.moneta.FastMoney#divide(double)}.
511511
*/
512512
@Test
513-
public void testDivideBadNaN(){
513+
public void testDivideBadNaN() {
514514
FastMoney m = FastMoney.of(new BigDecimal("50.0"), "USD");
515515
try {
516516
m.divide(Double.NaN);
@@ -525,12 +525,12 @@ public void testDivideBadNaN(){
525525
LOG.log(Level.FINE, "dividing by NaN fails as expected", e);
526526
}
527527
}
528-
528+
529529
/**
530530
* Test method for {@link org.javamoney.moneta.FastMoney#divide(double)}.
531531
*/
532532
@Test
533-
public void testDivideInfinityDoubles(){
533+
public void testDivideInfinityDoubles() {
534534
double[] values = new double[]{Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY};
535535
FastMoney m = FastMoney.of(new BigDecimal("50.0"), "USD");
536536
for (double d : values) {

src/test/java/org/javamoney/moneta/MoneyTest.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -525,14 +525,13 @@ public void testMultiplyNumber() {
525525
assertEquals(Money.of(200, "CHF"), m.multiply(2));
526526
assertEquals(Money.of(new BigDecimal("50.0"), "CHF"), m.multiply(0.5));
527527
}
528-
529528

530-
529+
531530
/**
532531
* Test method for {@link org.javamoney.moneta.Money#multiply(double)}.
533532
*/
534533
@Test
535-
public void testMultiplyBadDoubles(){
534+
public void testMultiplyBadDoubles() {
536535
double[] values = new double[]{
537536
Double.POSITIVE_INFINITY,
538537
Double.NEGATIVE_INFINITY,
@@ -553,12 +552,12 @@ public void testMultiplyBadDoubles(){
553552
}
554553
}
555554
}
556-
555+
557556
/**
558557
* Test method for {@link org.javamoney.moneta.Money#divide(double)}.
559558
*/
560559
@Test
561-
public void testDivideBadDoubles(){
560+
public void testDivideBadDoubles() {
562561
Money m = Money.of(new BigDecimal("50.0"), "USD");
563562
try {
564563
m.divide(Double.NaN);
@@ -573,12 +572,12 @@ public void testDivideBadDoubles(){
573572
// should reach here
574573
}
575574
}
576-
575+
577576
/**
578577
* Test method for {@link org.javamoney.moneta.Money#divide(double)}.
579578
*/
580579
@Test
581-
public void testDivideInfinityDoubles(){
580+
public void testDivideInfinityDoubles() {
582581
double[] values = new double[]{Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY};
583582
Money m = Money.of(new BigDecimal("50.0"), "USD");
584583
for (double d : values) {

0 commit comments

Comments
 (0)