Skip to content

Instantly share code, notes, and snippets.

@awilmore
Created May 23, 2012 02:53
Show Gist options
  • Save awilmore/2772999 to your computer and use it in GitHub Desktop.
Save awilmore/2772999 to your computer and use it in GitHub Desktop.
Andrew's Get And Set Tester
import static com.iaglimited.testing.util.GetterSetterTestProvider.shouldSetAndGet;
import org.junit.Test;
import com.iaglimited.testing.util.GetterSetterTestFilter;
public class GetAndSetExampleTest {
@Test
public void shouldSupportCorectGetterSetterBehaviour() {
shouldSetAndGet(new SomeClassUnderTest(), new GetterSetterTestFilter() {
@Override
public boolean exclude(String name) {
return name.equals("SomeName");
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment