/************************************************************************* * * * EJBCA Community: The OpenSource Certificate Authority * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package org.ejbca.ui.cli.service; import org.cesecore.util.EjbRemoteHelper; import org.ejbca.core.ejb.services.ServiceSessionRemote; /** * Common functions for the tests of the service command * * @version $Id: ServiceTestCase.java 19902 2014-09-30 14:32:24Z anatom $ */ public class ServiceTestCase { private ServiceSessionRemote serviceSession; protected ServiceSessionRemote getServiceSession() { if (serviceSession == null) { serviceSession = EjbRemoteHelper.INSTANCE.getRemoteSession(ServiceSessionRemote.class); } return serviceSession; } }