3 * Copyright (C) 2015 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.
10 package eu
.etaxonomy
.taxeditor
.httpinvoker
;
12 import org
.junit
.Before
;
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
;
24 public abstract class RemotingSessionAwareTest
extends BaseRemotingTest
{
26 protected CdmTransientEntityCacher cacher
;
27 protected ICdmEntitySessionEnabled sessionOwner
;
28 protected ICdmEntitySession cdmEntitySession
;
31 public void initializeSession() {
32 sessionOwner
= new MockSessionOwner();
33 cdmEntitySession
= cdmEntitySessionManager
.newSession(sessionOwner
, true);
34 cacher
= getCacher(sessionOwner
);