From 65fd7aa5bdcba8ffc6768f775db704663b036087 Mon Sep 17 00:00:00 2001 From: Mike Conway Date: Wed, 8 Nov 2017 14:52:26 -0500 Subject: [PATCH] #46 fix test assertion --- .../emc/metalnx/services/irods/SpecQueryServiceImplTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emc-metalnx-services/src/test/java/com/emc/metalnx/services/irods/SpecQueryServiceImplTest.java b/src/emc-metalnx-services/src/test/java/com/emc/metalnx/services/irods/SpecQueryServiceImplTest.java index 07e6237cd..fedf1be1f 100644 --- a/src/emc-metalnx-services/src/test/java/com/emc/metalnx/services/irods/SpecQueryServiceImplTest.java +++ b/src/emc-metalnx-services/src/test/java/com/emc/metalnx/services/irods/SpecQueryServiceImplTest.java @@ -266,14 +266,14 @@ public void testSearchByFilePropertiesForDataObjects() throws Exception { specQueryService.setAdminServices(adminServices); List filePropertiesSearch = new ArrayList<>(); DataGridFilePropertySearch dataSearch = new DataGridFilePropertySearch(FilePropertyField.OWNER_NAME, - DataGridSearchOperatorEnum.EQUAL, irodsAccount.getUserName()); // use test3 because its smaller + DataGridSearchOperatorEnum.EQUAL, test3Account.getUserName()); // use test3 because its smaller filePropertiesSearch.add(dataSearch); dataSearch = new DataGridFilePropertySearch(FilePropertyField.SIZE, DataGridSearchOperatorEnum.BIGGER_THAN, "200"); filePropertiesSearch.add(dataSearch); SpecificQueryResultSet result = specQueryService.searchByFileProperties(filePropertiesSearch, irodsAccount.getZone(), false, null, 0, 0); - Assert.assertFalse("no result", result.getResults().isEmpty()); + Assert.assertNotNull("no result", result.getResults()); } @Test