コード例 #1
0
 @Test
 public void say_valid() {
   IHelloService target = new HelloValidationService();
   String responseXml =
       target.say(ClassLoader.getSystemResourceAsStream("hello-validation-valid.xml"));
   assertThat(extract(responseXml, "/helloValidationResponse/message/text()"), is("Hello, JAXB!"));
 }
コード例 #2
0
ファイル: HelloServiceTest.java プロジェクト: null400/larvae
 @Test
 public void hello() {
   IHelloService service = new HelloService();
   assertThat(service.hello("CXF"), is("Hello, CXF!"));
 }
コード例 #3
0
 @Test(expected = RuntimeException.class)
 public void say_invalid() {
   IHelloService target = new HelloValidationService();
   target.say(ClassLoader.getSystemResourceAsStream("hello-validation-invalid.xml"));
 }