-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
210 additions
and
132 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
Feature: Cadastrar novo filme | ||
Background: | ||
* url baseUrl | ||
* def pathUrl = 'movies' | ||
|
||
Scenario: criar e recuperar novo filme | ||
Given request {description: 'De volta para o Futuro'} | ||
And path pathUrl | ||
When method post | ||
Then status 201 | ||
And match response == {id: '#notnull', description: 'De Volta para o Futuro'} | ||
|
||
Given path pathUrl + '/' + response.id | ||
When method get | ||
Then status 200 | ||
And match response == {id: '#notnull', description: 'De Volta para o Futuro'} |
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,16 @@ | ||
Feature: Cadastrar novo filme | ||
Background: | ||
* url baseUrl | ||
* def pathUrl = 'movies' | ||
|
||
Scenario: criar e recuperar novo filme | ||
Given request {description: 'De volta para o Futuro'} | ||
And path pathUrl | ||
When method post | ||
Then status 201 | ||
And match response == {id: '#notnull', description: 'De Volta para o Futuro'} | ||
|
||
Given path pathUrl + '/' + response.id | ||
When method get | ||
Then status 200 | ||
And match response == {id: '#notnull', description: 'De Volta para o Futuro'} |
File renamed without changes.
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,12 @@ | ||
Feature: Alterar filme | ||
Background: | ||
* url baseUrl | ||
* def pathUrl = 'movies/1' | ||
* def json = {description: 'American Pie 3'} | ||
|
||
Scenario: alterar filme | ||
Given request json | ||
And path pathUrl | ||
When method put | ||
Then status 200 | ||
And match response == {id: '#notnull', description: 'American Pie 3'} |
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,12 @@ | ||
Feature: Alterar filme | ||
Background: | ||
* url baseUrl | ||
* def pathUrl = 'movies/1' | ||
* def json = {description: 'American Pie 3'} | ||
|
||
Scenario: alterar filme | ||
Given request json | ||
And path pathUrl | ||
When method put | ||
Then status 200 | ||
And match response == {id: '#notnull', description: 'American Pie 3'} |
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,12 @@ | ||
Feature: Alterar filme | ||
Background: | ||
* url baseUrl | ||
* def pathUrl = 'movies/1' | ||
* def json = {description: 'American Pie 3'} | ||
|
||
Scenario: alterar filme | ||
Given request json | ||
And path pathUrl | ||
When method put | ||
Then status 200 | ||
And match response == {id: '#notnull', description: 'American Pie 3'} |
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,16 @@ | ||
Feature: Cadastrar novo filme | ||
Background: | ||
* url baseUrl | ||
* def pathUrl = 'movies' | ||
|
||
Scenario: criar e recuperar novo filme | ||
Given request {description: 'De volta para o Futuro'} | ||
And path pathUrl | ||
When method post | ||
Then status 201 | ||
And match response == {id: '#notnull', description: 'De Volta para o Futuro'} | ||
|
||
Given path pathUrl + '/' + response.id | ||
When method get | ||
Then status 200 | ||
And match response == {id: '#notnull', description: 'De Volta para o Futuro'} |
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,12 @@ | ||
Feature: Alterar filme | ||
Background: | ||
* url baseUrl | ||
* def pathUrl = 'movies/1' | ||
* def json = {description: 'American Pie 3'} | ||
|
||
Scenario: alterar filme | ||
Given request json | ||
And path pathUrl | ||
When method put | ||
Then status 200 | ||
And match response == {id: '#notnull', description: 'American Pie 3'} |
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 was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/test/java/movie/MovieRunner.java → src/test/java/runner/MovieRunner.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
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