equal
deleted
inserted
replaced
69 |
69 |
70 private static void testUnknownHost() throws Exception { |
70 private static void testUnknownHost() throws Exception { |
71 String unknownHost = "Oja781nh2ev7vcvbajdg-Sda1-C"; |
71 String unknownHost = "Oja781nh2ev7vcvbajdg-Sda1-C"; |
72 OutputAnalyzer output = JInfoHelper.jinfoNoPid("med@" + unknownHost); |
72 OutputAnalyzer output = JInfoHelper.jinfoNoPid("med@" + unknownHost); |
73 assertNotEquals(output.getExitValue(), 0, "A non-zero exit code should be returned for invalid operation"); |
73 assertNotEquals(output.getExitValue(), 0, "A non-zero exit code should be returned for invalid operation"); |
74 output.shouldContain("UnknownHostException: " + unknownHost); |
74 output.shouldMatch(".*(Connection refused to host\\:|UnknownHostException\\:) " + unknownHost + ".*"); |
75 } |
75 } |
76 |
76 |
77 } |
77 } |