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 13538

A unit test is code that is written and executed to test a specific portion/unit of source code. Unit tests are class methods with the testMethod modifier or @isTest annotation and are usually placed in separate test classes annotated with the @isTest annotation. Code that is executed by unit tests is considered covered. At least 75% of an organization's codebase must be covered by unit tests and every trigger must have at least 1% unit test coverage.

-2 votes

Unit Test Problem

This is the answer for my Question just 'seeAllData' made me to cover 100% code coverage thanks every one for helping me to resolve issue. Here i covered NumberOfCons Trigger and emailCon1,emailCo …
Krish25's user avatar
-3 votes
2 answers
45 views

Help me Solve unit test

> Here is the class where i need unit test public class extCtrlEx { private final account acc; public extCtrlEx(ApexPages.StandardController controller) { this.acc=(account)controller.getRecord(); …
Krish25's user avatar
0 votes

Unit Test code coverage problem on Controller Class Solved thanks every one

This is similar to above Issue which resolved.I posted for reference. Controller Class public class RerenderEx1 { public Boolean Abool{set;get;} public Boolean Bbool{set;get;} public RerenderEx1() …
Krish25's user avatar
0 votes
2 answers
172 views

Unit Test Problem

My Test class not covering all the code in this class plz help me to resolve this Here it is my Class public class emailCon1 { public map<string,string> m{set;get;} public list<contact> con …
Krish25's user avatar
0 votes
1 answer
33 views

Help me to Resolve this Unit Test

here is the my Class public class HrtoCandidateHrs { public CandidateHr__c c; public HrtoCandidateHrs(ApexPages.StandardController controller) { c=new CandidateHr__c(); …
Krish25's user avatar
0 votes
2 answers
62 views

Unit Test code coverage problem

Here this is the class: public class relatedList { public account acc{set;get;} public contact con{set;get;} public string accname{set;get;} public void getdata() { acc=[s …
Krish25's user avatar
-3 votes
2 answers
637 views

Unit Test code coverage problem on Controller Class Solved thanks every one [closed]

Here is the Controller where i facing problem public class RerenderEx { public contact con{set;get;} public boolean Abool{set;get;} public boolean Bbool{set;get;} public RerenderEx() { …
Krish25's user avatar
0 votes
2 answers
690 views

Unit test does not cover lines of after update trigger

Here it is the Trigger on Event Activity trigger eventHistoryChecker on Event (after update) { for (Event evt : Trigger.new) { Event oldevt = Trigger.oldMap.get(evt.id); Stri …
Krish25's user avatar