• Dhurav
  • NEWBIE
  • 0 Points
  • Member since 2011

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

How i can create the test class of this code................

 

  public List<String> availableFields {
        get {
        controller.addFields(new List<String>(bookFields));
        return new List<String>(bookFields);
        }
    }
  • December 21, 2011
  • Like
  • 0

Hi Guys,

Is thera any way I can got the site url from Apex Code?

I tried Site.getPrefix() , Site.getDomain() and getCurrentSiteUrl. but all of them return null.

Do I need setup some information after the site is ready.

Thanks in advance.

How i can create the test class of this code................

 

  public List<String> availableFields {
        get {
        controller.addFields(new List<String>(bookFields));
        return new List<String>(bookFields);
        }
    }
  • December 21, 2011
  • Like
  • 0