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

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

parent 2131bd38
No related branches found
No related tags found
1 merge request!61Improve code coverage
......@@ -78,5 +78,14 @@ public class TenantFactoryImplTest {
assertFalse(sut.exists("id-that-does-not-exist"));
assertFalse(sut.exists(""));
}
@Test
public void testGetTenantInfo_whenExistingTenantNameGiven() {
for (int i = 0; i < ids.length; i++) {
TenantInfo tenantInfo = sut.getTenantInfo(ids[i]);
assertEquals(tenantInfo.getName(), ids[i]);
assertEquals(tenantInfo.getComplianceRuleSet(), complianceRuleSets[i]);
}
}
}
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