Class FailoverClientTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
edu.internet2.middleware.grouperClient.failover.FailoverClientTest
All Implemented Interfaces:
junit.framework.Test

public class FailoverClientTest extends junit.framework.TestCase
 testing grouper client failover client:
 
 test affinity
 test active/active random
 test that first tier comes before second tier
 test serialize state to file
 test unserialize state from file
 test active/standby
 test errors
 test threads on startup
 test timeouts
 test minutes to keep errors
 
 
  • Constructor Details

    • FailoverClientTest

      public FailoverClientTest(String name)
      Parameters:
      name -
  • Method Details

    • main

      public static void main(String[] args)
      Parameters:
      args -
    • setUp

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

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

      public void testFailoverLogicSerialize()
      this tests that is saves to file periodically, and that it reads from file and maintains state
    • testFailoverLogicAffinity

      public void testFailoverLogicAffinity()
    • testFailoverLogicAffinityWithErrors

      public void testFailoverLogicAffinityWithErrors()
    • testFailoverActiveStandbyLogicAffinity

      public void testFailoverActiveStandbyLogicAffinity()
    • testFailoverLogicAffinityWithTimeout

      public void testFailoverLogicAffinityWithTimeout()
    • testFailoverLogicAffinityWithTimeoutStartup

      public void testFailoverLogicAffinityWithTimeoutStartup()