Skip to content

Commit

Permalink
SHIBUI-1788
Browse files Browse the repository at this point in the history
Refactored tests to handle the multiple beans found issue and removed
the @Primary annotation from the service class
  • Loading branch information
chasegawa committed Jun 10, 2021
1 parent 803b0d7 commit 78ae4d0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import edu.internet2.tier.shibboleth.admin.ui.repository.CustomEntityAttributeFilterValueRepository;

@Service
@Primary
public class CustomEntityAttributesDefinitionServiceImpl implements CustomEntityAttributesDefinitionService {
@Autowired
CustomEntityAttributeFilterValueRepository customEntityAttributeFilterValueRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class TestConfiguration {
}

@Bean
CustomEntityAttributesDefinitionServiceImpl ceadService() {
CustomEntityAttributesDefinitionServiceImpl customEntityAttributesDefinitionServiceImpl() {
new CustomEntityAttributesDefinitionServiceImpl().with {
it.entityManager = entityManager
it.repository = repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class EntityDescriptorRepositoryTest extends Specification {
}

@Bean
CustomEntityAttributesDefinitionServiceImpl ceadService() {
CustomEntityAttributesDefinitionServiceImpl customEntityAttributesDefinitionServiceImpl() {
new CustomEntityAttributesDefinitionServiceImpl().with {
it.entityManager = entityManager
it.repository = repository
Expand Down

0 comments on commit 78ae4d0

Please sign in to comment.