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