Skip to content

Commit

Permalink
[#94149866] Teste para "Search for conferences which an Author have p…
Browse files Browse the repository at this point in the history
…ublished web"

O teste está comentado pois não foi rodado. Tentei rodá-lo na minha máquina e na máquina virtual, mas não obtive sucesso.
  • Loading branch information
almeidaeduardo committed May 26, 2015
1 parent 2e26a77 commit 9d976e7
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions test/cucumber/steps/ConferenciaSteps.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,23 @@ Then (~'^a list of all conference articles by "([^"]*)" is displayed$'){ String


/*
Given(~'^the system has no conference article entitled "([^"]*)"$') { String article ->
assert ArticleTestDataAndOperations.findArticleByTitle(article) == null
And(~'^an Author named "([^"]*)" had published the articles "([^"]*)", "([^"]*)" and "([^"]*)" for the conferences "([^"]*)", "([^"]*)" and "([^"]*)"$'){ String author, String article1, String article2, String article3, String conference1, String conference2, String conference3 ->
assert Conferencia.findByTitle(conference1) != null
assert Conferencia.findByTitle(conference2) != null
assert Conferencia.findByTitle(conference3) != null
assert ArticleTestDataAndOperations.findArticleByTitle(article1) != null
assert ArticleTestDataAndOperations.findArticleByTitle(article2) != null
assert ArticleTestDataAndOperations.findArticleByTitle(article3) != null
author = TestDataAndOperationsPublication.containsUser(author)
assert author != null
}
When(~'^I try to remove the conference article "([^"]*)"$'){ String article ->
assert ArticleTestDataAndOperations.findArticleByTitle(article) == null
ArticleTestDataAndOperations.removeArticle(article)
}
Then(~'^nothing happens$'){}
Then(~'^a list of all conferences, composed by "([^"]*)", "([^"]*)" and "([^"]*)", that "([^"]*)" published an article is displayed$') { String author, String article1, String article2, String article3 ->
assert ArticleTestDataAndOperations.findArticleByTitle(article1) != null
assert ArticleTestDataAndOperations.findArticleByTitle(article2) != null
assert ArticleTestDataAndOperations.findArticleByTitle(article3) != null
author = TestDataAndOperationsPublication.containsUser(author)
assert author != null
page.listConferencia(author)
}
*/

0 comments on commit 9d976e7

Please sign in to comment.