コード例 #1
0
 @Test
 public void sayHelloTest() {
   HelloDTO hello = client.sayHello("loki2302");
   assertNotNull(hello);
   assertEquals("Hello loki2302!", hello.message);
   assertEquals("loki2302", hello.name);
 }
コード例 #2
0
 @Test
 public void addNumbersTest() {
   AddNumbersRequestDTO addNumbersRequest = new AddNumbersRequestDTO();
   addNumbersRequest.numberA = 2;
   addNumbersRequest.numberB = 3;
   AddNumbersResponseDTO response = client.addNumbers(addNumbersRequest);
   assertNotNull(response);
   assertEquals(2, response.numberA);
   assertEquals(3, response.numberB);
   assertEquals(5, response.result);
 }