-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add json file to read from, so the parameters can be changed any time
waht.
- Loading branch information
1 parent
d445e2f
commit 9f9895a
Showing
5 changed files
with
160 additions
and
45 deletions.
There are no files selected for viewing
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,18 @@ | ||
To change the parameters for the stadium, Please change in the seatsInformation.json file. | ||
|
||
To build/test the application | ||
|
||
Go to the project directory( contains the POM.XML) In the command line, | ||
Type commands: | ||
|
||
mvn install //For install | ||
mvn test //For Test | ||
|
||
|
||
/**************************Assumptions***********************/ | ||
Assumption 1: | ||
The lower seats are better than higher seats, which are further from the stage. | ||
|
||
Assumption 2: | ||
The group seats are better when they sit together. When change rows, start from the end of the next row. So they can sit closer. | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,19 @@ | |
import ticketServiceInter.SeatHold; | ||
|
||
public class ticketServiceImpTest { | ||
int numberOfLevels = InitializeStadium.numberOfLevels; | ||
int rowOnOrchestra = InitializeStadium.rowOnOrchestra; | ||
int seatNumOrchestra = InitializeStadium.seatNumOrchestra; | ||
int rowOnMain = InitializeStadium.rowOnMain; | ||
int seatNumMain = InitializeStadium.seatNumMain; | ||
int rowOnBalconyOne =InitializeStadium.rowOnBalconyOne; | ||
int seatNumBalconyOne = InitializeStadium.seatNumBalconyOne; | ||
int rowOnBalconyTwo =InitializeStadium.rowOnBalconyTwo; | ||
int seatNumBalconyTwo = InitializeStadium.seatNumBalconyTwo; | ||
double priceOrchestra = InitializeStadium.priceOrchestra; | ||
double priceMain = InitializeStadium.priceMain; | ||
double priceBalconyOne = InitializeStadium.priceBalconyOne; | ||
double priceBalconyTwo = InitializeStadium.priceBalconyTwo; | ||
int numberOfLevels ; | ||
int rowOnOrchestra ; | ||
int seatNumOrchestra ; | ||
int rowOnMain ; | ||
int seatNumMain ; | ||
int rowOnBalconyOne; | ||
int seatNumBalconyOne; | ||
int rowOnBalconyTwo ; | ||
int seatNumBalconyTwo; | ||
double priceOrchestra ; | ||
double priceMain ; | ||
double priceBalconyOne ; | ||
double priceBalconyTwo; | ||
|
||
InitializeStadium newStad; | ||
TicketServiceImp ticketServiceI; | ||
|
@@ -33,6 +33,20 @@ public void setup(){ | |
newStad = new InitializeStadium(); | ||
ticketServiceI = new TicketServiceImp(); | ||
testEmail = "[email protected]"; | ||
newStad.initializedSeats(); | ||
numberOfLevels = InitializeStadium.numberOfLevels; | ||
rowOnOrchestra = InitializeStadium.rowOnOrchestra; | ||
seatNumOrchestra = InitializeStadium.seatNumOrchestra; | ||
rowOnMain = InitializeStadium.rowOnMain; | ||
seatNumMain = InitializeStadium.seatNumMain; | ||
rowOnBalconyOne =InitializeStadium.rowOnBalconyOne; | ||
seatNumBalconyOne = InitializeStadium.seatNumBalconyOne; | ||
rowOnBalconyTwo =InitializeStadium.rowOnBalconyTwo; | ||
seatNumBalconyTwo = InitializeStadium.seatNumBalconyTwo; | ||
priceOrchestra = InitializeStadium.priceOrchestra; | ||
priceMain = InitializeStadium.priceMain; | ||
priceBalconyOne = InitializeStadium.priceBalconyOne; | ||
priceBalconyTwo = InitializeStadium.priceBalconyTwo; | ||
|
||
} | ||
|
||
|
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