Timeline for Assertion keeps failing in test class
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 20, 2015 at 13:28 | history | tweeted | twitter.com/#!/StackSalesforce/status/634356441676054528 | ||
Aug 20, 2015 at 9:14 | vote | accept | Nik | ||
Aug 20, 2015 at 8:47 | comment | added | Pranay Jaiswal | is insert failing or assert is? | |
Aug 20, 2015 at 8:45 | comment | added | Nik | I have added Case result = [SELECT Country_of_Origin__c FROM Case WHERE Id = :caseObj.Id]; But the insert fails? | |
Aug 20, 2015 at 8:45 | answer | added | Pranay Jaiswal | timeline score: 1 | |
Aug 20, 2015 at 8:41 | comment | added | Pranay Jaiswal | You have to query on CaseObj and get Country_of_Origin__c field. Also @isTest(SeeAllData=true) is a bad practise. Always keep it as false | |
Aug 20, 2015 at 8:41 | history | edited | highfive | CC BY-SA 3.0 |
formatting
|
Aug 20, 2015 at 8:39 | answer | added | Ashwani | timeline score: 1 | |
Aug 20, 2015 at 8:33 | comment | added | Ashwani |
If you can use System.debug in your code you would also be able to know how this is happening.
|
|
Aug 20, 2015 at 8:29 | history | asked | Nik | CC BY-SA 3.0 |