Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #251 from tecnico-softeng/unsuccessSequenceFailAct…
Browse files Browse the repository at this point in the history
…ivity

Adding unsuccess sequence fail activity integration test (references #232)
  • Loading branch information
RafaelMenesesRibeiro authored May 20, 2018
2 parents b3f6655 + e4bfeeb commit 1dede25
Show file tree
Hide file tree
Showing 18 changed files with 1,463 additions and 12 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ infer-out
.springBeans
local.dev.yml
.DS_Store
.vscode/settings.json
bank/.factorypath
activity/.factorypath
broker/.factorypath
car/.factorypath
hotel/.factorypath
tax/.factorypath
*.example
21 changes: 15 additions & 6 deletions bin/startservers
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
cd ../tax; mvn clean spring-boot:run &
cd ../bank; mvn clean spring-boot:run &
cd ../hotel; mvn clean spring-boot:run &
cd ../activity; mvn clean spring-boot:run &
cd ../car; mvn clean spring-boot:run &
cd ../broker; mvn clean spring-boot:run &
export MAVEN_OPTS="-Xmx128m"

cd ../tax; mvn clean compile
cd ../bank; mvn clean compile
cd ../hotel; mvn clean compile
cd ../activity; mvn clean compile
cd ../car; mvn clean compile
cd ../broker; mvn clean compile

cd ../tax; mvn spring-boot:run &
cd ../bank; mvn spring-boot:run &
cd ../hotel; mvn spring-boot:run &
cd ../activity; mvn spring-boot:run &
cd ../car; mvn spring-boot:run &
cd ../broker; mvn spring-boot:run &
2 changes: 1 addition & 1 deletion broker/src/main/resources/templates/adventures.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h3>Adventures</h3>
<td th:text="${adventure.roomCancellation}">Room Cancellation</td>
<td th:text="${adventure.activityConfirmation}">Activity Confirmation</td>
<td th:text="${adventure.activityCancellation}">Activity Cancellation</td>
<td> <form class="form-inline" th:action="@{/brokers/{code}/adventures/{id}/process(code=${client.brokerCode},id=${adventure.id})}" method="post">
<td> <form class="form-inline" th:action="@{adventures/{id}/process(id=${adventure.id})}" method="post">
<input class="btn btn-primary" type="submit" value="Submit" />
</form></td>
</tr>
Expand Down
10 changes: 5 additions & 5 deletions broker/src/main/resources/templates/brokers.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ <h2>
<h3>Create Broker</h3>
<p class="text-danger" th:text="${error}">Error</p>
<form class="form-inline" th:action="@{/brokers}" th:object="${broker}" method="post">
<label>Name: </label> <input class="form-control input-sm" type="text" th:field="*{name}" />
<label>Code: </label> <input class="form-control input-sm" type="text" size="7" th:field="*{code}" />
<label>NifAsSeller: </label> <input class="form-control input-sm" type="text" size="9" th:field="*{nifAsSeller}" />
<label>NifAsBuyer: </label> <input class="form-control input-sm" type="text" size="9" th:field="*{nifAsBuyer}" />
<label>IBAN: </label> <input class="form-control input-sm" type="text" size="12" th:field="*{iban}" />
<label>Name: </label> <input class="form-control input-sm" type="text" th:field="*{name}" />
<label>Code: </label> <input class="form-control input-sm" type="text" size="7" th:field="*{code}" />
<label>NifAsSeller: </label> <input class="form-control input-sm" type="text" size="9" th:field="*{nifAsSeller}" />
<label>NifAsBuyer: </label> <input class="form-control input-sm" type="text" size="9" th:field="*{nifAsBuyer}" />
<label>IBAN: </label> <input class="form-control input-sm" type="text" size="12" th:field="*{iban}" />
<input class="btn btn-primary input-sm" type="submit" value="Submit" />
</form>
<br/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AP1234,Mont Vermont,18,70,20
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B100,111111115,2017-05-01,2017-05-01,30,BK124,0.1,false
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B100,111111115,B1001
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BK12,Money Plus
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B100,Joy of Travelling,111111113,111111114,BK124
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
B100,BK125,111111115,DC12345,18
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BK12,Broker
BK12,Client
BK12,Activity Provider
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BK12,1
BK12,2
BK12,3
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BK12,1,BK124,100000
BK12,2,BK125,999
BK12,3,BK126,100000
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPORT,10
ADVENTURE,10
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AP1234,AP12341,2017-05-01,2017-05-01,1000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AP1234,Bush Walking,111111111,BK126
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Client,Street,111111115,BUYER
BBroker,Street,111111114,BUYER
SBroker,Street,111111113,SELLER
Activity,Street,111111111,SELLER
1,411 changes: 1,411 additions & 0 deletions jmeter/tests/integration/unsuccess-sequence-fail-activity/test.jmx

Large diffs are not rendered by default.

0 comments on commit 1dede25

Please sign in to comment.