예제 #1
0
 public void testCausalChainHasMessageContaining() {
   assert ssh.causalChainHasMessageContaining(
           new SSHException("Session.connect: java.io.IOException: End of IO Stream Read"))
       .apply(" End of IO Stream Read");
   assert ssh.causalChainHasMessageContaining(
           new SSHException("Session.connect: java.net.SocketException: Connection reset"))
       .apply("java.net.Socket");
   assert !ssh.causalChainHasMessageContaining(new NullPointerException())
       .apply(" End of IO Stream Read");
 }