@Before public void setUp() throws Exception { // Prepare object object = new TestObject(); object.setId(TEST_ID); object.setRevision(TEST_REV); object.setName(TEST_NAME); // Prepare handler handler = new TestServiceHandler(); }
@Test public void testTest() throws Exception { TestObject returnValue = handler.test(object); assertNull(object.getText()); assertEquals(returnValue.getText(), TestServiceHandler.testText); }