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 IV8ProjectManager
projectManager
the V8 project manager
-
Constructor Summary
Constructors Modifier Constructor Description 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
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
clearDataSource(IV8Project v8Project, IBmTransaction transaction)
Removes containers from data sourceprotected abstract C
createCollectionContainer(String containerId, IBmTransaction transaction, Configuration configuration)
Creates collection container within the configurationprotected abstract C
getContainerByTopObjectSymlink(IV8Project v8Project, String symlink)
Gets container for given top object symlinkprotected abstract String
getContainerTopObjectSymlink(IV8Project v8Project, C collectionContainer)
Gets symlink for container top objectvoid
run()
Executes tests.void
runOnlyImportant()
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 benull
collectionElementNameFeature
- elements name feature, cannot benull
collectionFeature
- container collection feature, cannot benull
comparisonManager
- the comparison manager, cannot benull
projectManager
- the V8 project manager, cannot benull
operationOrchestrator
- the operation orchestrator, cannot benull
bmModelManager
- the BM model manager, cannot benull
derivedDataManagerProvider
- the derived data manager provider, cannot benull
checkRepository
- the check repository, cannot benull
-
-
Method Detail
-
run
public void run() throws org.eclipse.core.runtime.CoreException
Executes tests.- Throws:
org.eclipse.core.runtime.CoreException
- if tests fail
-
runOnlyImportant
public void runOnlyImportant() throws org.eclipse.core.runtime.CoreException
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- 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 benull
transaction
- 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 benull
collectionContainer
- 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 benull
transaction
- transaction to use for object attachment, cannot benull
configuration
- 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 benull
symlink
- symlink to get object for, cannot benull
- Returns:
- container for given top object symlink, cannot be
null
-
-