Skip to content

Commit

Permalink
LPD-50243 Removed ignored tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smottal committed Feb 28, 2025
1 parent 8f63945 commit 3c981de
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,12 @@ public Organization getAccountOrganization(
Long accountId, String organizationId)
throws Exception {

AccountEntry accountEntry = _accountEntryService.getAccountEntry(
accountId);

AccountEntryOrganizationRel accountEntryOrganizationRel =
_accountEntryOrganizationRelService.getAccountEntryOrganizationRel(
accountId, Long.valueOf(organizationId));
accountEntry.getAccountEntryId(), Long.valueOf(organizationId));

return _toOrganization(
String.valueOf(accountEntryOrganizationRel.getOrganizationId()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
import org.junit.Assert;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -328,32 +327,6 @@ public void testGetOrganizationsPage() throws Exception {
_testGetOrganizationsPageWithFilter();
}

@Ignore
@Override
@Test
public void testGraphQLGetAccountByExternalReferenceCodeOrganization()
throws Exception {
}

@Ignore
@Override
@Test
public void testGraphQLGetAccountByExternalReferenceCodeOrganizationNotFound()
throws Exception {
}

@Ignore
@Override
@Test
public void testGraphQLGetAccountOrganization() throws Exception {
}

@Ignore
@Override
@Test
public void testGraphQLGetAccountOrganizationNotFound() throws Exception {
}

@Override
@Test
public void testPatchOrganization() throws Exception {
Expand Down Expand Up @@ -725,6 +698,43 @@ protected Organization testGetOrganizationsPage_addOrganization(
return _addOrganization(organization, "0");
}

@Override
protected Organization
testGraphQLGetAccountByExternalReferenceCodeOrganization_addOrganization()
throws Exception {

return testGraphQLGetAccountOrganization_addOrganization();
}

@Override
protected String
testGraphQLGetAccountByExternalReferenceCodeOrganization_getExternalReferenceCode(
Organization organization)
throws Exception {

return _accountEntry.getExternalReferenceCode();
}

@Override
protected Organization testGraphQLGetAccountOrganization_addOrganization()
throws Exception {

Organization organization = testGraphQLOrganization_addOrganization();

_accountEntryOrganizationRelLocalService.addAccountEntryOrganizationRel(
_accountEntry.getAccountEntryId(),
GetterUtil.getLong(organization.getId()));

return organization;
}

@Override
protected Long testGraphQLGetAccountOrganization_getAccountId()
throws Exception {

return _accountEntry.getAccountEntryId();
}

@Override
protected Organization testGraphQLOrganization_addOrganization()
throws Exception {
Expand Down

0 comments on commit 3c981de

Please sign in to comment.