{"action":"created","comment":{"url":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/comments/84682005","pull_request_review_id":5443364,"id":84682005,"diff_hunk":"@@ -0,0 +1,138 @@\n+package ufc.quixada.npi.contest;\n+\n+import static org.mockito.Mockito.when;\n+import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.flash;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.model;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.redirectedUrl;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;\n+import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.view;\n+\n+import java.io.File;\n+import java.io.FileInputStream;\n+import java.util.ArrayList;\n+import java.util.Calendar;\n+import java.util.List;\n+\n+import org.mockito.InjectMocks;\n+import org.mockito.Mock;\n+import org.mockito.Mockito;\n+import org.mockito.MockitoAnnotations;\n+import org.springframework.mock.web.MockMultipartFile;\n+import org.springframework.security.core.Authentication;\n+import org.springframework.security.core.context.SecurityContext;\n+import org.springframework.security.core.context.SecurityContextHolder;\n+import org.springframework.test.web.servlet.MockMvc;\n+import org.springframework.test.web.servlet.ResultActions;\n+import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;\n+import org.springframework.test.web.servlet.setup.MockMvcBuilders;\n+\n+import cucumber.api.java.Before;\n+import cucumber.api.java.pt.Dado;\n+import cucumber.api.java.pt.Então;\n+import cucumber.api.java.pt.Quando;\n+import ufc.quixada.npi.contest.controller.AutorController;\n+import ufc.quixada.npi.contest.model.Evento;\n+import ufc.quixada.npi.contest.model.Pessoa;\n+import ufc.quixada.npi.contest.model.Submissao;\n+import ufc.quixada.npi.contest.model.Trabalho;\n+import ufc.quixada.npi.contest.model.Trilha;\n+import ufc.quixada.npi.contest.service.EventoService;\n+import ufc.quixada.npi.contest.service.MessageService;\n+import ufc.quixada.npi.contest.service.ParticipacaoTrabalhoService;\n+import ufc.quixada.npi.contest.service.PessoaService;\n+import ufc.quixada.npi.contest.service.StorageService;\n+import ufc.quixada.npi.contest.service.SubmissaoService;\n+import ufc.quixada.npi.contest.service.TrilhaService;\n+import ufc.quixada.npi.contest.validator.TrabalhoValidator;\n+\n+public class EnviarRevisaoSteps {\n+\t\n+\tprivate static final String EMAIL_PARTICIPANTES = \"participacoes[0].pessoa.email\";\n+\tprivate static final String NOME_PARTICIPANTES = \"participacoes[0].pessoa.nome\";\n+\tprivate static final String PAGINA_AUTOR_MEUS_TRABALHOS = \"/autor/meusTrabalhos\";\n+\tprivate static final String PAGINA_AUTOR_ENVIAR_TRABALHO_FORM_ID = \"/autor/enviarTrabalhoForm/{id}\";\n+\tprivate static final String PAGINA_REVISOR_REVISAR_FORM = \"/revisor/{id}/{id}/revisar\";\n+\tprivate static final String EVENTO_ID = \"eventoId\";\n+\tprivate static final String TRABALHO_ID = \"idTrabalho\";\n+\tprivate static final String FOMATACAO = \"formatacao\";\n+\tprivate static final String ORIGINALIDADE = \"originalidade\";\n+\tprivate static final String MERITO = \"merito\";\n+\tprivate static final String CLAREZA = \"clareza\";\n+\tprivate static final String QUALIDADE = \"qualidade\";\n+\tprivate static final String RELEVANCIA = \"relevancia\";\n+\tprivate static final String AUTO_AVALIACAO = \"auto-avaliacao\";\n+\tprivate static final String AVALIACAO_GERAL = \"avaliacao-geral\";\n+\tprivate static final String COMENTARIOS = \"comentarios\";\n+\tprivate static final String INDICAR = \"indicar\";\n+\n+\t\n+\t\n+\tprivate static final String TEMPLATE_AUTOR_AUTOR_ENVIAR_TRABALHO_FORM = \"autor/autor_enviar_trabalho_form\";\n+\t@InjectMocks\n+\tprivate AutorController autorController;\n+\t@Mock\n+\tprivate EventoService eventoService;\n+\t@Mock\n+\tprivate TrabalhoValidator trabalhoValidator;\n+\t@Mock\n+\tprivate PessoaService pessoaService;\n+\t@Mock\n+\tprivate ParticipacaoTrabalhoService participacaoTrabalhoService;\n+\t@Mock\n+\tprivate StorageService storageService;\n+\t@Mock\n+\tprivate MessageService messageService;\n+\t@Mock\n+\tprivate SubmissaoService submissaoService;\n+\t@Mock\n+\tprivate TrilhaService trilhaService;\n+\t\n+\tprivate MockMvc mockMvc;\n+\tprivate ResultActions action;\n+\tprivate Evento evento;\n+\tprivate Pessoa pessoa;\n+\tprivate Trabalho trabalho;","path":"aplicacao/contest/src/test/java/ufc/quixada/npi/contest/EnviarRevisaoSteps.java","position":95,"original_position":95,"commit_id":"edfdc83de0dc524b1d13df30c1e79eeb59517acf","original_commit_id":"edfdc83de0dc524b1d13df30c1e79eeb59517acf","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Perhaps 'trabalho' could be replaced by a local variable.](https://www.codacy.com/app/NPI-UFC/contest/file/4263107045/issues/source?bid=3361960&fileBranchId=3833708#l95)","created_at":"2016-10-24T13:05:26Z","updated_at":"2016-10-24T13:05:26Z","html_url":"https://github.com/npi-ufc-qxd/contest/pull/53#discussion_r84682005","pull_request_url":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/comments/84682005"},"html":{"href":"https://github.com/npi-ufc-qxd/contest/pull/53#discussion_r84682005"},"pull_request":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/53","id":90607035,"html_url":"https://github.com/npi-ufc-qxd/contest/pull/53","diff_url":"https://github.com/npi-ufc-qxd/contest/pull/53.diff","patch_url":"https://github.com/npi-ufc-qxd/contest/pull/53.patch","issue_url":"https://api.github.com/repos/npi-ufc-qxd/contest/issues/53","number":53,"state":"open","locked":false,"title":"Fragments js","user":{"login":"kadufreitas","id":9216102,"avatar_url":"https://avatars.githubusercontent.com/u/9216102?v=3","gravatar_id":"","url":"https://api.github.com/users/kadufreitas","html_url":"https://github.com/kadufreitas","followers_url":"https://api.github.com/users/kadufreitas/followers","following_url":"https://api.github.com/users/kadufreitas/following{/other_user}","gists_url":"https://api.github.com/users/kadufreitas/gists{/gist_id}","starred_url":"https://api.github.com/users/kadufreitas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadufreitas/subscriptions","organizations_url":"https://api.github.com/users/kadufreitas/orgs","repos_url":"https://api.github.com/users/kadufreitas/repos","events_url":"https://api.github.com/users/kadufreitas/events{/privacy}","received_events_url":"https://api.github.com/users/kadufreitas/received_events","type":"User","site_admin":false},"body":"Incluindo JS ao footer, para ser chamado no include","created_at":"2016-10-24T13:00:20Z","updated_at":"2016-10-24T13:05:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61dd501672c43c0fc93dd9639d84670c14e735cd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/53/commits","review_comments_url":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/53/comments","review_comment_url":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/contest/issues/53/comments","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/contest/statuses/edfdc83de0dc524b1d13df30c1e79eeb59517acf","head":{"label":"npi-ufc-qxd:Fragments_JS","ref":"Fragments_JS","sha":"edfdc83de0dc524b1d13df30c1e79eeb59517acf","user":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"repo":{"id":61163771,"name":"contest","full_name":"npi-ufc-qxd/contest","owner":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npi-ufc-qxd/contest","description":"Sistema de Controle de Eventos de Submissão","fork":false,"url":"https://api.github.com/repos/npi-ufc-qxd/contest","forks_url":"https://api.github.com/repos/npi-ufc-qxd/contest/forks","keys_url":"https://api.github.com/repos/npi-ufc-qxd/contest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npi-ufc-qxd/contest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npi-ufc-qxd/contest/teams","hooks_url":"https://api.github.com/repos/npi-ufc-qxd/contest/hooks","issue_events_url":"https://api.github.com/repos/npi-ufc-qxd/contest/issues/events{/number}","events_url":"https://api.github.com/repos/npi-ufc-qxd/contest/events","assignees_url":"https://api.github.com/repos/npi-ufc-qxd/contest/assignees{/user}","branches_url":"https://api.github.com/repos/npi-ufc-qxd/contest/branches{/branch}","tags_url":"https://api.github.com/repos/npi-ufc-qxd/contest/tags","blobs_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/refs{/sha}","trees_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/contest/statuses/{sha}","languages_url":"https://api.github.com/repos/npi-ufc-qxd/contest/languages","stargazers_url":"https://api.github.com/repos/npi-ufc-qxd/contest/stargazers","contributors_url":"https://api.github.com/repos/npi-ufc-qxd/contest/contributors","subscribers_url":"https://api.github.com/repos/npi-ufc-qxd/contest/subscribers","subscription_url":"https://api.github.com/repos/npi-ufc-qxd/contest/subscription","commits_url":"https://api.github.com/repos/npi-ufc-qxd/contest/commits{/sha}","git_commits_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/commits{/sha}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/contest/comments{/number}","issue_comment_url":"https://api.github.com/repos/npi-ufc-qxd/contest/issues/comments{/number}","contents_url":"https://api.github.com/repos/npi-ufc-qxd/contest/contents/{+path}","compare_url":"https://api.github.com/repos/npi-ufc-qxd/contest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npi-ufc-qxd/contest/merges","archive_url":"https://api.github.com/repos/npi-ufc-qxd/contest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npi-ufc-qxd/contest/downloads","issues_url":"https://api.github.com/repos/npi-ufc-qxd/contest/issues{/number}","pulls_url":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls{/number}","milestones_url":"https://api.github.com/repos/npi-ufc-qxd/contest/milestones{/number}","notifications_url":"https://api.github.com/repos/npi-ufc-qxd/contest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npi-ufc-qxd/contest/labels{/name}","releases_url":"https://api.github.com/repos/npi-ufc-qxd/contest/releases{/id}","deployments_url":"https://api.github.com/repos/npi-ufc-qxd/contest/deployments","created_at":"2016-06-14T23:52:12Z","updated_at":"2016-09-12T12:10:37Z","pushed_at":"2016-10-24T13:00:20Z","git_url":"git://github.com/npi-ufc-qxd/contest.git","ssh_url":"git@github.com:npi-ufc-qxd/contest.git","clone_url":"https://github.com/npi-ufc-qxd/contest.git","svn_url":"https://github.com/npi-ufc-qxd/contest","homepage":null,"size":4315,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"npi-ufc-qxd:master","ref":"master","sha":"8cacd904fe4bfcaabfc714b5712351904bdb449e","user":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"repo":{"id":61163771,"name":"contest","full_name":"npi-ufc-qxd/contest","owner":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npi-ufc-qxd/contest","description":"Sistema de Controle de Eventos de Submissão","fork":false,"url":"https://api.github.com/repos/npi-ufc-qxd/contest","forks_url":"https://api.github.com/repos/npi-ufc-qxd/contest/forks","keys_url":"https://api.github.com/repos/npi-ufc-qxd/contest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npi-ufc-qxd/contest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npi-ufc-qxd/contest/teams","hooks_url":"https://api.github.com/repos/npi-ufc-qxd/contest/hooks","issue_events_url":"https://api.github.com/repos/npi-ufc-qxd/contest/issues/events{/number}","events_url":"https://api.github.com/repos/npi-ufc-qxd/contest/events","assignees_url":"https://api.github.com/repos/npi-ufc-qxd/contest/assignees{/user}","branches_url":"https://api.github.com/repos/npi-ufc-qxd/contest/branches{/branch}","tags_url":"https://api.github.com/repos/npi-ufc-qxd/contest/tags","blobs_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/refs{/sha}","trees_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/contest/statuses/{sha}","languages_url":"https://api.github.com/repos/npi-ufc-qxd/contest/languages","stargazers_url":"https://api.github.com/repos/npi-ufc-qxd/contest/stargazers","contributors_url":"https://api.github.com/repos/npi-ufc-qxd/contest/contributors","subscribers_url":"https://api.github.com/repos/npi-ufc-qxd/contest/subscribers","subscription_url":"https://api.github.com/repos/npi-ufc-qxd/contest/subscription","commits_url":"https://api.github.com/repos/npi-ufc-qxd/contest/commits{/sha}","git_commits_url":"https://api.github.com/repos/npi-ufc-qxd/contest/git/commits{/sha}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/contest/comments{/number}","issue_comment_url":"https://api.github.com/repos/npi-ufc-qxd/contest/issues/comments{/number}","contents_url":"https://api.github.com/repos/npi-ufc-qxd/contest/contents/{+path}","compare_url":"https://api.github.com/repos/npi-ufc-qxd/contest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npi-ufc-qxd/contest/merges","archive_url":"https://api.github.com/repos/npi-ufc-qxd/contest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npi-ufc-qxd/contest/downloads","issues_url":"https://api.github.com/repos/npi-ufc-qxd/contest/issues{/number}","pulls_url":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls{/number}","milestones_url":"https://api.github.com/repos/npi-ufc-qxd/contest/milestones{/number}","notifications_url":"https://api.github.com/repos/npi-ufc-qxd/contest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npi-ufc-qxd/contest/labels{/name}","releases_url":"https://api.github.com/repos/npi-ufc-qxd/contest/releases{/id}","deployments_url":"https://api.github.com/repos/npi-ufc-qxd/contest/deployments","created_at":"2016-06-14T23:52:12Z","updated_at":"2016-09-12T12:10:37Z","pushed_at":"2016-10-24T13:00:20Z","git_url":"git://github.com/npi-ufc-qxd/contest.git","ssh_url":"git@github.com:npi-ufc-qxd/contest.git","clone_url":"https://github.com/npi-ufc-qxd/contest.git","svn_url":"https://github.com/npi-ufc-qxd/contest","homepage":null,"size":4315,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/53"},"html":{"href":"https://github.com/npi-ufc-qxd/contest/pull/53"},"issue":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/issues/53"},"comments":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/npi-ufc-qxd/contest/statuses/edfdc83de0dc524b1d13df30c1e79eeb59517acf"}}}}
{"actor":{"display_login":"codacy-bot"}}