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:
Restrictions:
- Container of elements should be contained in top object
- Top object mus contain only one collection container
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAutomatedContainmentCollectionChangeOrderFramework(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
Modifier and TypeMethodDescriptionprotected 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.voidExecutes 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 Details
-
projectManager
the V8 project manager
-
-
Constructor Details
-
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 Details
-
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
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
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
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
-