Skip to content

Commit

Permalink
EPMRPP-89420 implement organizations sort and filter
Browse files Browse the repository at this point in the history
  • Loading branch information
grabsefx committed Feb 27, 2024
1 parent 10e04ac commit ff306d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@
/**
* @author Andrei Piankouski
*/
public class OrganizationControllerTest extends BaseMvcTest {
class OrganizationControllerTest extends BaseMvcTest {

@Test
void getOrganization() throws Exception {
mockMvc.perform(get("/organization/1").with(token(oAuthHelper.getSuperadminToken())))
mockMvc.perform(get("/v1/organization/1").with(token(oAuthHelper.getSuperadminToken())))
.andExpect(status().isOk());
}

@Test
void getAllOrganizations() throws Exception {
mockMvc.perform(get("/organization/list").with(token(oAuthHelper.getSuperadminToken())))
mockMvc.perform(get("/v1/organization/list").with(token(oAuthHelper.getSuperadminToken())))
.andExpect(status().isOk());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ void testConvert() {

final OrganizationResource organizationResource = OrganizationConverter.TO_ORGANIZATION_RESOURCE.apply(org);

assertEquals(organizationResource.getOrganizationId(), org.getId());
assertEquals(organizationResource.getOrganizationName(), org.getName());
assertEquals(organizationResource.getOrganizationSlug(), org.getSlug());
assertEquals(organizationResource.getId(), org.getId());
assertEquals(organizationResource.getName(), org.getName());
assertEquals(organizationResource.getSlug(), org.getSlug());
}
}

0 comments on commit ff306d4

Please sign in to comment.