コード例 #1
0
 @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();
 }
コード例 #2
0
 @Test
 public void testTest() throws Exception {
   TestObject returnValue = handler.test(object);
   assertNull(object.getText());
   assertEquals(returnValue.getText(), TestServiceHandler.testText);
 }