use of io.crnk.core.engine.internal.dispatcher.controller.FieldResourceGet in project crnk-framework by crnk-project.
the class FieldResourceGetTest method onValidRequestShouldAcceptIt.
@Test
public void onValidRequestShouldAcceptIt() {
// GIVEN
JsonPath jsonPath = pathBuilder.build("tasks/1/project");
ResourceRegistry resourceRegistry = mock(ResourceRegistry.class);
FieldResourceGet sut = new FieldResourceGet(resourceRegistry, typeParser, documentMapper);
// WHEN
boolean result = sut.isAcceptable(jsonPath, REQUEST_TYPE);
// THEN
assertThat(result).isTrue();
}
Aggregations