You need to sign in to do that
Don't have an account?
Compass 1
Apex Class Testing
I am not able to run the test for my created Apex Classes.
The class name is not apearing on Apex Class Excution screen.
Code Coverage: 0%Your overall code coverage is currently 0%. To deploy code to production, you must have at least 75%.
Due to this I am not able to deploy my class on production. Please advise
The class name is not apearing on Apex Class Excution screen.
Code Coverage: 0%Your overall code coverage is currently 0%. To deploy code to production, you must have at least 75%.
Due to this I am not able to deploy my class on production. Please advise
public class topprospectsqry{
public Opportunity[] getOpportunityList() {
Opportunity[] opps = [SELECT
name,
account.name,
Facility__c,
Scope_Of_Work__c,
Pricing_Type__c,
Revenue__c,
Contract_Award_Date__c,
FROM
Opportunity
where
Top_Prospect__c='Yes'
order by Revenue__c desc
LIMIT 20
];
return opps;
}
public pageReference generateReport() {
return Page.Thirdpage;
}
}