org.acegisecurity.captcha
Class AlwaysTestAfterTimeInMillisCaptchaChannelProcessorTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.acegisecurity.captcha.AlwaysTestAfterTimeInMillisCaptchaChannelProcessorTests
All Implemented Interfaces:
junit.framework.Test

public class AlwaysTestAfterTimeInMillisCaptchaChannelProcessorTests
extends junit.framework.TestCase

WARNING! This test class make some assumptions concerning the compute speed! For example the two following instructions should be computed in the same millis or the test is not valid.

context.setHuman();
 assertFalse(alwaysTestAfterTimeInMillisCaptchaChannelProcessor.isContextValidConcerningHumanity(context));
 
This should be the case for most environements unless


Constructor Summary
AlwaysTestAfterTimeInMillisCaptchaChannelProcessorTests()
           
 
Method Summary
protected  void setUp()
           
 void testEqualsThresold()
           
 void testNewContext()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

AlwaysTestAfterTimeInMillisCaptchaChannelProcessorTests

public AlwaysTestAfterTimeInMillisCaptchaChannelProcessorTests()
Method Detail

setUp

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

testEqualsThresold

public void testEqualsThresold()

testNewContext

public void testNewContext()


Copyright © 2004-2008 Interface21, Inc. All Rights Reserved.