org.ourgrid.common.security
Class KeyToolWrapperTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.common.security.KeyToolWrapperTest
All Implemented Interfaces:
junit.framework.Test, CommonTest, FastTest, PreCommitTest, SelectiveTest, StressTest

public class KeyToolWrapperTest
extends junit.framework.TestCase
implements CommonTest

This class implemetns the test of KeyToolWrapper.


Constructor Summary
KeyToolWrapperTest(java.lang.String s)
          This method constructs a new instance of this TestCase.
 
Method Summary
static void main(java.lang.String[] args)
          The main method to bring the test runner up.
protected  void setUp()
           
protected  void tearDown()
           
 void testGenerateKeyNegativeSize()
          This method test the Key Generation functionality passing a validity equals to zero and a negative keysize
 void testGenerateKeyNegativeValidity()
          This method test the Key Generation functionality passing a negative validity
 void testGenerateKeyOverSize()
          This method test the Key Generation functionality passing a validity equals to zero and a oversized unsupported keysize
 void testGenerateKeyRandomSize()
          This method test the Key Generation functionality passing a random keysize
 void testGenerateKeyZeroValidity()
          This method test the Key Generation functionality passing a validity equals to zero
 
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
 

Constructor Detail

KeyToolWrapperTest

public KeyToolWrapperTest(java.lang.String s)
This method constructs a new instance of this TestCase.

Parameters:
s - The name of the TestCase class.
Method Detail

setUp

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

tearDown

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

testGenerateKeyNegativeValidity

public void testGenerateKeyNegativeValidity()
This method test the Key Generation functionality passing a negative validity


testGenerateKeyZeroValidity

public void testGenerateKeyZeroValidity()
This method test the Key Generation functionality passing a validity equals to zero


testGenerateKeyOverSize

public void testGenerateKeyOverSize()
This method test the Key Generation functionality passing a validity equals to zero and a oversized unsupported keysize


testGenerateKeyNegativeSize

public void testGenerateKeyNegativeSize()
This method test the Key Generation functionality passing a validity equals to zero and a negative keysize


testGenerateKeyRandomSize

public void testGenerateKeyRandomSize()
This method test the Key Generation functionality passing a random keysize


main

public static void main(java.lang.String[] args)
The main method to bring the test runner up.

Parameters:
args -