Last active
June 6, 2020 11:01
-
-
Save guilhermekrz/ad250fd718f5d5d52db4022d3f40d799 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun getDetector(): Detector = TooManyParametersDetector() | |
override fun getIssues(): MutableList<Issue> = mutableListOf(TooManyParametersDetector.ISSUE) | |
@Test | |
fun `java method with 0 parameters`() { | |
val javaFile = java( | |
""" | |
package com.brokoli.lint; | |
class MyClass { | |
public void methodWith0Parameters() { | |
} | |
} | |
""" | |
).indented() | |
val lintResult = lint() | |
.files(javaFile) | |
.run() | |
lintResult.expectClean() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment