Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.dw;
 
 public enum RunMode {
    
Default run mode used by non-test services: will initialize everything normally
 
     FULL(falsetrue),
    
    
Light-weight test mode, in which no background tasks are run; service is marked as being run in test mode
    TEST_MINIMAL(truefalse),

    
"Heavy" test mode, in which all normal initialization is done, including start up of background tasks.
    TEST_FULL(truetrue);
    protected final boolean _testing;
    
    protected final boolean _runTasks;
    private RunMode(boolean isTestingboolean runTasks)
    {
         = isTesting;
         = runTasks;
    }
    public boolean isTesting() { return ; }
    
    public boolean shouldRunTasks() { return ; }
New to GrepCode? Check out our FAQ X