Search in sources :

Example 1 with NewEntryPointEntity

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);
}
Also used : EntrypointEntity(io.gravitee.rest.api.model.EntrypointEntity) NewEntryPointEntity(io.gravitee.rest.api.model.NewEntryPointEntity) Test(org.junit.Test)

Aggregations

EntrypointEntity (io.gravitee.rest.api.model.EntrypointEntity)1 NewEntryPointEntity (io.gravitee.rest.api.model.NewEntryPointEntity)1 Test (org.junit.Test)1