test/testlibrary/OutputAnalyzerTest.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/test/testlibrary/OutputAnalyzerTest.java Fri Sep 13 13:43:02 2013
--- new/test/testlibrary/OutputAnalyzerTest.java Fri Sep 13 13:43:02 2013
*** 170,176 ****
--- 170,193 ----
output.stderrShouldNotMatch(stderrPattern);
throw new Exception("shouldNotMatch() failed to throw exception");
} catch (RuntimeException e) {
// expected
}
+
+ {
+ String aaaa = "aaaa";
+ String result = output.firstMatch(aaaa);
+ if (!aaaa.equals(result)) {
+ throw new Exception("firstMatch(String) faild to match. Expected: " + aaaa + " got: " + result);
+ }
+ }
+
+ {
+ String aa = "aa";
+ String aa_grouped_aa = aa + "(" + aa + ")";
+ String result = output.firstMatch(aa_grouped_aa, 1);
+ if (!aa.equals(result)) {
+ throw new Exception("firstMatch(String, int) failed to match. Expected: " + aa + " got: " + result);
+ }
+ }
}
}
test/testlibrary/OutputAnalyzerTest.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File