Skip to content

Commit

Permalink
Move price to sub package
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Debon committed Jan 10, 2019
1 parent 2fa7a5c commit 9d94f79
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package price;

import static java.math.RoundingMode.UNNECESSARY;

import inverse.Price;
import java.math.BigDecimal;

class Inverse {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package price;
package inverse;

import java.math.BigDecimal;
import java.util.Objects;
Expand All @@ -17,7 +17,7 @@ public class Price {
BigDecimal value;
PriceType type;

Price withMappedValue(Function<BigDecimal, BigDecimal> mapper) {
public Price withMappedValue(Function<BigDecimal, BigDecimal> mapper) {
return withValue(mapper.apply(value));
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package price;
package inverse;

public enum PriceType {
STANDARD, DISCOUNT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package price;

import static org.assertj.core.api.Assertions.assertThat;

import com.pholser.junit.quickcheck.runner.JUnitQuickcheck;
import inverse.Price;
import java.math.BigDecimal;
import org.junit.Before;
import org.junit.Test;
Expand Down

0 comments on commit 9d94f79

Please sign in to comment.