test_class.declarator: checker = mock(DiskSpaceChecker.class)
test_class.modifier: private final
test_class.original_string: private final DiskSpaceChecker checker = mock(DiskSpaceChecker.class);
test_class.type: DiskSpaceChecker
test_class.var_name: checker
test_class.declarator: healthCheck
test_class.modifier: private
test_class.original_string: private DiskSpaceCheckerHealthCheck healthCheck;
test_class.type: DiskSpaceCheckerHealthCheck
test_class.var_name: healthCheck
test_class.file: harahachibu/src/test/java/uk/co/flax/harahachibu/health/DiskSpaceCheckerHealthCheckTest.java
test_class.identifier: DiskSpaceCheckerHealthCheckTest
test_case.body: @Test
  	public void returnsHealthyWhenCheckerPasses() throws Exception {
  		when(checker.isSpaceAvailable()).thenReturn(true);
  
  		Result result = healthCheck.check();
  		assertThat(result.isHealthy()).isTrue();
  	}
test_case.class_method_signature: DiskSpaceCheckerHealthCheckTest.returnsHealthyWhenCheckerPasses()
test_case.full_signature: @Test public void returnsHealthyWhenCheckerPasses()
test_case.identifier: returnsHealthyWhenCheckerPasses
test_case.invocations: thenReturn when isSpaceAvailable check isTrue assertThat isHealthy
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void returnsHealthyWhenCheckerPasses()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(DiskSpaceCheckerHealthCheck.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(DiskSpaceCheckerHealthCheck.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: checker
focal_class.modifier: private final
focal_class.original_string: private final DiskSpaceChecker checker;
focal_class.type: DiskSpaceChecker
focal_class.var_name: checker
focal_class.file: harahachibu/src/main/java/uk/co/flax/harahachibu/health/DiskSpaceCheckerHealthCheck.java
focal_class.identifier: DiskSpaceCheckerHealthCheck
focal_class.class_method_signature: DiskSpaceCheckerHealthCheck.DiskSpaceCheckerHealthCheck(DiskSpaceChecker checker)
focal_class.full_signature: public  DiskSpaceCheckerHealthCheck(DiskSpaceChecker checker)
focal_class.identifier: DiskSpaceCheckerHealthCheck
focal_class.modifiers: public
focal_class.parameters: (DiskSpaceChecker checker)
focal_class.signature:  DiskSpaceCheckerHealthCheck(DiskSpaceChecker checker)
focal_class.class_method_signature: DiskSpaceCheckerHealthCheck.check()
focal_class.full_signature: @Override protected Result check()
focal_class.identifier: check
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Result
focal_class.signature: Result check()
focal_class.superclass: extends HealthCheck
focal_method.body: @Override
  	protected Result check() throws Exception {
  		try {
  			if (checker.isSpaceAvailable()) {
  				return Result.healthy();
  			} else {
  				return Result.unhealthy("DiskSpaceChecker returns no space available");
  			}
  		} catch (DiskSpaceCheckerException e) {
  			LOGGER.warn("DiskSpaceChecker threw exception during healthcheck: {}", e.getMessage());
  			return Result.unhealthy(e);
  		}
  	}
focal_method.class_method_signature: DiskSpaceCheckerHealthCheck.check()
focal_method.full_signature: @Override protected Result check()
focal_method.identifier: check
focal_method.invocations: isSpaceAvailable healthy unhealthy warn getMessage unhealthy
focal_method.modifiers: @Override protected
focal_method.parameters: ()
focal_method.return: Result
focal_method.signature: Result check()