Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-enable tests #973

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions src/test/java/com/salesforce/dataloader/process/CsvProcessTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static Collection<Object[]> getParameters() {
/**
* Tests the insert operation on Account - Positive test.
*/
@Ignore
@Test
public void testInsertAccountCsv() throws Exception {
Map<String, String> configMap = getTestConfig(OperationInfo.insert, false);
if (isSettingEnabled(configMap, Config.BULK_API_ZIP_CONTENT)
Expand Down Expand Up @@ -132,7 +132,7 @@ public void testInsertAccountWithMultipleBatchesCSV() throws ProcessInitializati
/**
* Tests the insert operation on Account - Positive test.
*/
@Ignore
@Test
public void testInsertTaskWithContactAsWhoCsv() throws Exception {
Map<String, String> configMap = getTestConfig(OperationInfo.insert, false);
if (isSettingEnabled(configMap, Config.BULK_API_ZIP_CONTENT)
Expand Down Expand Up @@ -165,7 +165,7 @@ public void testInsertTaskWithContactAsWhoCsv() throws Exception {
/**
* Tests update operation with input coming from a CSV file. Relies on the id's in the CSV on being in the database
*/
@Ignore
@Test
public void testUpdateAccountCsv() throws Exception {
Map<String, String> configMap = getUpdateTestConfig(false, null, 100);
if (isSettingEnabled(configMap, Config.BULK_API_ZIP_CONTENT)
Expand All @@ -181,7 +181,7 @@ public void testUpdateAccountCsv() throws Exception {
/**
* Upsert the records from CSV file
*/
@Ignore
@Test
public void testUpsertAccountCsv() throws Exception {
Map<String, String> configMap = getUpdateTestConfig(true, DEFAULT_ACCOUNT_EXT_ID_FIELD, 50);
if (isSettingEnabled(configMap, Config.BULK_API_ZIP_CONTENT)
Expand All @@ -206,7 +206,7 @@ public void testUpsertAccountCsv() throws Exception {
* when queried.
* @throws Exception
*/
@Ignore
@Test
public void testConstantMappingInCsv() throws Exception {
Map<String, String> configMap = getTestConfig(OperationInfo.insert, false);
if (isSettingEnabled(configMap, Config.BULK_API_ZIP_CONTENT)
Expand Down Expand Up @@ -244,7 +244,7 @@ public void testConstantMappingInCsv() throws Exception {
*
* @throws Exception
*/
@Ignore
@Test
public void testDescriptionAsConstantMappingInCsv() throws Exception {
Map<String, String> configMap = getTestConfig(OperationInfo.insert, getTestDataDir()
+ "/constantMappingInCsv.csv", false);
Expand Down Expand Up @@ -279,7 +279,7 @@ public void testDescriptionAsConstantMappingInCsv() throws Exception {
*
* @expectedResults Assert that the values retrieved for that field match those in the CSV file
*/
@Ignore
@Test
public void testFieldAndConstantFieldClash() throws Exception {
Map<String, String> configMap = getTestConfig(OperationInfo.insert,
getTestDataDir() + "/constantMappingInCsvClashing.csv", false);
Expand Down Expand Up @@ -315,7 +315,7 @@ public void testFieldAndConstantFieldClash() throws Exception {
*
* @expectedResults Assert that the values retrieved for that field match those in the CSV file
*/
@Ignore
@Test
public void testNullConstantAssignment() throws Exception {

/* Field assignments in .sdl are as follows:
Expand Down Expand Up @@ -378,7 +378,7 @@ private SObject[] retrieveAccounts(Controller resultController, String... accoun
/**
* Tests Upsert on foreign key for the records based on the CSV file
*/
@Ignore
@Test
public void testUpsertFkAccountCsv() throws Exception {
// manually inserts 100 accounts, then upserts specifying account parent for 50 accounts
runUpsertProcess(getUpdateTestConfig(true, DEFAULT_ACCOUNT_EXT_ID_FIELD, 100), 0, 50);
Expand All @@ -387,7 +387,7 @@ public void testUpsertFkAccountCsv() throws Exception {
/**
* Tests that Deleting the records based on a CSV file works
*/
@Ignore
@Test
public void testDeleteAccountCsv() throws Exception {
AccountIdTemplateListener listener = new AccountIdTemplateListener(100);
String deleteFileName = convertTemplateToInput(baseName + "Template.csv", baseName + ".csv", listener);
Expand Down Expand Up @@ -422,7 +422,7 @@ public void updateRow(int idx, Row row) {
}
}

@Ignore
@Test
public void testCreateAttachment() throws Exception {
// convert the template using the parent account id
final String fileName = convertTemplateToInput(this.baseName + "Template.csv", this.baseName + ".csv",
Expand Down Expand Up @@ -452,7 +452,7 @@ public void testCreateAttachment() throws Exception {
* @expectedResults Assert that all the records were inserted and that the constant value was mapped as well.
*
*/
@Ignore
@Test
public void testNonMappedFieldsPermittedInDLTransaction() throws Exception {

final int numberOfRows = 4;
Expand Down Expand Up @@ -481,7 +481,7 @@ public void testNonMappedFieldsPermittedInDLTransaction() throws Exception {
* @expectedResults Assert that all the records were inserted and that the constant value was mapped as well.
*
*/
@Ignore
@Test
public void testHtmlFormattingInInsert() throws Exception {
_doTestHtmlFormattingInInsert(true);
_doTestHtmlFormattingInInsert(false);
Expand Down Expand Up @@ -577,7 +577,7 @@ private void _doTestHtmlFormattingInInsert(boolean preserveWhitespaceInRichText)
* @expectedResults Assert that the dates in Salesforce match up.
*
*/
@Ignore
@Test
public void testTimezoneNotTruncated() throws Exception {

final int numberOfRows = 12;
Expand Down Expand Up @@ -617,7 +617,7 @@ public void testTimezoneNotTruncated() throws Exception {
*
* @throws Exception
*/
@Ignore
@Test
public void testErrorsGeneratedOnInvalidDateMatching() throws Exception {

runTestErrorsGeneratedOnInvalidDateMatchWithOffset(0, 3,3);
Expand All @@ -630,12 +630,12 @@ public void testErrorsGeneratedOnInvalidDateMatching() throws Exception {
*
* @throws Exception
*/
@Ignore
@Test
public void testErrorsGeneratedOnInvalidDateMatchingWithOffset() throws Exception {
runTestErrorsGeneratedOnInvalidDateMatchWithOffset(2, 2, 2);
}

@Ignore
@Test
public void testOneToManySforceFieldsMappingInCsv() throws Exception {
// The use case is as follows:
// This company in this scenario only does business in the state of CA, therefore billing and shipping
Expand Down Expand Up @@ -668,7 +668,7 @@ public void testOneToManySforceFieldsMappingInCsv() throws Exception {
}
}

@Ignore
@Test
public void testEmptyFirstRowFieldValueInCsv() throws Exception {
Map<String, String> argumentMap = getUpdateTestConfig(false, null, 2);
if (isSettingEnabled(argumentMap, Config.BULK_API_ZIP_CONTENT)
Expand Down
Loading