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.

@fractastical updates

June 2009
M T W T F S S
« May   Sep »
1234567
891011121314
15161718192021
22232425262728
2930  
Follow

Get every new post delivered to your Inbox.

Join 951 other followers