public class TestChoreService
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestChoreService.ScheduledChoreSamples
A few ScheduledChore samples that are useful for testing with ChoreService
|
| Constructor and Description |
|---|
TestChoreService() |
| Modifier and Type | Method and Description |
|---|---|
void |
shutdownService(ChoreService service) |
void |
testCancelChore() |
void |
testChangingChoreServices() |
void |
testChoreServiceConstruction() |
void |
testCorePoolDecrease() |
void |
testCorePoolIncrease() |
void |
testForceTrigger() |
void |
testFrequencyOfChores() |
void |
testInitialChorePrecedence() |
void |
testMaximumChoreServiceThreads()
ChoreServices should never have a core pool size that exceeds the number of chores that have
been scheduled with the service.
|
void |
testNumberOfChoresMissingStartTime() |
void |
testNumberOfRunningChores() |
void |
testScheduledChoreConstruction() |
void |
testShutdownCancelsScheduledChores() |
void |
testShutdownRejectsNewSchedules() |
void |
testShutdownWorksWhileChoresAreExecuting() |
void |
testStopperForScheduledChores() |
void |
testTriggerNowFailsWhenNotScheduled() |
public void testInitialChorePrecedence()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testCancelChore()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testScheduledChoreConstruction()
public void testChoreServiceConstruction()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testFrequencyOfChores()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void shutdownService(ChoreService service) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testForceTrigger()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testCorePoolIncrease()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testCorePoolDecrease()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testNumberOfRunningChores()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testNumberOfChoresMissingStartTime()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testMaximumChoreServiceThreads()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testChangingChoreServices()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testTriggerNowFailsWhenNotScheduled()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testStopperForScheduledChores()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testShutdownCancelsScheduledChores()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testShutdownWorksWhileChoresAreExecuting()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void testShutdownRejectsNewSchedules()
throws java.lang.InterruptedException
java.lang.InterruptedException