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