• funkid
  • NEWBIE
  • 0 Points
  • Member since 2009

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

Hi All,

          I am new to apex and SFDC development. I am trying to create a new account(tried contact too) using apex class and I am trying to run the following apex class on salesforce sandbox using the 'run test' button the code runs successfully but when I browse for that contact/account I am not seeing the data.

 

Could anyone explain what is going wrong here?

 

public class testAccountCopy {
public static testmethod void t1()
{
Account acct = new Account(Name = 'Siva Account', account_name_copy__c = 'Siva Account', account_category__c='Customer');
insert acct ;

}
}

  • September 03, 2009
  • Like
  • 0