docs/examples/unit_tests/test_cases/java/tests/Test2.java
The name of the outer type and the file do not match. Open
Open
public class Test extends AbstractTest {
- Read upRead up
- Exclude checks
Checks that the outer type name and the file name match. For example,the class Foo
must be in a file namedFoo.java
.
This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.
'if' construct must use '{}'s. Open
Open
if (runTest(SellerTest.class, "sell"))
- Read upRead up
- Exclude checks
Checks for braces around code blocks.
This documentation is written and maintained by the Checkstyle community and is covered under the same license as the Checkstyle project.