Validating Lint Registry Implementation in ButterKnife
This test suite validates the functionality of the LintRegistry class within ButterKnife’s lint module. It focuses on ensuring proper registration and detection of custom lint issues, specifically for R2 usage validation.
Test Coverage Overview
Implementation Analysis
Technical Details
Best Practices Demonstrated
jakewharton/butterknife
butterknife-lint/src/test/java/butterknife/lint/LintRegistryTest.java
package butterknife.lint;
import org.junit.Test;
import static com.google.common.truth.Truth.assertThat;
public final class LintRegistryTest {
@Test public void issues() {
assertThat(new LintRegistry().getIssues()).contains(InvalidR2UsageDetector.ISSUE);
}
}