You need to sign in to do that
Don't have an account?

Test Method {get; set}
Hi,
I am new in salesforce and I'm working on my first test code.
Can I have a test method example for some code below:
public class Myclass { public List< Something__c> Something { get; set; } public Myclass() { Something=[SELECT Name, Something__r.Name FROM Somethings__c WHERE Somethings__r.ID = :ApexPages.currentPage().getParameters().get('id') ]; } }
Any help would be greatly appreciated.
Have you looked at any resources at all ? I can recommend the apex documentation and and introductcion to apex code test methods.
All Answers
Have you looked at any resources at all ? I can recommend the apex documentation and and introductcion to apex code test methods.
Thank you !