Class SystemTimeTest

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.broadleafcommerce.test.common.time.SystemTimeTest
All Implemented Interfaces:
junit.framework.Test

public class SystemTimeTest extends junit.framework.TestCase
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    void
    Test method for SystemTime.asCalendar().
    void
    Test method for SystemTime.asCalendar(boolean).
    void
    Test method for SystemTime.asDate().
    void
    Test method for SystemTime.asDate(boolean).
    void
    Test method for SystemTime.asMillis().
    void
    Test method for SystemTime.asMillis(boolean).
    void
    Test method for SystemTime.resetLocalTimeSource().
    void
    Test method for SystemTime.reset().
    void
    Test method for SystemTime.resetGlobalTimeSource().
    void
    Test method for SystemTime.resetLocalTimeSource().
    void
    Test method for SystemTime.setGlobalTimeSource(TimeSource).
    void
    Test method for SystemTime.setLocalTimeSource(TimeSource).

    Methods inherited from class junit.framework.TestCase

    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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SystemTimeTest

      public SystemTimeTest()
  • Method Details

    • setUp

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

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

      public void testSetGlobalTimeSource()
      Test method for SystemTime.setGlobalTimeSource(TimeSource).
    • testResetGlobalTimeSource

      public void testResetGlobalTimeSource()
      Test method for SystemTime.resetGlobalTimeSource().
    • testSetLocalTimeSource

      public void testSetLocalTimeSource()
      Test method for SystemTime.setLocalTimeSource(TimeSource).
    • testResetLocalTimeSource

      public void testResetLocalTimeSource()
      Test method for SystemTime.resetLocalTimeSource().
    • testLocalOverridesGlobal

      public void testLocalOverridesGlobal()
      Test method for SystemTime.resetLocalTimeSource().
    • testReset

      public void testReset()
      Test method for SystemTime.reset().
    • testAsMillis

      public void testAsMillis()
      Test method for SystemTime.asMillis().
    • testAsDate

      public void testAsDate()
      Test method for SystemTime.asDate().
    • testAsCalendar

      public void testAsCalendar()
      Test method for SystemTime.asCalendar().
    • testAsMillisBoolean

      public void testAsMillisBoolean()
      Test method for SystemTime.asMillis(boolean).
    • testAsCalendarBoolean

      public void testAsCalendarBoolean()
      Test method for SystemTime.asCalendar(boolean).
    • testAsDateBoolean

      public void testAsDateBoolean()
      Test method for SystemTime.asDate(boolean).