KickJava   Java API By Example, From Geeks To Geeks.

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


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 public class SuperCloneCheckTest
7     extends BaseCheckTestCase
8 {
9     public void testIt() throws Exception JavaDoc
10     {
11         final DefaultConfiguration checkConfig =
12             createCheckConfig(SuperCloneCheck.class);
13         final String JavaDoc[] expected = {
14             "27:19: Method 'clone' should call 'super.clone'.",
15             "35:19: Method 'clone' should call 'super.clone'.",
16             "60:23: Method 'clone' should call 'super.clone'.",
17         };
18         verify(checkConfig, getPath("coding/InputClone.java"), expected);
19     }
20 }
21
Popular Tags