1 package com.puppycrawl.tools.checkstyle.checks; 2 3 import junit.framework.Test; 4 import junit.framework.TestSuite; 5 6 public class AllTests { 7 8 public static void main(String [] args) { 9 junit.textui.TestRunner.run(AllTests.suite()); 10 } 11 12 public static Test suite() { 13 TestSuite suite = 14 new TestSuite("Test for com.puppycrawl.tools.checkstyle.checks"); 15 16 suite.addTest(new TestSuite(ArrayTypeStyleCheckTest.class)); 18 suite.addTest(new TestSuite(DescendantTokenCheckTest.class)); 19 suite.addTest(new TestSuite(FileSetCheckLifecycleTest.class)); 20 suite.addTest(new TestSuite(FinalParametersCheckTest.class)); 21 suite.addTest(new TestSuite(GenericIllegalRegexpCheckTest.class)); 22 suite.addTest(new TestSuite(NewlineAtEndOfFileCheckTest.class)); 23 suite.addTest(new TestSuite(RequiredRegexpCheckTest.class)); 24 suite.addTest(new TestSuite(TodoCommentCheckTest.class)); 25 suite.addTest(new TestSuite(TrailingCommentCheckTest.class)); 26 suite.addTest(new TestSuite(TranslationCheckTest.class)); 27 suite.addTest(new TestSuite(UncommentedMainCheckTest.class)); 28 suite.addTest(new TestSuite(UpperEllCheckTest.class)); 29 30 suite.addTest(com.puppycrawl.tools.checkstyle.checks.blocks.AllTests.suite()); 32 suite.addTest(com.puppycrawl.tools.checkstyle.checks.coding.AllTests.suite()); 33 suite.addTest(com.puppycrawl.tools.checkstyle.checks.design.AllTests.suite()); 34 suite.addTest(com.puppycrawl.tools.checkstyle.checks.duplicates.AllTests.suite()); 35 suite.addTest(com.puppycrawl.tools.checkstyle.checks.header.AllTests.suite()); 36 suite.addTest(com.puppycrawl.tools.checkstyle.checks.imports.AllTests.suite()); 37 suite.addTest(com.puppycrawl.tools.checkstyle.checks.indentation.AllTests.suite()); 38 suite.addTest(com.puppycrawl.tools.checkstyle.checks.j2ee.AllTests.suite()); 39 suite.addTest(com.puppycrawl.tools.checkstyle.checks.javadoc.AllTests.suite()); 40 suite.addTest(com.puppycrawl.tools.checkstyle.checks.metrics.AllTests.suite()); 41 suite.addTest(com.puppycrawl.tools.checkstyle.checks.naming.AllTests.suite()); 42 suite.addTest(com.puppycrawl.tools.checkstyle.checks.sizes.AllTests.suite()); 43 suite.addTest(com.puppycrawl.tools.checkstyle.checks.whitespace.AllTests.suite()); 44 45 return suite; 46 } 47 } 48 | Popular Tags |