org.hackystat.sensorshell.usermap
Class TestUserMap

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.hackystat.sensorshell.usermap.TestUserMap
All Implemented Interfaces:
junit.framework.Test

public class TestUserMap
extends junit.framework.TestCase

A test case class to test the UserMap class. It makes sure that instantiation, and therefore formatting of the UserMap.xml file, is done correctly. It also ensures that it correctly provides its core functionality by testing to see that it gives back a dummy Hackystat value for a given dummy tool account.

Author:
Julie Ann Sakuda

Constructor Summary
TestUserMap()
           
 
Method Summary
 void testCaseInsensitiveRetrievals()
          Test that the tool and toolaccount in the user map are case-insensitive on retrieval.
 void testMap()
          Test the UserMap class and the formatting of the UserMap.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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestUserMap

public TestUserMap()
Method Detail

testMap

public void testMap()
             throws java.lang.Exception
Test the UserMap class and the formatting of the UserMap.xml.

Throws:
java.lang.Exception - if errors occur.

testCaseInsensitiveRetrievals

public void testCaseInsensitiveRetrievals()
                                   throws java.lang.Exception
Test that the tool and toolaccount in the user map are case-insensitive on retrieval.

Throws:
java.lang.Exception - if an error occurs.