Skip to content
Snippets Groups Projects
Commit c501a73e authored by Aalekh Jain's avatar Aalekh Jain
Browse files

Added UT for `listTenantInfo` method in `TenantFactoryImpl.java`

parent cb0d61c7
No related branches found
No related tags found
1 merge request!61Improve code coverage
Pipeline #9730 failed
......@@ -87,5 +87,14 @@ public class TenantFactoryImplTest {
assertEquals(tenantInfo.getComplianceRuleSet(), complianceRuleSets[i]);
}
}
@Test
public void testListTenantInfo() {
List<TenantInfo> tenantInfoList = new ArrayList<TenantInfo> (sut.listTenantInfo());
for (TenantInfo tenantInfo: tenantInfoList) {
assertTrue(ArrayUtils.contains(ids, tenantInfo.getName()));
assertTrue(ArrayUtils.contains(complianceRuleSets, tenantInfo.getComplianceRuleSet()));
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment