test_class.declarator: logger = Mockito.mock(Logger.class)
test_class.modifier: private
test_class.original_string: private Logger logger = Mockito.mock(Logger.class);
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: result
test_class.modifier: private
test_class.original_string: private HealthCheck.Result result;
test_class.type: HealthCheck.Result
test_class.var_name: result
test_class.declarator: healthCheck = new DummyNamedHealthCheck()
test_class.modifier: private
test_class.original_string: private DummyNamedHealthCheck healthCheck = new DummyNamedHealthCheck();
test_class.type: DummyNamedHealthCheck
test_class.var_name: healthCheck
test_class.declarator: healthCheckException = new ExceptionThrowingNamedHealthCheck()
test_class.modifier: private
test_class.original_string: private ExceptionThrowingNamedHealthCheck healthCheckException = new ExceptionThrowingNamedHealthCheck();
test_class.type: ExceptionThrowingNamedHealthCheck
test_class.var_name: healthCheckException
test_class.file: infrastructure/metrics-jsr340/src/test/java/de/qaware/oss/metrics/jsr340/NamedHealthCheckTest.java
test_class.identifier: NamedHealthCheckTest
test_case.body: @Test
      public void checkUnhealthy() {
          result = HealthCheck.Result.unhealthy("ill");
          assertThat(healthCheck.execute().isHealthy(), is(false));
          Mockito.verify(logger, Mockito.times(1)).log(eq(Level.WARNING), anyObject(), (Object[]) anyObject());
      }
test_case.class_method_signature: NamedHealthCheckTest.checkUnhealthy()
test_case.full_signature: @Test public void checkUnhealthy()
test_case.identifier: checkUnhealthy
test_case.invocations: unhealthy assertThat isHealthy execute is log verify times eq anyObject anyObject
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void checkUnhealthy()
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: logger
focal_class.modifier: @Inject
      private
focal_class.original_string: @Inject
      private Logger logger;
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: infrastructure/metrics-jsr340/src/main/java/de/qaware/oss/metrics/jsr340/NamedHealthCheck.java
focal_class.identifier: NamedHealthCheck
focal_class.class_method_signature: NamedHealthCheck.NamedHealthCheck()
focal_class.full_signature: protected  NamedHealthCheck()
focal_class.identifier: NamedHealthCheck
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  NamedHealthCheck()
focal_class.class_method_signature: NamedHealthCheck.NamedHealthCheck(final String name)
focal_class.full_signature: protected  NamedHealthCheck(final String name)
focal_class.identifier: NamedHealthCheck
focal_class.modifiers: protected
focal_class.parameters: (final String name)
focal_class.signature:  NamedHealthCheck(final String name)
focal_class.class_method_signature: NamedHealthCheck.NamedHealthCheck(String name, Logger logger)
focal_class.full_signature: protected  NamedHealthCheck(String name, Logger logger)
focal_class.identifier: NamedHealthCheck
focal_class.modifiers: protected
focal_class.parameters: (String name, Logger logger)
focal_class.signature:  NamedHealthCheck(String name, Logger logger)
focal_class.class_method_signature: NamedHealthCheck.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: NamedHealthCheck.execute()
focal_class.full_signature: @Override public Result execute()
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Result
focal_class.signature: Result execute()
focal_class.superclass: extends HealthCheck
focal_method.body: @Override
      public Result execute() {
          try {
              Result result = check();
              if (!result.isHealthy()) {
                  logger.log(Level.WARNING, "HealthCheck '{0}' is unhealthy: {1}",
                          new Object[]{getName(), result.getMessage()});
              }
              return result;
          } catch (Exception e) {
              logger.log(Level.WARNING, "Exception in health check: {0}", new Object[]{getName(), e});
              return Result.unhealthy(e);
          }
      }
focal_method.class_method_signature: NamedHealthCheck.execute()
focal_method.full_signature: @Override public Result execute()
focal_method.identifier: execute
focal_method.invocations: check isHealthy log getName getMessage log getName unhealthy
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Result
focal_method.signature: Result execute()