Class SnapshotOperationTest
java.lang.Object
com.e1c.g5.v8.dt.internal.snapshot.SnapshotOperationTest
Tests for
ISnapshotOperation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DerivedDataManagerMockprotected final IDerivedDataManagerProviderprotected final IDtProjectManagerprotected final IDtSnapshotManagerprotected final ISnapshotManagerprotected final WorkspaceOrchestratorMock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.eclipse.core.resources.IProjectmakeProject(String name) Creates a newIProjectmock with the given name.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
dtProjectManager
-
derivedDataManagerMock
-
derivedDataManagerProvider
-
workspaceOrchestrator
-
snapshotManager
-
dtSnapshotManager
-
-
Constructor Details
-
SnapshotOperationTest
public SnapshotOperationTest()
-
-
Method Details
-
testCancelOperationTwice
public void testCancelOperationTwice() -
testStartOperationAfterCanceled
public void testStartOperationAfterCanceled() -
testCancelOperationAfterStarted
public void testCancelOperationAfterStarted() -
testEmptyOperation
public void testEmptyOperation() -
testSnapshotOperationsListeners
public void testSnapshotOperationsListeners() -
testCreateSingleSnapshot
public void testCreateSingleSnapshot() -
testRestoreSingleSnapshot
public void testRestoreSingleSnapshot() -
testCreateSnapshotAndRestoreSnapshot
public void testCreateSnapshotAndRestoreSnapshot() -
testCreateSnapshotAndRestoreSnapshotButCreationFailed
public void testCreateSnapshotAndRestoreSnapshotButCreationFailed() -
testCreateSnapshotAndRestoreSnapshotButRestorationFailed
public void testCreateSnapshotAndRestoreSnapshotButRestorationFailed() -
testCreateAndRestoreSnapshotForSameProject
public void testCreateAndRestoreSnapshotForSameProject() -
testCreateSnapshotAndSkipRestoration
public void testCreateSnapshotAndSkipRestoration() -
testSkipCreationAndRestoreSnapshot
public void testSkipCreationAndRestoreSnapshot() -
testSkipCreationAndRestoration
public void testSkipCreationAndRestoration() -
testCancelSnapshotOperationWithProgressMonitorBeforeStart
public void testCancelSnapshotOperationWithProgressMonitorBeforeStart() -
testCancelSnapshotOperationWithProgressMonitorBeforeCreation
public void testCancelSnapshotOperationWithProgressMonitorBeforeCreation() -
testCancelSnapshotOperationWithProgressMonitorBeforeRestoration
public void testCancelSnapshotOperationWithProgressMonitorBeforeRestoration() -
testCancelSnapshotOperationWithProgressMonitorBeforeFinish
public void testCancelSnapshotOperationWithProgressMonitorBeforeFinish() -
makeProject
Creates a newIProjectmock with the given name. The project is accessible and open.- Parameters:
name- the project name, cannot benull- Returns:
- the new project mock, never
null
-