I have a custom setting used by a visual force page to load error messages based on a code value. In my test code for the page I have this statement
Integer howMany = Message__c.getAll().values().size();
I am calling the getall method to get the values one time from the custom setting and trying to find the size. It is returning me null which means that there is some limitation in using custom settings on a test method. Could some body tell me whether we can load all the values from custom settings on a test method? The scope of the custom setting is protected.