Revision 4360
Added by daigle over 15 years ago
NonAsciiCharacterTest.java | ||
---|---|---|
817 | 817 |
if (result) { |
818 | 818 |
|
819 | 819 |
if (!testDoc.equals(doc)) { |
820 |
System.out.println("doc :" + doc);
|
|
821 |
System.out.println("testDoc:" + testDoc);
|
|
820 |
debug("doc :" + doc);
|
|
821 |
debug("testDoc:" + testDoc);
|
|
822 | 822 |
} |
823 | 823 |
|
824 | 824 |
assertTrue(testDoc.equals(doc)); |
... | ... | |
856 | 856 |
String emlVersion, boolean result) { |
857 | 857 |
try { |
858 | 858 |
String sQuery = getTestEmlQuery(docId, emlVersion); |
859 |
debug("sQuery: " + sQuery); |
|
860 | 859 |
Reader queryReader = new StringReader(sQuery); |
861 | 860 |
Reader resultReader = m.query(queryReader); |
862 | 861 |
String queryResult = IOUtil.getAsString(resultReader, true); |
863 | 862 |
if (result) { |
864 | 863 |
if (!queryResult.contains(testTitle)) { |
865 |
System.out.println("queryResult: " + queryResult);
|
|
866 |
System.out.println("does not contain title: " + testTitle);
|
|
864 |
debug("queryResult: " + queryResult);
|
|
865 |
debug("does not contain title: " + testTitle);
|
|
867 | 866 |
} |
868 | 867 |
|
869 | 868 |
assertTrue(queryResult.contains(testTitle)); |
Also available in: Unified diff
Add debug statements