### Question:
AndroidLintRulesDefinition implements RulesDefinition { static boolean isTextFile(String file) { return TEXT_FILE_EXTENSIONS.stream().anyMatch(file::endsWith); } AndroidLintRulesDefinition(boolean externalIssuesSupported); @Override void define(Context context);  }### Answer:
@Test public void text_files() { assertThat(isTextFile("AndroidManifest.xml")).isTrue(); assertThat(isTextFile("Main.java")).isTrue(); assertThat(isTextFile("App.kt")).isTrue(); assertThat(isTextFile("default.properties")).isTrue(); assertThat(isTextFile("build.gradle")).isTrue(); assertThat(isTextFile("proguard.cfg")).isTrue(); assertThat(isTextFile("proguard-project.txt")).isTrue(); }
@Test public void binary_files() { assertThat(isTextFile("App.class")).isFalse(); assertThat(isTextFile("button.png")).isFalse(); }