Skip to main content Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.
ranjan nagaraju a posé une question dans #Apex

@isTest

private class TestRemoveInterestingMomentLinebreaks

{

static testMethod void updateContactTest()

{

Contact c = new Contact(lastname = 'test', Last_Interesting_Moment_Desc__c = '\n\r test');

insert c;

system.debug('updateContactTest Before value');

system.debug(c.Last_Interesting_Moment_Desc__c.contains('\n\r'));

system.assert(c.Last_Interesting_Moment_Desc__c.contains('\n\r') == false);

}

}

 
1 réponse
  1. 23 mai 2018, 20:25
    earlier with salesforce api version 20.0 test case was successfully running
0/9000