Search in sources :

Example 6 with SpannerMappingContext

use of org.springframework.cloud.gcp.data.spanner.core.mapping.SpannerMappingContext in project spring-cloud-gcp by spring-cloud.

the class SpannerRepositoryFactoryTests method setUp.

@Before
public void setUp() {
    this.spannerMappingContext = new SpannerMappingContext();
    this.spannerOperations = mock(SpannerOperations.class);
    this.spannerRepositoryFactory = new SpannerRepositoryFactory(this.spannerMappingContext, this.spannerOperations);
}
Also used : SpannerMappingContext(org.springframework.cloud.gcp.data.spanner.core.mapping.SpannerMappingContext) SpannerOperations(org.springframework.cloud.gcp.data.spanner.core.SpannerOperations) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)6 SpannerMappingContext (org.springframework.cloud.gcp.data.spanner.core.mapping.SpannerMappingContext)6 SpannerOperations (org.springframework.cloud.gcp.data.spanner.core.SpannerOperations)4 SpannerConverter (org.springframework.cloud.gcp.data.spanner.core.convert.SpannerConverter)2 QueryMethod (org.springframework.data.repository.query.QueryMethod)2 DatabaseClient (com.google.cloud.spanner.DatabaseClient)1 ReadContext (com.google.cloud.spanner.ReadContext)1 SpannerRepository (org.springframework.cloud.gcp.data.spanner.repository.SpannerRepository)1