Class SystemTimeTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.broadleafcommerce.common.time.SystemTimeTest
- All Implemented Interfaces:
junit.framework.Test
public class SystemTimeTest
extends junit.framework.TestCase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsetUp()protected voidtearDown()voidTest method forSystemTime.asCalendar().voidTest method forSystemTime.asCalendar(boolean).voidTest method forSystemTime.asDate().voidTest method forSystemTime.asDate(boolean).voidTest method forSystemTime.asMillis().voidTest method forSystemTime.asMillis(boolean).voidTest method forSystemTime.resetLocalTimeSource().voidTest method forSystemTime.reset().voidTest method forSystemTime.resetGlobalTimeSource().voidTest method forSystemTime.resetLocalTimeSource().voidTest method forSystemTime.setGlobalTimeSource(TimeSource).voidTest method forSystemTime.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
-
Constructor Details
-
SystemTimeTest
public SystemTimeTest()
-
-
Method Details
-
setUp
- Overrides:
setUpin classjunit.framework.TestCase- Throws:
Exception
-
tearDown
- Overrides:
tearDownin classjunit.framework.TestCase- Throws:
Exception
-
testSetGlobalTimeSource
public void testSetGlobalTimeSource()Test method forSystemTime.setGlobalTimeSource(TimeSource). -
testResetGlobalTimeSource
public void testResetGlobalTimeSource()Test method forSystemTime.resetGlobalTimeSource(). -
testSetLocalTimeSource
public void testSetLocalTimeSource()Test method forSystemTime.setLocalTimeSource(TimeSource). -
testResetLocalTimeSource
public void testResetLocalTimeSource()Test method forSystemTime.resetLocalTimeSource(). -
testLocalOverridesGlobal
public void testLocalOverridesGlobal()Test method forSystemTime.resetLocalTimeSource(). -
testReset
public void testReset()Test method forSystemTime.reset(). -
testAsMillis
public void testAsMillis()Test method forSystemTime.asMillis(). -
testAsDate
public void testAsDate()Test method forSystemTime.asDate(). -
testAsCalendar
public void testAsCalendar()Test method forSystemTime.asCalendar(). -
testAsMillisBoolean
public void testAsMillisBoolean()Test method forSystemTime.asMillis(boolean). -
testAsCalendarBoolean
public void testAsCalendarBoolean()Test method forSystemTime.asCalendar(boolean). -
testAsDateBoolean
public void testAsDateBoolean()Test method forSystemTime.asDate(boolean).
-