Skip to content

Commit

Permalink
Make a constant private to prevent confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
grumpyjames committed Jun 23, 2014
1 parent 67aea8a commit 55613d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/digihippo/bread/BreadShop.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package net.digihippo.bread;

public class BreadShop {
public static int PRICE_OF_BREAD = 12;
private static int PRICE_OF_BREAD = 12;

private final OutboundEvents events;
private final AccountRepository accountRepository = new AccountRepository();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/net/digihippo/bread/BreadShopTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public void orders_fill_in_a_consistent_order_across_orders_in_the_same_account(
}

private int cost(int quantityOne) {
return quantityOne * BreadShop.PRICE_OF_BREAD;
return quantityOne * 12;
}

private void expectOrderFilled(final int accountId, final int orderId, final int quantity) {
Expand Down

0 comments on commit 55613d3

Please sign in to comment.