Search in sources :

Example 1 with ObjectEntityCache

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());
}
Also used : ObjectEntityCache(com.yahoo.elide.core.ObjectEntityCache) JsonApiMapper(com.yahoo.elide.jsonapi.JsonApiMapper) RequestScope(com.yahoo.elide.core.RequestScope) ObjectMapper(com.fasterxml.jackson.databind.ObjectMapper) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ObjectEntityCache (com.yahoo.elide.core.ObjectEntityCache)1 RequestScope (com.yahoo.elide.core.RequestScope)1 JsonApiMapper (com.yahoo.elide.jsonapi.JsonApiMapper)1 BeforeAll (org.junit.jupiter.api.BeforeAll)1