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