KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > coding > MissingCtorCheckTest


1 package com.puppycrawl.tools.checkstyle.checks.coding;
2
3 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
4 import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
5
6 import java.io.File JavaDoc;
7
8 public class MissingCtorCheckTest extends BaseCheckTestCase
9 {
10     public void testMissingSwitchDefault() throws Exception JavaDoc
11     {
12         DefaultConfiguration checkConfig =
13             createCheckConfig(MissingCtorCheck.class);
14
15         final String JavaDoc[] expected = {
16             "1:1: Class should define a constructor.",
17         };
18
19         verify(checkConfig,
20                getPath("coding" + File.separator + "InputMissingCtor.java"),
21                expected);
22     }
23 }
24
Popular Tags