@Test(groups = "slow") public void testRetrieveTenantRecordIdFromObject() throws IOException { insertAccount(); final Long resultTenantRecordId = nonEntityDao.retrieveTenantRecordIdFromObject(accountId, ObjectType.ACCOUNT, null); Assert.assertEquals(resultTenantRecordId, tenantRecordId); }
@Test(groups = "slow") public void testRetrieveAccountRecordIdFromTagDefinitionObject() throws IOException { insertTagDefinition(); final Long resultAccountRecordId = nonEntityDao.retrieveAccountRecordIdFromObject(tagDefinitionId, ObjectType.TAG_DEFINITION, null); Assert.assertEquals(resultAccountRecordId, null); }
@Test(groups = "slow") public void testRetrieveAccountRecordIdFromOtherObject() throws IOException { insertTag(); final Long resultAccountRecordId = nonEntityDao.retrieveAccountRecordIdFromObject(tagId, ObjectType.TAG, null); Assert.assertEquals(resultAccountRecordId, accountRecordId); }
@Test(groups = "slow") public void testRetrieveTenantRecordIdFromTenantObject() throws IOException { insertTenant(); final Long resultTenantRecordId = nonEntityDao.retrieveTenantRecordIdFromObject(tenantId, ObjectType.TENANT, null); Assert.assertEquals(resultTenantRecordId, tenantRecordId); } private void insertAccount() throws IOException {
@Test(groups = "slow") public void testRetrieveAccountRecordIdFromAccountObject() throws IOException { insertAccount(); final Long resultAccountRecordId = nonEntityDao.retrieveAccountRecordIdFromObject(accountId, ObjectType.ACCOUNT, null); Assert.assertEquals(resultAccountRecordId, accountRecordId); }
@Test(groups = "slow") public void testRetrieveRecordIdFromObject() throws IOException { insertAccount(); final Long resultRecordId = nonEntityDao.retrieveRecordIdFromObject(accountId, ObjectType.ACCOUNT, null); Assert.assertEquals(resultRecordId, accountRecordId); }