fr.paris5.shaman.system
Class AbstractServerTest
fr.paris5.shaman.system.AbstractServerTest
- Direct Known Subclasses:
- ImportFromLegendServerTest, InsightDataAccessServerTest, PingServerTest, PublicationOperationServerTest
- public abstract class AbstractServerTest
Base class for all server tests, requiring servers running in separate VMs
and careful handling of server(s) startup and termination.
This test implies a very particular behavior : in setUp()
and TearDown() methods, the
required
servers are
started up / shut down. All projects are built the first time
an instance of AbstractServerTest is ran.
- Version:
- $Id: AbstractServerTest.java,v 1.5 2002/07/10 13:47:45 caillette Exp $
- Author:
- Laurent Caillette
Method Summary |
protected void |
doSetUp()
Override for doing things in derived classes. |
protected void |
doTearDown()
Override for doing things in derived classes. |
AntProject |
getAntProject()
|
protected java.util.Properties |
getAntUserProperties()
Override to provide other properties than those defined in
TestConstants.DEFAULT_ANTUSERPROPERTIES for the
bunch of build-startup-stop tasks required by this test. |
java.util.Set |
getRequiredServers()
Override to require less servers than all servers. |
void |
setUp()
|
void |
tearDown()
|
supportUser
private final AbstractServerTest.MyServerTestSupportUser supportUser
serverTestSupport
protected final ServerTestSupport serverTestSupport
AbstractServerTest
public AbstractServerTest(java.lang.String name)
doSetUp
protected void doSetUp()
- Override for doing things in derived classes. Called at the end
of setUp.
doTearDown
protected void doTearDown()
- Override for doing things in derived classes. Called at the end
of tearDown.
getRequiredServers
public java.util.Set getRequiredServers()
- Override to require less servers than all servers.
- Returns:
- A Map containg server keys as defined in
ServerSystem
.
getAntUserProperties
protected java.util.Properties getAntUserProperties()
- Override to provide other properties than those defined in
TestConstants.DEFAULT_ANTUSERPROPERTIES
for the
bunch of build-startup-stop tasks required by this test.
- Returns:
-
getAntProject
public AntProject getAntProject()
setUp
public final void setUp()
tearDown
public final void tearDown()
Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.