Skip to content

test: add tests for existsbyabbreviation and findallbystatus methods - #136

Open
AlexsandroCampos wants to merge 16 commits into
developfrom
feature/add-test-to-campusrepositorytest
Open

test: add tests for existsbyabbreviation and findallbystatus methods#136
AlexsandroCampos wants to merge 16 commits into
developfrom
feature/add-test-to-campusrepositorytest

Conversation

@AlexsandroCampos

@AlexsandroCampos AlexsandroCampos commented Jun 14, 2022

Copy link
Copy Markdown
Member

Relacionado a issue #120

Este pull request adiciona testes aos métodos existsByAbbreviation e findAllByStatus da classe CampusRepository e aos métodos create, findAll, findById, findByCampusIdAndId, update, setStatus, delete, existsByCampusId, disableAllByCampusId e enable da classe DepartmentServiceImpl.

Para verificar se essas modificações funcionam, basta rodar os testes criados no IDE.

The @DataJpaTeste annotation disables Spring's automatic configuration, as a result, it is unable to @import the RequestExpiresVerification class in the tests, generating the error of not being able to create its bean. Since the @import annotation is not needed, so the solution was to remove it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants