Package com._1c.g5.v8.dt.testing.compare
Class AbstractAutomatedContainmentCollectionChangeOrderFramework<C extends org.eclipse.emf.ecore.EObject>
- java.lang.Object
-
- com._1c.g5.v8.dt.testing.compare.AbstractAutomatedContainmentCollectionChangeOrderFramework<C>
-
public abstract class AbstractAutomatedContainmentCollectionChangeOrderFramework<C extends org.eclipse.emf.ecore.EObject> extends Object
Automated framework for containment collections testing.
Restrictions:- Container of elements should be contained in top object
- Top object mus contain only one collection container
-
-
Field Summary
Fields Modifier and Type Field Description protected IV8ProjectManagerprojectManagerthe V8 project manager
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAutomatedContainmentCollectionChangeOrderFramework(TestingWorkspace testingWorkspace, org.eclipse.emf.ecore.EStructuralFeature collectionElementNameFeature, org.eclipse.emf.ecore.EStructuralFeature collectionFeature, IComparisonManager comparisonManager, IV8ProjectManager projectManager, IWorkspaceOrchestrator workspaceOrchestrator, IBmModelManager bmModelManager, IDerivedDataManagerProvider derivedDataManagerProvider, ICheckRepository checkRepository)Creates new instance ofAbstractAutomatedContainmentCollectionChangeOrderFramework
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidclearDataSource(IV8Project v8Project, IBmTransaction transaction)Removes containers from data sourceprotected abstract CcreateCollectionContainer(String containerId, IBmTransaction transaction, Configuration configuration)Creates collection container within the configurationprotected abstract CgetContainerByTopObjectSymlink(IV8Project v8Project, String symlink)Gets container for given top object symlinkprotected abstract StringgetContainerTopObjectSymlink(IV8Project v8Project, C collectionContainer)Gets symlink for container top objectvoidrun()Executes tests.voidrunOnlyImportant()Executes only important tests This method executes all tests for modifications of one and two operations; tests of three operations are run only if positions stand one-by-one
-
-
-
Field Detail
-
projectManager
protected final IV8ProjectManager projectManager
the V8 project manager
-
-
Constructor Detail
-
AbstractAutomatedContainmentCollectionChangeOrderFramework
protected AbstractAutomatedContainmentCollectionChangeOrderFramework(TestingWorkspace testingWorkspace, org.eclipse.emf.ecore.EStructuralFeature collectionElementNameFeature, org.eclipse.emf.ecore.EStructuralFeature collectionFeature, IComparisonManager comparisonManager, IV8ProjectManager projectManager, IWorkspaceOrchestrator workspaceOrchestrator, IBmModelManager bmModelManager, IDerivedDataManagerProvider derivedDataManagerProvider, ICheckRepository checkRepository)
Creates new instance ofAbstractAutomatedContainmentCollectionChangeOrderFramework- Parameters:
testingWorkspace- workspace for tests execution, cannot benullcollectionElementNameFeature- elements name feature, cannot benullcollectionFeature- container collection feature, cannot benullcomparisonManager- the comparison manager, cannot benullprojectManager- the V8 project manager, cannot benulloperationOrchestrator- the operation orchestrator, cannot benullbmModelManager- the BM model manager, cannot benullderivedDataManagerProvider- the derived data manager provider, cannot benullcheckRepository- the check repository, cannot benull
-
-
Method Detail
-
run
public void run() throws org.eclipse.core.runtime.CoreExceptionExecutes tests.- Throws:
org.eclipse.core.runtime.CoreException- if tests fail
-
runOnlyImportant
public void runOnlyImportant() throws org.eclipse.core.runtime.CoreExceptionExecutes only important tests This method executes all tests for modifications of one and two operations; tests of three operations are run only if positions stand one-by-one- Throws:
org.eclipse.core.runtime.CoreException- if tests fail
-
clearDataSource
protected abstract void clearDataSource(IV8Project v8Project, IBmTransaction transaction)
Removes containers from data source- Parameters:
v8Project- the V8 project to remove containers from, cannot benulltransaction- transaction to use to remove containers, cannot benull
-
getContainerTopObjectSymlink
protected abstract String getContainerTopObjectSymlink(IV8Project v8Project, C collectionContainer)
Gets symlink for container top object- Parameters:
v8Project- the V8 project to search, cannot benullcollectionContainer- container to get top object symlink for, cannot benull- Returns:
- container top object symlink, never
null
-
createCollectionContainer
protected abstract C createCollectionContainer(String containerId, IBmTransaction transaction, Configuration configuration)
Creates collection container within the configuration- Parameters:
containerId- name of the container, cannot benulltransaction- transaction to use for object attachment, cannot benullconfiguration- configuration to add container in, cannot benull- Returns:
- created container, never
null
-
getContainerByTopObjectSymlink
protected abstract C getContainerByTopObjectSymlink(IV8Project v8Project, String symlink)
Gets container for given top object symlink- Parameters:
v8Project- the V8 project to search, cannot benullsymlink- symlink to get object for, cannot benull- Returns:
- container for given top object symlink, cannot be
null
-
-