Search in sources :

Example 16 with DatastoreMappingContext

use of com.google.cloud.spring.data.datastore.core.mapping.DatastoreMappingContext in project spring-cloud-gcp by GoogleCloudPlatform.

the class DatastoreQueryLookupStrategyTests method initMocks.

@BeforeEach
void initMocks() {
    this.datastoreTemplate = mock(DatastoreTemplate.class);
    this.datastoreMappingContext = new DatastoreMappingContext();
    this.queryMethod = mock(DatastoreQueryMethod.class);
    this.evaluationContextProvider = mock(QueryMethodEvaluationContextProvider.class);
    this.datastoreQueryLookupStrategy = getDatastoreQueryLookupStrategy();
}
Also used : DatastoreMappingContext(com.google.cloud.spring.data.datastore.core.mapping.DatastoreMappingContext) DatastoreTemplate(com.google.cloud.spring.data.datastore.core.DatastoreTemplate) QueryMethodEvaluationContextProvider(org.springframework.data.repository.query.QueryMethodEvaluationContextProvider) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

DatastoreMappingContext (com.google.cloud.spring.data.datastore.core.mapping.DatastoreMappingContext)16 FullEntity (com.google.cloud.datastore.FullEntity)12 Entity (com.google.cloud.datastore.Entity)11 Test (org.junit.jupiter.api.Test)11 BaseEntity (com.google.cloud.datastore.BaseEntity)8 EmbeddedEntity (com.google.cloud.spring.data.datastore.core.convert.TestItemWithEmbeddedEntity.EmbeddedEntity)8 EntityValue (com.google.cloud.datastore.EntityValue)5 ListValue (com.google.cloud.datastore.ListValue)5 NullValue (com.google.cloud.datastore.NullValue)4 StringValue (com.google.cloud.datastore.StringValue)4 Value (com.google.cloud.datastore.Value)4 DiscriminatorValue (com.google.cloud.spring.data.datastore.core.mapping.DiscriminatorValue)4 BeforeEach (org.junit.jupiter.api.BeforeEach)4 DatastoreTemplate (com.google.cloud.spring.data.datastore.core.DatastoreTemplate)3 DatastorePersistentEntity (com.google.cloud.spring.data.datastore.core.mapping.DatastorePersistentEntity)3 ArrayList (java.util.ArrayList)3 EntityQuery (com.google.cloud.datastore.EntityQuery)2 MapBuilder (com.google.cloud.spring.core.util.MapBuilder)2 List (java.util.List)2 Datastore (com.google.cloud.datastore.Datastore)1