Class SnapshotOperationTest
java.lang.Object
com.e1c.g5.v8.dt.internal.snapshot.SnapshotOperationTest
Tests for
ISnapshotOperation
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DerivedDataManagerMock
protected final IDerivedDataManagerProvider
protected final IDtProjectManager
protected final IDtSnapshotManager
protected final ISnapshotManager
protected final WorkspaceOrchestratorMock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.eclipse.core.resources.IProject
makeProject
(String name) Creates a newIProject
mock with the given name.void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
-
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 newIProject
mock with the given name. The project is accessible and open.- Parameters:
name
- the project name, cannot benull
- Returns:
- the new project mock, never
null
-