1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
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.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.taxeditor.operation;
|
12
|
|
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;
|
19
|
|
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;
|
26
|
|
27
|
/**
|
28
|
* @author n.hoffmann
|
29
|
* @created 15.04.2009
|
30
|
* @version 1.0
|
31
|
*/
|
32
|
public abstract class BaseOperationTest extends RemotingSessionAwareTest {
|
33
|
|
34
|
public static final IUndoContext undoContext = null;
|
35
|
|
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;
|
41
|
|
42
|
protected static AbstractOperation operation;
|
43
|
|
44
|
@Before
|
45
|
public void initializeOperations() {
|
46
|
RemotingCdmUpdateOperation.throwExceptions = true;
|
47
|
}
|
48
|
|
49
|
}
|