Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 3679

Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.

6 votes

Apex Code Coverage: Test classes are included with 0% in overall code coverage calculation

I'm guessing you'd want to move the FooMock definition to its own .class file. Keep only @isTest declared methods/classes in your test class file. Or, perhaps that method needs to be declared static …
Dave Eckblad's user avatar
3 votes
1 answer
318 views

Could someone show me a pattern to unit testing creation of a Partner record linking Opp<>Ac...

I'm not having any luck googling this and my google-fu is typically "Awesome." Do note we're talking about Partner object, not OpportunityPartner. I'm using system.RunAs() to simulate a normal sales …
Dave Eckblad's user avatar
1 vote
Accepted

Could someone show me a pattern to unit testing creation of a Partner record linking Opp<>Ac...

You just can't create Parnter objects via Apex unless the user has 'View All Data' permissions. I cannot write a unit test that appropriately mimics a standard sales user's creation of a partner. …
Dave Eckblad's user avatar
6 votes

Onblur issue on text box autocomplete..?

I'm finding it hard to interpret your question. Can you provide more code examples? I think you're using blur() wrong. Wouldn't you want to use a typing timer? Something that queries for auto-complet …
Dave Eckblad's user avatar