fr.paris5.shaman.insight.operation
Class PublicationOperationServerTest

fr.paris5.shaman.system.AbstractServerTest
  |
  +--fr.paris5.shaman.insight.operation.PublicationOperationServerTest

public class PublicationOperationServerTest
extends AbstractServerTest

Performs a full integration test between Legend and Insight, based on Publication creation.

Version:
$Id: PublicationOperationServerTest.java,v 1.4 2002/07/25 13:18:09 caillette Exp $
Author:
Laurent Caillette

Inner classes inherited from class fr.paris5.shaman.system.AbstractServerTest
AbstractServerTest.MyServerTestSupportUser
 
Field Summary
private static java.lang.String[] DIR2_EXPECTED_FRAGMENT_PATHS
           
private  InsightManager insightManager
           
private  OperationCombiner operationCombiner
           
private  java.lang.String OWNER_TOPIC_FQNAME
           
private  java.lang.String OWNER_TOPIC_NAME
           
private  Topic owningTopic
           
private static java.lang.String PUTFILES_TARGET
           
private static java.util.Set REQUIRED_SERVERS
           
private  Topic root
           
private static java.lang.String SCRIPT_NAME
           
private  Publication testCreatePublicationOperationLastResult
          Some kind of global variable for storing result of last testCreatePublicationOperation() call.
 
Fields inherited from class fr.paris5.shaman.system.AbstractServerTest
serverTestSupport, supportUser
 
Constructor Summary
PublicationOperationServerTest(java.lang.String name)
           
 
Method Summary
(package private) static void ()
           
private  void checkFragmentsAllHere(java.lang.String[] expectedPaths, Fragment[] fragments)
           
 void doSetUp()
          Override for doing things in derived classes.
protected  void doTearDown()
          Override for doing things in derived classes.
 java.util.Set getRequiredServers()
          Override to require less servers than all servers.
static void main(java.lang.String[] args)
           
private  void setupTopics()
           
static junit.framework.Test suite()
           
private  void teardownTopics()
           
 void testCreatePublicationOperation()
           
 void testGetPublicationFragments1()
           
 void testGetPublicationFragments2()
           
 void testStateUpdate()
           
 void testUpdateTopicDefault()
           
 
Methods inherited from class fr.paris5.shaman.system.AbstractServerTest
getAntProject, getAntUserProperties, setUp, tearDown
 

Field Detail

DIR2_EXPECTED_FRAGMENT_PATHS

private static final java.lang.String[] DIR2_EXPECTED_FRAGMENT_PATHS

OWNER_TOPIC_NAME

private final java.lang.String OWNER_TOPIC_NAME

OWNER_TOPIC_FQNAME

private final java.lang.String OWNER_TOPIC_FQNAME

testCreatePublicationOperationLastResult

private Publication testCreatePublicationOperationLastResult
Some kind of global variable for storing result of last testCreatePublicationOperation() call. It is used because a JUnit test method cannot return a value.

PUTFILES_TARGET

private static final java.lang.String PUTFILES_TARGET

SCRIPT_NAME

private static final java.lang.String SCRIPT_NAME

REQUIRED_SERVERS

private static final java.util.Set REQUIRED_SERVERS

operationCombiner

private OperationCombiner operationCombiner

insightManager

private InsightManager insightManager

root

private Topic root

owningTopic

private Topic owningTopic
Constructor Detail

PublicationOperationServerTest

public PublicationOperationServerTest(java.lang.String name)
Method Detail

testCreatePublicationOperation

public void testCreatePublicationOperation()

testGetPublicationFragments2

public void testGetPublicationFragments2()

testUpdateTopicDefault

public void testUpdateTopicDefault()

testGetPublicationFragments1

public void testGetPublicationFragments1()

testStateUpdate

public void testStateUpdate()

checkFragmentsAllHere

private void checkFragmentsAllHere(java.lang.String[] expectedPaths,
                                   Fragment[] fragments)

static void ()

getRequiredServers

public java.util.Set getRequiredServers()
Description copied from class: AbstractServerTest
Override to require less servers than all servers.
Overrides:
getRequiredServers in class AbstractServerTest
Following copied from class: fr.paris5.shaman.system.AbstractServerTest
Returns:
A Map containg server keys as defined in ServerSystem.

doSetUp

public void doSetUp()
Description copied from class: AbstractServerTest
Override for doing things in derived classes. Called at the end of setUp.
Overrides:
doSetUp in class AbstractServerTest

doTearDown

protected void doTearDown()
Description copied from class: AbstractServerTest
Override for doing things in derived classes. Called at the end of tearDown.
Overrides:
doTearDown in class AbstractServerTest

setupTopics

private void setupTopics()

teardownTopics

private void teardownTopics()

suite

public static junit.framework.Test suite()

main

public static void main(java.lang.String[] args)


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.