View Javadoc
1   package org.dbunit.dataset;
2   
3   import junit.framework.TestCase;
4   
5   import org.dbunit.database.CachedResultSetTable;
6   import org.dbunit.database.ForwardOnlyResultSetTable;
7   import org.slf4j.Logger;
8   import org.slf4j.LoggerFactory;
9   
10  /**
11   * This class only logs out the toString() results for review, does not test
12   * anything. Currently only ITables that subclass AbstractTable.
13   * 
14   * @author Jeff Jensen jeffjensen AT users.sourceforge.net
15   * @author Last changed by: $Author$
16   * @version $Revision$ $Date$
17   * @since 2.4.8
18   */
19  public class ToStringViewTest extends TestCase {
20      private final Logger LOG = LoggerFactory.getLogger(ToStringViewTest.class);
21  
22      public void testForwardOnlyResultSetTable() {
23          // TODO existing test is an IT
24          ForwardOnlyResultSetTable table = null;
25          LOG.info("ForwardOnlyResultSetTable.toString()={}", table);
26      }
27  
28      public void testScrollableResultSetTable() throws Exception {
29          // TODO existing test is an IT
30          // ScrollableResultSetTableTest test =
31          // new ScrollableResultSetTableTest("the string");
32          ITable table = null; // test.createTable();
33          LOG.info("ScrollableResultSetTable.toString()={}", table);
34      }
35  
36      public void testCompositeTable() throws Exception {
37          CompositeTableTest test = new CompositeTableTest("the string");
38          ITable table = test.createTable();
39          LOG.info("CompositeTable.toString()={}", table);
40      }
41  
42      public void testDefaultTable() throws Exception {
43          DefaultTableTest test = new DefaultTableTest("the string");
44          ITable table = test.createTable();
45          LOG.info("DefaultTable.toString()={}", table);
46      }
47  
48      public void testCachedTable() {
49          // TODO no existing test to use
50          CachedTable table = null;
51          LOG.info("CachedTable.toString()={}", table);
52      }
53  
54      public void testCachedResultSetTable() {
55          // TODO existing test is an IT
56          CachedResultSetTable table = null;
57          LOG.info("CachedResultSetTable.toString()={}", table);
58      }
59  
60      public void testSortedTable() throws Exception {
61          SortedTableTest test = new SortedTableTest("the string");
62          ITable table = test.createTable();
63          LOG.info("SortedTable.toString()={}", table);
64      }
65  
66      public void testStreamingTable() {
67          // StreamingTable is not a public class
68          // StreamingTable table = null;
69          // LOG.info("StreamingTable.toString()={}", table);
70      }
71  
72      public void testXlsTable() {
73          // XlsTable is not a public class
74          // XlsTable table = null;
75          // LOG.info("XlsTable.toString()={}", table);
76      }
77  }