package tech.picnic.errorprone.refaster.test;

import com.google.errorprone.refaster.annotation.AfterTemplate;
import com.google.errorprone.refaster.annotation.BeforeTemplate;

/**
 * Refaster rule collection to validate that a missing test and misplaced tests are both reported.
 */
final class MissingTestAndWrongTestRules {
  private MissingTestAndWrongTestRules() {}

  static final class StringIsEmpty {
    @BeforeTemplate
    boolean before(String string) {
      return string.equals("");
    }

    @AfterTemplate
    boolean after(String string) {
      return string.isEmpty();
    }
  }

  static final class RuleWithoutTest {
    @BeforeTemplate
    boolean before(String string) {
      return string.equals("foo");
    }
  }
}
