InputStream in = new FileInputStream("src/xml/insertOperationTest.xml"); IDataSet xmlDataSet = new XmlDataSet(in);
if (!(DatabaseEnvironment.getInstance() instanceof MSSQLServerEnvironment)){ InputStream in = new FileInputStream("src/xml/insertOperationTest.xml"); IDataSet xmlDataSet = new XmlDataSet(in);
    public void testExecute() throws Exception    {        InputStream in = new FileInputStream("src/xml/insertOperationTest.xml");        IDataSet xmlDataSet = new XmlDataSet(in);        ITable[] tablesBefore = DataSetUtils.getTables(_connection.createDataSet());        DatabaseOperation.INSERT.execute(_connection, xmlDataSet);        ITable[] tablesAfter = DataSetUtils.getTables(_connection.createDataSet());        assertEquals("table count", tablesBefore.length, tablesAfter.length);        for (int i = 0; i < tablesBefore.length; i++)        {            ITable table = tablesBefore[i];            String name = table.getTableMetaData().getTableName();            if (name.startsWith("EMPTY"))            {                assertEquals(name + "before", 0, table.getRowCount());            }        }        for (int i = 0; i < tablesAfter.length; i++)        {            ITable table = tablesAfter[i];            String name = table.getTableMetaData().getTableName();            if (name.startsWith("EMPTY"))            {                Assertion.assertEquals(xmlDataSet.getTable(name), table);            }        }    }