git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/accounting/accounting-analytics-persistence-couchbase@132082 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0453c2faa8
commit
9fdb501787
|
@ -616,7 +616,7 @@ AccountingPersistenceBackendQuery {
|
|||
|
||||
//selectExpressions.add(x(getSpecializedProperty(clz,key)).as(key));
|
||||
selectExpressions.add(x("(CASE WHEN " + getSpecializedProperty(clz,key) +
|
||||
" IS NOT NULL THEN "+getSpecializedProperty(clz,key)+" ELSE 'UNKONW' END )").as(key));
|
||||
" IS NOT NULL THEN "+getSpecializedProperty(clz,key)+" ELSE 'UNKNOWN' END )").as(key));
|
||||
|
||||
//add where expression
|
||||
Expression whereExpression =
|
||||
|
|
|
@ -79,7 +79,7 @@ public class AccountingPersistenceQueryCouchBaseTest {
|
|||
@Before
|
||||
public void before() throws Exception{
|
||||
|
||||
ScopeProvider.instance.set("/gcube/devNext/NextNext");
|
||||
ScopeProvider.instance.set("/gcube/devNext");
|
||||
|
||||
AccountingPersistenceBackendQueryConfiguration configuration = new
|
||||
AccountingPersistenceBackendQueryConfiguration(AccountingPersistenceQueryCouchBase.class);
|
||||
|
@ -147,7 +147,7 @@ public class AccountingPersistenceQueryCouchBaseTest {
|
|||
@Test
|
||||
public void testTopService() throws Exception {
|
||||
Calendar startTime = Calendar.getInstance();
|
||||
startTime.set(2015, Calendar.AUGUST, 25);
|
||||
startTime.set(2016, Calendar.AUGUST, 29);
|
||||
Calendar endTime = Calendar.getInstance();
|
||||
endTime.set(2016, Calendar.SEPTEMBER, 28,23,59);
|
||||
|
||||
|
|
Reference in New Issue