Search in sources :

Example 1 with SpannerPersistentEntityImpl

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

the class AbstractSpannerIntegrationTest method createDummyEntity.

protected <T> SpannerPersistentEntity createDummyEntity(Class<T> type) {
    TypeInformation<T> typeInformation = mock(TypeInformation.class);
    when(typeInformation.getType()).thenReturn(type);
    SpannerPersistentEntity dummyTrade = new SpannerPersistentEntityImpl<>(typeInformation);
    dummyTrade.setApplicationContext(this.applicationContext);
    return dummyTrade;
}
Also used : SpannerPersistentEntity(org.springframework.cloud.gcp.data.spanner.core.mapping.SpannerPersistentEntity) SpannerPersistentEntityImpl(org.springframework.cloud.gcp.data.spanner.core.mapping.SpannerPersistentEntityImpl)

Aggregations

SpannerPersistentEntity (org.springframework.cloud.gcp.data.spanner.core.mapping.SpannerPersistentEntity)1 SpannerPersistentEntityImpl (org.springframework.cloud.gcp.data.spanner.core.mapping.SpannerPersistentEntityImpl)1