소스 검색

This file isn't needed for the Framework Benchmarks. Hold over from the tutorial

Mike Megally 12 년 전
부모
커밋
0dbb007198
1개의 변경된 파일0개의 추가작업 그리고 27개의 파일을 삭제
  1. 0 27
      dropwizard/src/main/java/com/example/helloworld/health/TemplateHealthCheck.java

+ 0 - 27
dropwizard/src/main/java/com/example/helloworld/health/TemplateHealthCheck.java

@@ -1,27 +0,0 @@
-
-package com.example.helloworld.health;
-
-import com.yammer.metrics.core.HealthCheck;
-
-public class TemplateHealthCheck
-    extends HealthCheck
-{
-  private final String template;
-
-  public TemplateHealthCheck(String template)
-  {
-    super("template");
-    this.template = template;
-  }
-
-  @Override
-  protected Result check() throws Exception
-  {
-    final String saying = String.format(template, "TEST");
-    if (!saying.contains("TEST"))
-    {
-      return Result.unhealthy("template doesn't include a name");
-    }
-    return Result.healthy();
-  }
-}