org.ourgrid.gridmachine.services
Class GumSpecServicesTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.gridmachine.services.GumSpecServicesTest
All Implemented Interfaces:
junit.framework.Test, FastTest, PreCommitTest, SchedulerFastTest, SchedulerPreCommitTest, SelectiveTest, StressTest

public class GumSpecServicesTest
extends junit.framework.TestCase
implements SchedulerFastTest

This class is used to test the service of creating and validating gums.


Constructor Summary
GumSpecServicesTest()
           
 
Method Summary
 void setUp()
           
 void tearDown()
           
 void testBadUserAgentSpecWithoutPort()
          Tests the creation of a UserAgent gum from a GuMSpec, when it is not valid.
 void testFakeSpecServices()
          Tests the creating of a FakeGuM from a GuMSpec.
 void testGuMCreationWithoutType()
          Tests if a exception is throwaded with a GuMSpec, when it is not have type.
 void testUserAgentGuMCreationWithoutName()
          Tests if a exception is throwaded with a GuMSpec, when it is not have name.
 void testUserAgentSpecServices()
          Tests the creation of a UserAgent gum from a GuMSpec.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

GumSpecServicesTest

public GumSpecServicesTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testFakeSpecServices

public void testFakeSpecServices()
                          throws GumSpecificationException,
                                 java.net.MalformedURLException,
                                 java.rmi.RemoteException,
                                 java.rmi.NotBoundException
Tests the creating of a FakeGuM from a GuMSpec.

Throws:
GumSpecificationException
java.rmi.NotBoundException
java.rmi.RemoteException
java.net.MalformedURLException

testUserAgentSpecServices

public void testUserAgentSpecServices()
                               throws java.lang.Exception
Tests the creation of a UserAgent gum from a GuMSpec.

Throws:
GumSpecificationException - When the GuMSpec is invalid.
java.lang.Exception

testBadUserAgentSpecWithoutPort

public void testBadUserAgentSpecWithoutPort()
                                     throws java.net.MalformedURLException,
                                            java.rmi.RemoteException,
                                            java.rmi.NotBoundException
Tests the creation of a UserAgent gum from a GuMSpec, when it is not valid.

Throws:
java.rmi.NotBoundException
java.rmi.RemoteException
java.net.MalformedURLException

testGuMCreationWithoutType

public void testGuMCreationWithoutType()
                                throws java.net.MalformedURLException,
                                       java.rmi.RemoteException,
                                       java.rmi.NotBoundException
Tests if a exception is throwaded with a GuMSpec, when it is not have type.

Throws:
java.rmi.NotBoundException
java.rmi.RemoteException
java.net.MalformedURLException

testUserAgentGuMCreationWithoutName

public void testUserAgentGuMCreationWithoutName()
                                         throws java.net.MalformedURLException,
                                                java.rmi.RemoteException,
                                                java.rmi.NotBoundException
Tests if a exception is throwaded with a GuMSpec, when it is not have name.

Throws:
java.rmi.NotBoundException
java.rmi.RemoteException
java.net.MalformedURLException