@Test public void convert() { assertFalse(this.cut.canBeConvertedToTrue(null)); assertFalse(this.cut.canBeConvertedToTrue(false)); assertFalse(this.cut.canBeConvertedToTrue(Boolean.FALSE)); assertFalse(this.cut.canBeConvertedToTrue("hugo")); assertTrue(this.cut.canBeConvertedToTrue(true)); assertTrue(this.cut.canBeConvertedToTrue(Boolean.TRUE)); }
boolean canBeConvertedToTrue(Object retVal) { if (retVal == null) { return false; } if (!(retVal instanceof Boolean)) { return false; } return (boolean) retVal; }
SnapshotEscalator { boolean canBeConvertedToTrue(Object retVal) { if (retVal == null) { return false; } if (!(retVal instanceof Boolean)) { return false; } return (boolean) retVal; } }
SnapshotEscalator { boolean canBeConvertedToTrue(Object retVal) { if (retVal == null) { return false; } if (!(retVal instanceof Boolean)) { return false; } return (boolean) retVal; }  }
SnapshotEscalator { boolean canBeConvertedToTrue(Object retVal) { if (retVal == null) { return false; } if (!(retVal instanceof Boolean)) { return false; } return (boolean) retVal; }  @PostConstruct void initScripting(); void escalate(@Observes @Severity(Severity.Level.HEARTBEAT) Snapshot current); }
SnapshotEscalator { boolean canBeConvertedToTrue(Object retVal) { if (retVal == null) { return false; } if (!(retVal instanceof Boolean)) { return false; } return (boolean) retVal; }  @PostConstruct void initScripting(); void escalate(@Observes @Severity(Severity.Level.HEARTBEAT) Snapshot current);  }