Skip to content

Commit

Permalink
re-enable tests in PartnerClientTest
Browse files Browse the repository at this point in the history
re-enable tests in PartnerClientTest
  • Loading branch information
ashitsalesforce committed Jan 1, 2025
1 parent 38f8cea commit 8c74882
Showing 1 changed file with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
@SuppressWarnings("unused")
public class PartnerClientTest extends ProcessTestBase {

@Ignore
@Test
public void testPartnerClientConnect() throws Exception {
PartnerClient client = new PartnerClient(getController());
assertFalse(getController().getAppConfig().getBoolean(AppConfig.PROP_SFDC_INTERNAL_IS_SESSION_ID_LOGIN));
Expand All @@ -78,7 +78,7 @@ public void testPartnerClientConnect() throws Exception {
assertTrue(client.getConnection().getDisableFeedTrackingHeader().isDisableFeedTracking());
}

@Ignore
@Test
public void testPartnerClientNoUserName() throws ConnectionException {
AppConfig appConfig = getController().getAppConfig();
String origUserName = appConfig.getString(AppConfig.PROP_USERNAME);
Expand All @@ -95,7 +95,7 @@ public void testPartnerClientNoUserName() throws ConnectionException {
}
}

@Ignore
@Test
public void testPartnerClientSfdcInternalSessionIdConnect() throws Exception {
AppConfig appConfig = getController().getAppConfig();

Expand Down Expand Up @@ -131,7 +131,7 @@ public void testPartnerClientSfdcInternalSessionIdConnect() throws Exception {
}
}

@Ignore
@Test
public void testPartnerClientSfdcInternalSessionIdWithoutSfdcInternalConnect() throws Exception {
AppConfig appConfig = getController().getAppConfig();

Expand Down Expand Up @@ -173,7 +173,7 @@ public void testPartnerClientSfdcInternalSessionIdWithoutSfdcInternalConnect() t
}
}

@Ignore
@Test
public void testIsSessionValidAlwaysTrueForSessionIdLogin() throws Exception {
AppConfig appConfig = getController().getAppConfig();

Expand All @@ -189,7 +189,7 @@ public void testIsSessionValidAlwaysTrueForSessionIdLogin() throws Exception {
}
}

@Ignore
@Test
public void testDisconnect() throws Exception {
PartnerClient client = new PartnerClient(getController());

Expand All @@ -200,7 +200,7 @@ public void testDisconnect() throws Exception {
assertFalse(client.isLoggedIn());
}

@Ignore
@Test
public void testSetEntityDescribe() throws Exception{
PartnerClient client = new PartnerClient(getController());
assertNotNull(client.getDescribeGlobalResults());
Expand Down Expand Up @@ -229,14 +229,14 @@ public void testDescribeSObjects() throws Exception {
}
}

@Ignore
@Test
public void testSetFieldTypes() throws Exception {
PartnerClient client = new PartnerClient(getController());
client.setFieldTypes();
assertNotNull(client.getFieldTypes());
}

@Ignore
@Test
public void testGetSforceField() throws Exception {
// test for account name as a default test case
PartnerClient client = new PartnerClient(getController());
Expand All @@ -254,7 +254,7 @@ public void testGetSforceField() throws Exception {
}

@SuppressWarnings("unchecked")
@Ignore
@Test
public void testInsertBasic() throws Exception {
// setup our dynabeans
BasicDynaClass dynaClass;
Expand Down Expand Up @@ -284,12 +284,12 @@ public void testInsertBasic() throws Exception {
}
}

@Ignore
@Test
public void testUpdateBasic() throws Exception {
doTestUpdateBasic(false);
}

@Ignore
@Test
public void testUpdateBasicWithoutCompression() throws Exception {
doTestUpdateBasic(true);
}
Expand Down Expand Up @@ -334,7 +334,7 @@ private void doTestUpdateBasic(boolean noCompression) throws Exception {
* Basic failing - forgetting the id
*/
@SuppressWarnings("unchecked")
@Ignore
@Test
public void testUpdateFailBasic() throws Exception {

// setup our dynabeans
Expand Down Expand Up @@ -368,47 +368,47 @@ public void testUpdateFailBasic() throws Exception {
/**
* Test basic upsert operation
*/
@Ignore
@Test
public void testUpsertAccountBasic() throws Exception {
doUpsertAccount(false);
}

/**
* Test basic upsert operation
*/
@Ignore
@Test
public void testUpsertContactBasic() throws Exception {
doUpsertContact(false);
}

/**
* Test basic upsert on foreign key
*/
@Ignore
@Test
public void testUpsertAccountFkBasic() throws Exception {
doUpsertAccount(true);
}

/**
* Test basic upsert on foreign key
*/
@Ignore
@Test
public void testUpsertContactFkBasic() throws Exception {
doUpsertContact(true);
}

/**
* Test basic failure to upsert - no external id specified
*/
@Ignore
@Test
public void testUpsertFailBasic() throws Exception {
doUpsertFailBasic(false);
}

/**
* Test basic failure to upsert on foreign key - no foreign key external id specified (blank value)
*/
@Ignore
@Test
public void testUpsertFkFailBasic() throws Exception {
doUpsertFailBasic(true);
}
Expand Down Expand Up @@ -531,7 +531,7 @@ private void doUpsertFailBasic(boolean upsertFk) throws Exception {
}

@SuppressWarnings("unchecked")
@Ignore
@Test
public void testDeleteBasic() throws Exception {
String id = getRandomAccountId();

Expand Down Expand Up @@ -568,7 +568,7 @@ public void testDeleteBasic() throws Exception {
/**
* Test a delete missing the id
*/
@Ignore
@Test
public void testDeleteFailBasic() throws Exception {

// setup our dynabeans
Expand Down Expand Up @@ -600,7 +600,7 @@ public void testDeleteFailBasic() throws Exception {
}
}

@Ignore
@Test
public void testQueryBasic() throws Exception {
// make sure there're some records to test with
upsertSfdcAccounts(10);
Expand Down

0 comments on commit 8c74882

Please sign in to comment.