use of io.gravitee.rest.api.model.EntrypointEntity in project gravitee-management-rest-api by gravitee-io.
the class EntrypointServiceTest method shouldUpdateWithSameTags.
@Test
public void shouldUpdateWithSameTags() throws Exception {
final UpdateEntryPointEntity entrypoint = new UpdateEntryPointEntity();
entrypoint.setId(ID);
entrypoint.setValue(NEW_VALUE);
entrypoint.setTags(TAGS);
final EntrypointEntity entrypointEntity = entrypointService.update(entrypoint, REFERENCE_ID, REFERENCE_TYPE);
assertEquals(ID, entrypointEntity.getId());
assertEquals(NEW_VALUE, entrypointEntity.getValue());
assertNotNull(entrypointEntity.getTags());
assertEquals(2, entrypointEntity.getTags().length);
}
Aggregations