|
20 | 20 | import java.util.HashMap; |
21 | 21 | import java.util.Map; |
22 | 22 | import java.util.Set; |
23 | | -import java.util.logging.FileHandler; |
24 | | -import java.util.logging.Handler; |
25 | | -import java.util.logging.Logger; |
26 | | -import java.util.logging.Level; |
27 | 23 |
|
28 | | -import javax.xml.bind.JAXBContext; |
29 | 24 | import javax.xml.bind.JAXBException; |
30 | 25 |
|
31 | 26 | import static org.junit.Assert.assertEquals; |
|
39 | 34 | import org.junit.BeforeClass; |
40 | 35 | import org.junit.Test; |
41 | 36 |
|
| 37 | +import org.slf4j.Logger; |
| 38 | +import org.slf4j.LoggerFactory; |
| 39 | + |
42 | 40 | import com.marklogic.client.DatabaseClient; |
43 | 41 | import com.marklogic.client.DatabaseClientFactory; |
44 | 42 | import com.marklogic.client.DatabaseClientFactory.Authentication; |
45 | 43 | import com.marklogic.client.ResourceNotFoundException; |
46 | 44 | import com.marklogic.client.Transaction; |
47 | | -import com.marklogic.client.document.DocumentDescriptor; |
48 | 45 | import com.marklogic.client.document.DocumentManager.Metadata; |
49 | 46 | import com.marklogic.client.document.DocumentPage; |
50 | 47 | import com.marklogic.client.document.DocumentRecord; |
51 | 48 | import com.marklogic.client.document.DocumentWriteSet; |
52 | 49 | import com.marklogic.client.document.JSONDocumentManager; |
53 | 50 | import com.marklogic.client.document.TextDocumentManager; |
54 | 51 | import com.marklogic.client.document.XMLDocumentManager; |
55 | | -import com.marklogic.client.eval.EvalResultIterator; |
56 | | -import com.marklogic.client.eval.ServerEvaluationCall; |
57 | | -import com.marklogic.client.io.DOMHandle; |
58 | 52 | import com.marklogic.client.io.DocumentMetadataHandle; |
59 | 53 | import com.marklogic.client.io.Format; |
60 | 54 | import com.marklogic.client.io.JacksonHandle; |
|
74 | 68 | **/ |
75 | 69 | @FixMethodOrder(MethodSorters.NAME_ASCENDING) |
76 | 70 | public class BulkReadWriteTest { |
| 71 | + static final private Logger logger = LoggerFactory.getLogger(BulkReadWriteTest.class); |
77 | 72 | private static final int BATCH_SIZE = 100; |
78 | 73 | static final String DIRECTORY = "/cities/"; |
79 | 74 | private static final String COUNTRIES_FILE = "countryInfo.txt"; |
@@ -600,7 +595,7 @@ public void test_171() throws Exception{ |
600 | 595 | assertEquals("Count of documents inside of the transaction", 2, inTransactionResults.getTotalResults()); |
601 | 596 |
|
602 | 597 | }catch(Exception e){ |
603 | | - System.out.println(e.getMessage()); |
| 598 | + logger.error("Exception in test_171", e); |
604 | 599 | tstatus=true; |
605 | 600 | throw e; |
606 | 601 | }finally{ |
@@ -652,7 +647,7 @@ public void test_218() throws Exception{ |
652 | 647 | assertEquals("Count of documents in runtime db", 12, inRuntimeDbResults.getTotalResults()); |
653 | 648 | assertEquals("Count of documents in default db", 0, inDefaultDbResults.getTotalResults()); |
654 | 649 | }catch(Exception e){ |
655 | | - System.out.println(e.getMessage()); |
| 650 | + logger.error("Exception in test_218", e); |
656 | 651 | if(! committed){ |
657 | 652 | t1.rollback(); |
658 | 653 | } |
|
0 commit comments