8b001a3ddf0a48c4b13f78b30a5cc82a210c4d9c.svn-base 1023 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package test.junitTest.sysmodel.DBdll;
  2. import junit.framework.TestCase;
  3. import org.apache.log4j.Logger;
  4. import test.junitTest.JunitInit;
  5. import com.persistence.DBdll.adapter.OracleAdapter;
  6. import com.sysmodel.datamodel.xmlmodel.able.MdpDataSource;
  7. import com.sysmodel.datamodel.xmlmodel.impl.SysModelImpl;
  8. public class TestOracleAdapter extends TestCase{
  9. @SuppressWarnings("unused")
  10. private final static Logger log = Logger.getLogger(TestOracleAdapter.class);
  11. @SuppressWarnings("unused")
  12. private JunitInit unit = null;
  13. protected void setUp() throws Exception {
  14. unit = new JunitInit();
  15. super.setUp();
  16. }
  17. protected void tearDown() throws Exception {
  18. super.tearDown();
  19. }
  20. @SuppressWarnings("unused")
  21. public void testGetXmlByTableName() {
  22. OracleAdapter OracleAdapter = new OracleAdapter();
  23. SysModelImpl sysmodel = SysModelImpl.getInstance();
  24. MdpDataSource MdpDataSource = sysmodel.getDataSourceByCode(1);
  25. String xmlDataModel = OracleAdapter.getXmlByTableName("sss", MdpDataSource, "");
  26. }
  27. }