test
Class PreemptTest

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

public class PreemptTest
extends junit.framework.TestCase

Test preemption in DiffServ environnement

Creation date: 20-Oct-2005

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

Constructor Summary
PreemptTest()
           
 
Method Summary
 void test2PreemptNoBwSharing()
           
 void testNotDefinedPL()
           
 void testPreemptImpos()
          Try to add a lsp on a path with insufficent free bandwidth and check reservations on lsp links.
 void testPreemptNoBwSharing()
           
 void testUselessPreemption()
           
 
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

PreemptTest

public PreemptTest()
Method Detail

testPreemptImpos

public void testPreemptImpos()
                      throws NodeNotFoundException,
                             LspAlreadyExistException,
                             LspNotFoundException,
                             LinkNotFoundException,
                             DiffServConfigurationException,
                             InvalidPathException,
                             InvalidDomainException,
                             java.io.FileNotFoundException
Try to add a lsp on a path with insufficent free bandwidth and check reservations on lsp links.

Throws:
NodeNotFoundException
LspAlreadyExistException
LspNotFoundException
LinkNotFoundException
DiffServConfigurationException
InvalidPathException
InvalidDomainException
java.io.FileNotFoundException

test2PreemptNoBwSharing

public void test2PreemptNoBwSharing()
                             throws InvalidDomainException,
                                    java.io.FileNotFoundException,
                                    LspAlreadyExistException,
                                    DiffServConfigurationException,
                                    LspNotFoundException,
                                    LinkCapacityExceededException,
                                    LinkNotFoundException,
                                    NodeNotFoundException,
                                    InvalidPathException,
                                    TotemActionExecutionException
Throws:
InvalidDomainException
java.io.FileNotFoundException
LspAlreadyExistException
DiffServConfigurationException
LspNotFoundException
LinkCapacityExceededException
LinkNotFoundException
NodeNotFoundException
InvalidPathException
TotemActionExecutionException

testPreemptNoBwSharing

public void testPreemptNoBwSharing()
                            throws InvalidDomainException,
                                   java.io.FileNotFoundException,
                                   LspAlreadyExistException,
                                   DiffServConfigurationException,
                                   LspNotFoundException,
                                   LinkCapacityExceededException,
                                   LinkNotFoundException,
                                   NodeNotFoundException,
                                   InvalidPathException
Throws:
InvalidDomainException
java.io.FileNotFoundException
LspAlreadyExistException
DiffServConfigurationException
LspNotFoundException
LinkCapacityExceededException
LinkNotFoundException
NodeNotFoundException
InvalidPathException

testUselessPreemption

public void testUselessPreemption()
                           throws NodeNotFoundException,
                                  LspAlreadyExistException,
                                  LinkCapacityExceededException,
                                  DiffServConfigurationException,
                                  InvalidPathException,
                                  InvalidDomainException,
                                  java.io.FileNotFoundException,
                                  LspNotFoundException
Throws:
NodeNotFoundException
LspAlreadyExistException
LinkCapacityExceededException
DiffServConfigurationException
InvalidPathException
InvalidDomainException
java.io.FileNotFoundException
LspNotFoundException

testNotDefinedPL

public void testNotDefinedPL()
                      throws LspAlreadyExistException,
                             LinkCapacityExceededException,
                             NodeNotFoundException,
                             DiffServConfigurationException,
                             InvalidPathException,
                             InvalidDomainException,
                             java.io.FileNotFoundException,
                             LspNotFoundException
Throws:
LspAlreadyExistException
LinkCapacityExceededException
NodeNotFoundException
DiffServConfigurationException
InvalidPathException
InvalidDomainException
java.io.FileNotFoundException
LspNotFoundException


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