DATACOUCH-294 Fix failing N1ql unit tests due to changes in commons

This commit is contained in:
Subhashni Balakrishnan
2017-04-12 16:58:19 -07:00
parent 069ceea65c
commit ffb6ab8ff3

View File

@@ -62,6 +62,7 @@ public class PartTreeN1qBasedQueryTest {
CouchbaseQueryMethod queryMethod = new CouchbaseQueryMethod(method, metadata, factory, mappingContext);
when(accessor.getSort()).thenReturn(Sort.unsorted());
when(accessor.getPageable()).thenReturn(Pageable.unpaged());
when(entityInformation.getJavaType()).thenReturn(Beer.class);
when(couchbaseOperations.getCouchbaseBucket()).thenReturn(couchbaseBucket);
when(couchbaseBucket.name()).thenReturn("default");
@@ -104,6 +105,7 @@ public class PartTreeN1qBasedQueryTest {
CouchbaseQueryMethod queryMethod = new CouchbaseQueryMethod(method, metadata, factory, mappingContext);
when(accessor.getPageable()).thenReturn(Pageable.unpaged());
when(entityInformation.getJavaType()).thenReturn(Beer.class);
when(couchbaseOperations.getCouchbaseBucket()).thenReturn(couchbaseBucket);
when(couchbaseBucket.name()).thenReturn("default");