test
Class DomaintTest

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

public class DomaintTest
extends junit.framework.TestCase

Test the Domain methods

Creation date: 9-Jan-2005 18:07:44

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)

Constructor Summary
DomaintTest()
           
 
Method Summary
 void testAddLink()
          Test add link on test-domain1.xml
 void testAddLink2()
          Create a new domain and add two links.
 void testAddLsp()
          Add a LSP in a domain with existings LSPs
 void testAddLsp2()
          Add a LSP in a domain without MPLS section
 void testAddRemoveLsp()
          Add and remove a LSP from a domain
 void testGetIgpLink()
          Test access to the LinkIgp in a DomainImpl
 void testGetLink()
          Test Access to the Link in a Domain
 void testInOutLinks()
           
 void testRemoveLink()
          Remove a link from test-domain1.xml
 
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

DomaintTest

public DomaintTest()
Method Detail

testGetLink

public void testGetLink()
                 throws LinkNotFoundException,
                        InvalidDomainException,
                        java.io.FileNotFoundException
Test Access to the Link in a Domain

Throws:
LinkNotFoundException
InvalidDomainException
java.io.FileNotFoundException

testGetIgpLink

public void testGetIgpLink()
                    throws LinkNotFoundException,
                           InvalidDomainException,
                           java.io.FileNotFoundException
Test access to the LinkIgp in a DomainImpl

Throws:
LinkNotFoundException
InvalidDomainException
java.io.FileNotFoundException

testAddLsp

public void testAddLsp()
                throws LinkNotFoundException,
                       LspNotFoundException,
                       NodeNotFoundException,
                       LinkCapacityExceededException,
                       LspAlreadyExistException,
                       InvalidDomainException,
                       java.io.FileNotFoundException,
                       DiffServConfigurationException
Add a LSP in a domain with existings LSPs

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

testAddLsp2

public void testAddLsp2()
                 throws LinkNotFoundException,
                        LspNotFoundException,
                        NodeNotFoundException,
                        LinkCapacityExceededException,
                        LspAlreadyExistException,
                        InvalidDomainException,
                        java.io.FileNotFoundException,
                        DiffServConfigurationException
Add a LSP in a domain without MPLS section

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

testAddRemoveLsp

public void testAddRemoveLsp()
                      throws LspNotFoundException,
                             LinkNotFoundException,
                             LinkCapacityExceededException,
                             NodeNotFoundException,
                             LspAlreadyExistException,
                             DiffServConfigurationException,
                             InvalidPathException,
                             InvalidDomainException,
                             java.io.FileNotFoundException
Add and remove a LSP from a domain

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

testAddLink

public void testAddLink()
                 throws LspNotFoundException,
                        LinkAlreadyExistException,
                        NodeNotFoundException,
                        InvalidDomainException,
                        java.io.FileNotFoundException
Test add link on test-domain1.xml

Throws:
LspNotFoundException
LinkAlreadyExistException
NodeNotFoundException
InvalidDomainException
java.io.FileNotFoundException

testAddLink2

public void testAddLink2()
                  throws LinkAlreadyExistException,
                         NodeNotFoundException,
                         NodeAlreadyExistException
Create a new domain and add two links.

Throws:
LinkAlreadyExistException
NodeNotFoundException
NodeAlreadyExistException

testRemoveLink

public void testRemoveLink()
                    throws LinkNotFoundException,
                           InvalidDomainException,
                           java.io.FileNotFoundException
Remove a link from test-domain1.xml

Throws:
LinkNotFoundException
InvalidDomainException
java.io.FileNotFoundException

testInOutLinks

public void testInOutLinks()
                    throws NodeAlreadyExistException,
                           NodeNotFoundException,
                           LinkAlreadyExistException,
                           LinkNotFoundException
Throws:
NodeAlreadyExistException
NodeNotFoundException
LinkAlreadyExistException
LinkNotFoundException


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