Skip to content

Commit e5d3c48

Browse files
Modified the method name for getting the daily register.
1 parent 312bce8 commit e5d3c48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/coreapi/OrderService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public void OrderStatus_Finished(OrderImpl ord)
165165
* PRECONDITION: Receive a date
166166
* POSTCONDITION: Return the total of all orders for the date entered.
167167
*/
168-
public float DailyRegister(Cafeteria coffe, Date date)
168+
public float getDailyRegister(Cafeteria coffe, Date date)
169169
{
170170
float total = 0; //We save the total of the day
171171

src/test/java/coreapiTest/OrderServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public void OrderStatus_FinishedCheck_OrderService()
286286
*/
287287
public void DailyRegisterCheck_OrderService()
288288
{
289-
float total = ordSer.DailyRegister(coffe, date);
289+
float total = ordSer.getDailyRegister(coffe, date);
290290
float correctTotal=(ord1.totalCost() + ord2.totalCost() + ord3.totalCost());
291291
Assert.assertTrue("Incorrect total",total == correctTotal);
292292

0 commit comments

Comments
 (0)