Skip to content

Instantly share code, notes, and snippets.

@InfoSec812
Created January 11, 2017 03:04
Show Gist options
  • Select an option

  • Save InfoSec812/7f0be0c307fcf10ddd1f578c06a2873b to your computer and use it in GitHub Desktop.

Select an option

Save InfoSec812/7f0be0c307fcf10ddd1f578c06a2873b to your computer and use it in GitHub Desktop.
JaCoCo Groovy Madness
/**
* A {@link GroovyVerticle} which handles status requests
*/
class Status extends GroovyVerticle {
// JaCoCo Coverage report shows 3 of 6 branches missed on this logging definition!!!!
static final LOG = LoggerFactory.getLogger(Status.class.canonicalName)
static final CACHE_INTERVAL = 30 * 60
static final LinkedHashMap<String, Serializable> FAILED_STATE = [
ok: false,
status: 'One or more dependencies are in a failed state'
]
static final DOUBLE_PLUS_GOOD = [ok: true, status: 'Double plus good']
// SNIP . . .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment