You are currently browsing the monthly archive for June 2009.
Not quite what you’d expect, but if you have something like this in your code:
public String foo {get; set;}
You can’t write either of these in your test suite:
String s = controller.getFoo();
controller.setFoo('bar');
Rather, you can do the following:
String s = controller.foo; controller.foo = 'bar';
If you really want to use the longer methods, you can handcode them as full functions (i.e. public String getFoo() {return foo}) instead of using APEX shorthand.
