View Javadoc
1 package test.net.sourceforge.pmd.rules; 2 3 import net.sourceforge.pmd.rules.ClassNamingConventionsRule; 4 5 public class ClassNamingConventionsRuleTest extends SimpleAggregatorTst { 6 7 public void testAll() { 8 runTests(new TestDescriptor[] { 9 new TestDescriptor(TEST1, "class names should not start with lowercase character", 1, new ClassNamingConventionsRule()), 10 new TestDescriptor(TEST2, "class names should not contain underscores", 1, new ClassNamingConventionsRule()), 11 new TestDescriptor(TEST3, "all is well", 0, new ClassNamingConventionsRule()), 12 }); 13 } 14 15 private static final String TEST1 = 16 "public class foo {};"; 17 18 private static final String TEST2 = 19 "public class foo_bar {};"; 20 21 private static final String TEST3 = 22 "public class FooBar {};"; 23 24 }

This page was automatically generated by Maven