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;
}
Aggregations