testData = new TestData();
testData.setUp();
typeName = testData.getTempTableName();
{// set up a couple versions
ISession session = testData.getConnectionPool().getSession();
defaultVersion = SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME;
version1 = "testMultiVersionSupport 1";
version2 = "testMultiVersionSupport 2";
try {
// delete them first if they already exist to ensure test case isolation
testData.deleteVersion(session, version1);
testData.deleteVersion(session, version2);
testData.createVersion(session, version1, defaultVersion);
testData.createVersion(session, version2, defaultVersion);
} finally {
session.dispose();
}
}
final boolean insertTestData = true;
testData.createTempTable(insertTestData);
ISession session = testData.getConnectionPool().getSession();
// make test type versioned
try {
testData.makeVersioned(session, typeName);
} finally {
session.dispose();
}
Map<String, Serializable> params = new HashMap<String, Serializable>(testData.getConProps());
ArcSDEDataStoreFactory factory = new ArcSDEDataStoreFactory();
defaultVersionDataStore = factory.createDataStore(params);