test
Class ListenersTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.ListenersTest
All Implemented Interfaces:
junit.framework.Test

public class ListenersTest
extends junit.framework.TestCase

Test the event Listeners

Creation date: 04-Nov-2005

Author:
Ga�l Monfort (monfort@run.montefiore.ulg.ac.be)

Constructor Summary
ListenersTest()
           
 
Method Summary
 void testaddremoveLSP()
          check the number of listeners in the domain, start algorithms, add a explicit route lsp in the domain, route a second lsp and check that the right route is taken (that the first lsp is added in the algorithm specific database)
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListenersTest

public ListenersTest()
Method Detail

testaddremoveLSP

public void testaddremoveLSP()
                      throws NodeAlreadyExistException,
                             NodeNotFoundException,
                             LspAlreadyExistException,
                             LinkCapacityExceededException,
                             NoRouteToHostException,
                             RoutingException,
                             LinkNotFoundException,
                             LinkAlreadyExistException,
                             LocalDatabaseException,
                             InvalidPathException,
                             DiffServConfigurationException,
                             LspNotFoundException,
                             AlgorithmInitialisationException
check the number of listeners in the domain, start algorithms, add a explicit route lsp in the domain, route a second lsp and check that the right route is taken (that the first lsp is added in the algorithm specific database)

Throws:
NodeAlreadyExistException
NodeNotFoundException
LspAlreadyExistException
LinkCapacityExceededException
NoRouteToHostException
RoutingException
LinkNotFoundException
LinkAlreadyExistException
LocalDatabaseException
InvalidPathException
DiffServConfigurationException
LspNotFoundException
AlgorithmInitialisationException


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.