use of com.yahoo.elide.core.ObjectEntityCache in project elide by yahoo.
the class NoopTransactionTest method setup.
@BeforeAll
public void setup() {
dictionary = EntityDictionary.builder().build();
dictionary.bindEntity(NoopBean.class);
requestScope = mock(RequestScope.class);
JsonApiMapper mapper = mock(JsonApiMapper.class);
when(requestScope.getDictionary()).thenReturn(dictionary);
when(requestScope.getObjectEntityCache()).thenReturn(new ObjectEntityCache());
when(requestScope.getMapper()).thenReturn(mapper);
when(mapper.getObjectMapper()).thenReturn(new ObjectMapper());
}
Aggregations