Skip to main content
20 events
when toggle format what by license comment
Apr 20, 2016 at 18:14 vote accept rajat bhatia
Apr 19, 2016 at 6:39 comment added Sebastian Kessel If it did, please accept the question and up vote so others can benefit
Apr 19, 2016 at 1:09 comment added cropredy there is a good discussion of how to get developerName on Document here: salesforce.stackexchange.com/questions/23705/…
Apr 18, 2016 at 18:54 comment added Sebastian Kessel If you query by DeveloperName, but don't specify a value on the document you create in test, you won't find anything in your code. That's likely why the line is not covered
Apr 18, 2016 at 18:53 comment added rajat bhatia name is required field in document so i am creating record using that field
Apr 18, 2016 at 18:15 comment added Sebastian Kessel In your test code you seem to be setting Doc.Name but you query for Doc.DeveloperName...
Apr 18, 2016 at 18:12 comment added rajat bhatia sorry just forgot to update here. i have updated the class as well.
Apr 18, 2016 at 18:06 comment added Sebastian Kessel It does not look like you changed the class code... only the test code. Change your regular code too, from System.currentPageReference() to ApexPages.CurrentPage()
Apr 18, 2016 at 18:04 comment added rajat bhatia hi kessel i have updated my test code. please let me know if i any changes i need to do
Apr 18, 2016 at 17:36 comment added Sebastian Kessel can you update your original code with the updated one?
Apr 18, 2016 at 17:35 comment added rajat bhatia hi kessel i have added the above code but still it's not increasing the coverage.
Apr 18, 2016 at 16:45 comment added Sebastian Kessel I am sorry, Updated again, seems like I hadn't had all my coffee yet
Apr 18, 2016 at 16:44 history edited Sebastian Kessel CC BY-SA 3.0
added 4 characters in body
Apr 18, 2016 at 15:55 comment added rajat bhatia pvdocload newPage = Page.pvdocload; it will throw Compile Error: Invalid type: pvdocload
Apr 18, 2016 at 15:46 comment added Sebastian Kessel Just updated my code samples
Apr 18, 2016 at 15:46 history edited Sebastian Kessel CC BY-SA 3.0
added 49 characters in body
Apr 18, 2016 at 15:41 comment added rajat bhatia its "apex/pvdocload
Apr 18, 2016 at 15:38 comment added Sebastian Kessel You're right. My Bad. Can you please share with me the name of your VF page? (The one documentctr is the controller for)
Apr 18, 2016 at 15:37 comment added rajat bhatia its throwing Error: Compile Error: Method does not exist or incorrect signature: [documentctr].getParameters() at line 42 column 9
Apr 18, 2016 at 15:24 history answered Sebastian Kessel CC BY-SA 3.0