BaseRemotingTest, RemotingSessionAwareTest : made abstract since there are not runnab...
[taxeditor.git] / eu.etaxonomy.taxeditor.test / src / test / java / eu / etaxonomy / taxeditor / httpinvoker / RemotingSessionAwareTest.java
1 // $Id$
2 /**
3 * Copyright (C) 2015 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 package eu.etaxonomy.taxeditor.httpinvoker;
11
12 import org.junit.Before;
13
14 import eu.etaxonomy.taxeditor.remoting.cache.CdmTransientEntityCacher;
15 import eu.etaxonomy.taxeditor.session.ICdmEntitySession;
16 import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
17 import eu.etaxonomy.taxeditor.session.MockSessionOwner;
18
19 /**
20 * @author cmathew
21 * @date 12 Jun 2015
22 *
23 */
24 public abstract class RemotingSessionAwareTest extends BaseRemotingTest {
25
26 protected CdmTransientEntityCacher cacher;
27 protected ICdmEntitySessionEnabled sessionOwner;
28 protected ICdmEntitySession cdmEntitySession;
29
30 @Before
31 public void initializeSession() {
32 sessionOwner = new MockSessionOwner();
33 cdmEntitySession = cdmEntitySessionManager.newSession(sessionOwner, true);
34 cacher = getCacher(sessionOwner);
35 }
36 }