Source code: com/puppycrawl/tools/checkstyle/checks/design/DesignForExtensionCheckTest.java
1 package com.puppycrawl.tools.checkstyle.checks.design;
2
3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
5
6 public class DesignForExtensionCheckTest
7 extends BaseCheckTestCase
8 {
9 public void testIt() throws Exception
10 {
11 final DefaultConfiguration checkConfig =
12 createCheckConfig(DesignForExtensionCheck.class);
13 final String[] expected = {
14 "46:5: Method 'doh' is not designed for extension - needs to be abstract, final or empty.",
15 };
16 verify(checkConfig, getPath("InputDesignForExtension.java"), expected);
17
18 }
19
20 }