-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cabServices for normal and premium
- Loading branch information
Showing
28 changed files
with
165 additions
and
56 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file added
BIN
+1.07 KB
build/classes/java/main/com/cabinvoicegenerator/CabSubscriptionsType.class
Binary file not shown.
Binary file modified
BIN
+530 Bytes
(130%)
build/classes/java/main/com/cabinvoicegenerator/InVoiceService.class
Binary file not shown.
Binary file modified
BIN
+446 Bytes
(150%)
build/classes/java/main/com/cabinvoicegenerator/InvoiceSummary.class
Binary file not shown.
Binary file modified
BIN
+1.18 KB
(150%)
build/classes/java/test/com/cabinvoicegenerator/InvoiceServiceTest.class
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 12 additions & 6 deletions
18
build/test-results/test/TEST-com.cabinvoicegenerator.InvoiceServiceTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuite name="com.cabinvoicegenerator.InvoiceServiceTest" tests="4" skipped="0" failures="0" errors="0" timestamp="2019-12-16T12:45:10" hostname="admin1-desktop" time="0.003"> | ||
<testsuite name="com.cabinvoicegenerator.InvoiceServiceTest" tests="8" skipped="0" failures="0" errors="0" timestamp="2019-12-17T04:44:45" hostname="admin1-desktop" time="0.012"> | ||
<properties/> | ||
<testcase name="givenLessDistanceAndTime_ShouldReturnMinimumFare" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.001"/> | ||
<testcase name="givenUserIdAndRides_ShouldReturnInvoiceSummary" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.001"/> | ||
<testcase name="givenDistanceAndTime_ShouldReturnTotalFare" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.0"/> | ||
<testcase name="givenMultipleRides_ShouldReturnInvoiceSummary" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.0"/> | ||
<system-out><![CDATA[]]></system-out> | ||
<testcase name="givenMultipleRidesForNormal_ShouldReturnInvoiceSummary" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.002"/> | ||
<testcase name="givenDistanceAndTimeForPremium_ShouldReturnTotalFare" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.0"/> | ||
<testcase name="givenDistanceAndTimeForNormal_ShouldReturnTotalFare" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.001"/> | ||
<testcase name="givenUserIdAndRidesForPremium_ShouldReturnInvoiceSummary" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.006"/> | ||
<testcase name="givenLessDistanceAndTimeForPremium_ShouldReturnMinimumFare" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.0"/> | ||
<testcase name="givenMultipleRidesForPremium_ShouldReturnInvoiceSummary" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.001"/> | ||
<testcase name="givenLessDistanceAndTimeForNormal_ShouldReturnMinimumFare" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.0"/> | ||
<testcase name="givenUserIdAndRidesForNormal_ShouldReturnInvoiceSummary" classname="com.cabinvoicegenerator.InvoiceServiceTest" time="0.001"/> | ||
<system-out><![CDATA[InvoiceSummary{numOfRides=2, totalFare=60.0, averageFare=30.0} | ||
InvoiceSummary{numOfRides=2, totalFare=30.0, averageFare=15.0} | ||
]]></system-out> | ||
<system-err><![CDATA[]]></system-err> | ||
</testsuite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
?InvoiceSummary{numOfRides=2, totalFare=60.0, averageFare=30.0} | ||
?InvoiceSummary{numOfRides=2, totalFare=30.0, averageFare=15.0} |
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
src/main/java/com/cabinvoicegenerator/CabSubscriptionsType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.cabinvoicegenerator; | ||
|
||
public enum CabSubscriptionsType { | ||
NORMAL, PREMIUM | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.