Skip to content

Commit

Permalink
NOJIRA
Browse files Browse the repository at this point in the history
fixes for unit test
  • Loading branch information
chasegawa committed Nov 7, 2023
1 parent ca05e9c commit a04a4fa
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class EntitiesControllerIntegrationTests extends AbstractBaseDataJpaTest {
entityManager.clear()

when:
def result = mockMvc.perform(get("/api/entities/eid1"))
def result = mockMvc.perform(get("/entities/eid1"))

then:
result.andExpect(status().isOk())
Expand All @@ -133,7 +133,7 @@ class EntitiesControllerIntegrationTests extends AbstractBaseDataJpaTest {
ownershipRepository.saveAndFlush(new Ownership(Group.ADMIN_GROUP, entityDescriptorTwo))

when:
def result = mockMvc.perform(get("/api/entities/eid1"))
def result = mockMvc.perform(get("/entities/eid1"))

then:
result.andExpect(status().isOk())
Expand All @@ -159,7 +159,7 @@ class EntitiesControllerIntegrationTests extends AbstractBaseDataJpaTest {

then:
try {
mockMvc.perform(get("/api/entities/eid2"))
mockMvc.perform(get("/entities/eid2"))
}
catch (Exception e) {
e instanceof ForbiddenException
Expand All @@ -181,7 +181,7 @@ class EntitiesControllerIntegrationTests extends AbstractBaseDataJpaTest {
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="eid1"/>"""
when:
def result = mockMvc.perform(get("/api/entities/eid1").accept(APPLICATION_XML))
def result = mockMvc.perform(get("/entities/eid1").accept(APPLICATION_XML))
then:
result.andExpect(status().isOk()).andExpect(content().xml(expectedXML))
Expand All @@ -204,7 +204,7 @@ class EntitiesControllerIntegrationTests extends AbstractBaseDataJpaTest {
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="eid1"/>"""
when:
def result = mockMvc.perform(get("/api/entities/eid1").accept(APPLICATION_XML))
def result = mockMvc.perform(get("/entities/eid1").accept(APPLICATION_XML))
then:
result.andExpect(status().isOk()).andExpect(content().xml(expectedXML))
Expand All @@ -224,7 +224,7 @@ class EntitiesControllerIntegrationTests extends AbstractBaseDataJpaTest {
then:
try {
mockMvc.perform(get("/api/entities/eid1").accept(APPLICATION_XML))
mockMvc.perform(get("/entities/eid1").accept(APPLICATION_XML))
}
catch (Exception e) {
e instanceof ForbiddenException
Expand Down

0 comments on commit a04a4fa

Please sign in to comment.