function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
HighlanderHighlander 

MyController

Could you please help me with the class:

public class MyController {

   public String getName() {
   return 'MyController';
   }

}

There is a warning message at the first line of the class (I use Eclipse).

SPDSPD
what warning do you get?
HighlanderHighlander
That the lines 3 and 4 are not covered
I  used first test example from "Visual force developer guide": 
http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_controller_getter_methods.htm 
SPDSPD
I think you must be making some mistake in writing..i tried the code on my eclipse...it didnt show any errors/warnings...
HighlanderHighlander
Thank's for your attantion. I'll try to re setup Eclipse.
bob_buzzardbob_buzzard

Not covered sounds like you have asked Eclipse to run the unit tests for that class and there aren't any.

 

Are you seeing this error when saving or when testing?