Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ExternalResource r;
- private MyClass c;
- @Before
- public void setup() throws Exception {
- r = new ExternalResource();
- c = new MyClass();
- }
- @Test
- public void test() throws Exception {
- c.setA(r.performAction());
- assertTrue(c.isA());
- }
Advertisement
Add Comment
Please, Sign In to add comment