test
Class SimplifiedDomainTest

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

public class SimplifiedDomainTest
extends junit.framework.TestCase

Test the Simplified Domain functionalities

Creation date: 26-Jan-2005 11:58:46

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

Constructor Summary
SimplifiedDomainTest()
           
 
Method Summary
 void testBuildSimplifiedTopology()
          Test build a SimplifiedDomain from a Domain
 void testInLinks()
          Check that getInLinks from a node is the same for the SimplifiedDomain and the Domain
 void testNonConsecutiveId()
          Test creation of SimplifiedDomain on a Domain with non consecutive id.
 void testOutLinks()
          Check that getOutLinks from a node is the same for the SimplifiedDomain and the Domain
 void testSimplifiedClone()
          Check clone function of a SimplifiedDomain
 
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

SimplifiedDomainTest

public SimplifiedDomainTest()
Method Detail

testBuildSimplifiedTopology

public void testBuildSimplifiedTopology()
                                 throws InvalidDomainException,
                                        java.io.FileNotFoundException
Test build a SimplifiedDomain from a Domain

Throws:
InvalidDomainException
java.io.FileNotFoundException

testNonConsecutiveId

public void testNonConsecutiveId()
                          throws InvalidDomainException,
                                 java.io.FileNotFoundException
Test creation of SimplifiedDomain on a Domain with non consecutive id. The Domain with non consecutive id is obtain by removing a node

Throws:
InvalidDomainException
java.io.FileNotFoundException

testOutLinks

public void testOutLinks()
                  throws InvalidDomainException,
                         java.io.FileNotFoundException
Check that getOutLinks from a node is the same for the SimplifiedDomain and the Domain

Throws:
InvalidDomainException
java.io.FileNotFoundException

testInLinks

public void testInLinks()
                 throws InvalidDomainException,
                        java.io.FileNotFoundException
Check that getInLinks from a node is the same for the SimplifiedDomain and the Domain

Throws:
InvalidDomainException
java.io.FileNotFoundException

testSimplifiedClone

public void testSimplifiedClone()
                         throws InvalidDomainException,
                                java.io.FileNotFoundException
Check clone function of a SimplifiedDomain

Throws:
InvalidDomainException
java.io.FileNotFoundException


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