public class TestChoreService extends 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 InterruptedException
InterruptedExceptionpublic void testCancelChore()
throws InterruptedException
InterruptedExceptionpublic void testScheduledChoreConstruction()
public void testChoreServiceConstruction()
throws InterruptedException
InterruptedExceptionpublic void testFrequencyOfChores()
throws InterruptedException
InterruptedExceptionpublic void shutdownService(ChoreService service) throws InterruptedException
InterruptedExceptionpublic void testForceTrigger()
throws InterruptedException
InterruptedExceptionpublic void testCorePoolIncrease()
throws InterruptedException
InterruptedExceptionpublic void testCorePoolDecrease()
throws InterruptedException
InterruptedExceptionpublic void testNumberOfRunningChores()
throws InterruptedException
InterruptedExceptionpublic void testNumberOfChoresMissingStartTime()
throws InterruptedException
InterruptedExceptionpublic void testMaximumChoreServiceThreads()
throws InterruptedException
InterruptedExceptionpublic void testChangingChoreServices()
throws InterruptedException
InterruptedExceptionpublic void testTriggerNowFailsWhenNotScheduled()
throws InterruptedException
InterruptedExceptionpublic void testStopperForScheduledChores()
throws InterruptedException
InterruptedExceptionpublic void testShutdownCancelsScheduledChores()
throws InterruptedException
InterruptedExceptionpublic void testShutdownWorksWhileChoresAreExecuting()
throws InterruptedException
InterruptedExceptionpublic void testShutdownRejectsNewSchedules()
throws InterruptedException
InterruptedException