Timeline for Need help with test code
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 21, 2013 at 13:32 | vote | accept | Zoom_v | ||
Mar 21, 2013 at 13:32 | comment | added | Zoom_v | @PhilHawthorn - That did it. Thanks so much Phil ! | |
Mar 20, 2013 at 19:34 | comment | added | Phil Hawthorn |
Should be System.assert(1 == subs.size(), 'One sub object is expected'); . The bottom lines are fine.
|
|
Mar 20, 2013 at 19:20 | comment | added | Zoom_v | @PhilHawthorn I'm confused right now because I'm getting a "Method does not exist or incorrect signature" error on another line. I updated my original post just to show you what the code looks like right now to make sure I've done what you suggested properly. Thanks for any help you can give. I really appreciate your time. | |
Mar 20, 2013 at 18:59 | history | edited | Phil Hawthorn | CC BY-SA 3.0 |
edited body
|
Mar 20, 2013 at 18:43 | comment | added | Jesse Altman | @Zoom_v it is no problem. Not a big deal. I didn't get a chance to go back over it, things got busier for me lol... | |
Mar 20, 2013 at 18:43 | history | edited | Phil Hawthorn | CC BY-SA 3.0 |
added 390 characters in body
|
Mar 20, 2013 at 18:40 | comment | added | Phil Hawthorn | If your class is structured as per latest edit, you shouldn't get that. You will only get that if your Test class is nested within another class | |
Mar 20, 2013 at 18:38 | comment | added | Zoom_v | @JesseAltman : I'm sorry for bringing this code to a whole different question. I just figured you had abandoned that other one because I had showed you some code regarding changing that code from an insert to an upsert but didn't hear back from ya. | |
Mar 20, 2013 at 18:25 | comment | added | Zoom_v | I get a : "Save error: Only top-level class variables can be declared static" now that I put that line in. Also : Should that last curly bracket just go all the way to the bottom of the code to encompass everything below it ? Thanks a ton @PhilHawthorn | |
Mar 20, 2013 at 16:55 | comment | added | Phil Hawthorn | no probs, there are no dumb questions @Zoom_v. Updated my answer to illustrate. | |
Mar 20, 2013 at 16:55 | history | edited | Phil Hawthorn | CC BY-SA 3.0 |
added 150 characters in body
|
Mar 20, 2013 at 16:39 | comment | added | Zoom_v | dumb rookie question : How can I do that in this code ? I notice it would be within another static method. Sorry, that's probably a very dumb question. | |
Mar 20, 2013 at 16:02 | comment | added | Phil Hawthorn | aah, shameful attempt by me to score booty - not even OP's own code :) | |
Mar 20, 2013 at 15:40 | comment | added | Jesse Altman | Yes, this should be a static method. Sorry I missed that when I originally wrote that stuff up in the other question @Zoom_v. | |
Mar 20, 2013 at 15:21 | history | answered | Phil Hawthorn | CC BY-SA 3.0 |