Package com.e1c.g5.v8.dt.testing.check
Class CheckTestBase
- java.lang.Object
- 
- com.e1c.g5.v8.dt.testing.check.CheckTestBase
 
- 
- Direct Known Subclasses:
- CheckTemplateTest,- SingleProjectReadOnlyCheckTestBase
 
 public abstract class CheckTestBase extends Object Base implementation for the check tests
- 
- 
Field Summary
 - 
Constructor SummaryConstructors Constructor Description CheckTestBase()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanenableCleanUp()Cleanup flag definitionprotected StringgetCheckIdFromMarker(Marker marker, IDtProject project)Gets the check identifier from the markerprotected StringgetCheckIdFromMarker(String shortUid, org.eclipse.core.resources.IProject project)Gets the check identifier from the marker's short UIDprotected MarkergetFirstMarker(String checkId, Object objectIdOrObject, IDtProject project)Gets the first matching marker from the objectprotected MarkergetFirstNestedMarker(String checkId, Object objectIdOrObject, IDtProject project)Gets the first matching marker from the object or its containments/referncesprotected IBmObjectgetTopObjectByFqn(String fqn, IDtProject dtProject)protected LonggetTopObjectIdByFqn(String fqn, IDtProject dtProject)protected IDtProjectopenProjectAndWaitForValidationFinish(String configurationName)Imports the test EDT project from the standard test location and waits until all validation operations are finishedprotected voidwaitForDD(IDtProject project)
 
- 
- 
- 
Field Detail- 
testingWorkspacepublic TestingWorkspace testingWorkspace 
 - 
markerManager@Inject public IMarkerManager markerManager 
 - 
bmModelManager@Inject public IBmModelManager bmModelManager 
 - 
dtProjectManager@Inject public IDtProjectManager dtProjectManager 
 - 
orchestrator@Inject public IWorkspaceOrchestrator orchestrator 
 - 
checkRepository@Inject public ICheckRepository checkRepository 
 - 
derivedDataManagerProvider@Inject public IDerivedDataManagerProvider derivedDataManagerProvider 
 
- 
 - 
Method Detail- 
enableCleanUpprotected boolean enableCleanUp() Cleanup flag definition- Returns:
- True if the WS should be cleaned after each test
 
 - 
getCheckIdFromMarkerprotected String getCheckIdFromMarker(Marker marker, IDtProject project) Gets the check identifier from the marker- Parameters:
- marker- The marker to get check identifier from. May not be- null
- project- The target project. May not be- null
- Returns:
- The identifier of the check. May not be null
 
 - 
getCheckIdFromMarkerprotected String getCheckIdFromMarker(String shortUid, org.eclipse.core.resources.IProject project) Gets the check identifier from the marker's short UID- Parameters:
- marker- The marker to get check identifier from. May not be- null
- project- The target project. May not be- null
- Returns:
- The identifier of the check. May not be null
 
 - 
getFirstMarkerprotected Marker getFirstMarker(String checkId, Object objectIdOrObject, IDtProject project) Gets the first matching marker from the object- Parameters:
- checkId- The indentifier of the check. May not be- null
- objectIdOrObject- The object identifier. Accepts BM ids (Long), URI's of modules, URI of module in the form of String, or IBmObject directly. May not be- null
- project- The target project to get markers for. May not be- null
- Returns:
- The found marker if any. nullotherwise
 
 - 
getFirstNestedMarkerprotected Marker getFirstNestedMarker(String checkId, Object objectIdOrObject, IDtProject project) Gets the first matching marker from the object or its containments/refernces- Parameters:
- checkId- The indentifier of the check. May not be- null
- objectIdOrObject- The object identifier. Accepts BM ids (Long), URI's of modules, URI of module in the form of String, or IBmObject directly. May not be- null
- project- The target project to get markers for. May not be- null
- Returns:
- The found marker if any. nullotherwise
 
 - 
getTopObjectByFqnprotected IBmObject getTopObjectByFqn(String fqn, IDtProject dtProject) 
 - 
getTopObjectIdByFqnprotected Long getTopObjectIdByFqn(String fqn, IDtProject dtProject) 
 - 
openProjectAndWaitForValidationFinishprotected IDtProject openProjectAndWaitForValidationFinish(String configurationName) throws org.eclipse.core.runtime.CoreException Imports the test EDT project from the standard test location and waits until all validation operations are finished- Parameters:
- configurationName- The name of the test configuration. Should match the sub-folder name of the 'workspaces' folder
- Returns:
- The opened IDtProjectproject handle. May not benull
- Throws:
- org.eclipse.core.runtime.CoreException- In case of improper project start
 
 - 
waitForDDprotected void waitForDD(IDtProject project) 
 
- 
 
-