@Override public void setUp() throws Exception { super.setUp(); CorePlugin.getDefault() .getPreferenceStore() .setValue(BridgePointPreferencesStore.USE_DEFAULT_NAME_FOR_CREATION, false); Ooaofooa.setPersistEnabled(true); }
/* (non-Javadoc) * @see junit.framework.TestCase#setUp() */ protected void setUp() throws Exception { super.setUp(); if (!firstSetup) { String modelName = "testOAL1"; TestingUtilities.importTestingProjectIntoWorkspace("testOAL1"); project = ResourcesPlugin.getWorkspace().getRoot().getProject("testOAL1"); m_sys = getSystemModel(project.getName()); String modelRootId = Ooaofooa.createModelRootId(project, modelName, true); modelRoot = Ooaofooa.getInstance(modelRootId, true); } firstSetup = true; populateFunctionInstances(); populateBridgeInstances(); class Object_test1_c implements ClassQueryInterface_c { Object_test1_c(String id) { m_id = id; } private String m_id; public boolean evaluate(Object inst) { ModelClass_c selected = (ModelClass_c) inst; return selected.getKey_lett().equals(m_id); } } ModelClass_c diskObj = ModelClass_c.ModelClassInstance(modelRoot, new Object_test1_c("D_D")); // $NON-NLS-1$ ModelClass_c libObj = ModelClass_c.ModelClassInstance(modelRoot, new Object_test1_c("D_H")); // $NON-NLS-1$ populateTransformerInstances(diskObj, false); populateTransformerInstances(libObj, true); populateStateActionInstances(); populateMDAInstances(); }