2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.operation
;
12 import org
.eclipse
.core
.commands
.operations
.AbstractOperation
;
13 import org
.eclipse
.core
.commands
.operations
.IUndoContext
;
14 import org
.eclipse
.core
.runtime
.IAdaptable
;
15 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
16 import org
.eclipse
.core
.runtime
.NullProgressMonitor
;
17 import org
.junit
.Before
;
19 import eu
.etaxonomy
.cdm
.api
.conversation
.IConversationEnabled
;
20 import eu
.etaxonomy
.taxeditor
.httpinvoker
.RemotingSessionAwareTest
;
21 import eu
.etaxonomy
.taxeditor
.operation
.IPostOperationEnabled
;
22 import eu
.etaxonomy
.taxeditor
.operation
.RemotingCdmUpdateOperation
;
23 import eu
.etaxonomy
.taxeditor
.session
.ICdmEntitySessionEnabled
;
24 import eu
.etaxonomy
.taxeditor
.test
.MockConversationEnabled
;
31 public abstract class BaseOperationTest
extends RemotingSessionAwareTest
{
33 public static final IUndoContext undoContext
= null;
35 public static final IProgressMonitor monitor
= new NullProgressMonitor();
36 public static final IAdaptable info
= null;
37 public static final IPostOperationEnabled postOperation
= null;
38 public static final IConversationEnabled conversationEnabled
= new MockConversationEnabled();
39 public static final ICdmEntitySessionEnabled cdmEntitySessionEnabled
= null;
41 protected static AbstractOperation operation
;
44 public void initializeOperations() {
45 RemotingCdmUpdateOperation
.throwExceptions
= true;