• kavya g 3
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies
Hii Floks

I have written a simple test class and getting this error "Method must define a body" @line 4

code:
@istest
 public class testcontactsearch 
{
@istest  public static void testsearchForContacts();
    {
        contactsearch CS= new contactsearch(firstname='kavya');
        system.assertEquals('kavya', c.firstname);
        
    }
}

Thanx in Advance
 
Hii Floks

I have written a simple test class and getting this error "Method must define a body" @line 4

code:
@istest
 public class testcontactsearch 
{
@istest  public static void testsearchForContacts();
    {
        contactsearch CS= new contactsearch(firstname='kavya');
        system.assertEquals('kavya', c.firstname);
        
    }
}

Thanx in Advance
 

Hi All,

 

I am having trouble trying to access the Billing Address standard field on an Account object and I am

looking for some help.

 

I am using the following in a visualforce page:

 

{!opportunity.Account.BillingAddress}

 

but this gives me an exception saying "invalid field"? but I do not have any trouble accessing, for example:

the lead_source stabdard field:

 

{!opportunity.Account.PersonLeadSource} 

 

I am aware this may be somthing simple so would appreciate any pointers.

 

Thanks

  • October 29, 2009
  • Like
  • 0