verify(context).saveMeasure(CoreMetrics.VIOLATIONS, 4.0);
}
@Test
public void should_do_nothing_when_issuable_is_null() {
ResourcePerspectives perspectives = mock(ResourcePerspectives.class);
when(perspectives.as(Issuable.class, resource)).thenReturn(null);
CountUnresolvedIssuesDecorator decorator = new CountUnresolvedIssuesDecorator(perspectives, ruleFinder, timeMachineConfiguration);
decorator.decorate(resource, context);
verifyZeroInteractions(context);