• Solution Archive
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hello,

I have a very basic class and i need to write test class for the same. Can anyone help me understand how to write a test class for this basic getter method in my class.

 

public with sharing class LinksForContacts {
    Public List<Contact> getAllLinks(){
       List<Contact> theLinks = [Select Title,Link_to_this_Idea__c from Contact];
       return theLinks;  
    }
}

 Thanks a lot!!!!!!!!!!!

Hi,

 

I would like to know who are the members of a workspace (library), how can i know this via a soql query?

Hello,

I have a very basic class and i need to write test class for the same. Can anyone help me understand how to write a test class for this basic getter method in my class.

 

public with sharing class LinksForContacts {
    Public List<Contact> getAllLinks(){
       List<Contact> theLinks = [Select Title,Link_to_this_Idea__c from Contact];
       return theLinks;  
    }
}

 Thanks a lot!!!!!!!!!!!