KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > checks > j2ee > LocalInterfaceCheckTest


1 package com.puppycrawl.tools.checkstyle.checks.j2ee;
2 import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
3 import com.puppycrawl.tools.checkstyle.DefaultConfiguration;
4 import com.puppycrawl.tools.checkstyle.checks.j2ee.LocalInterfaceCheck;
5
6 public class LocalInterfaceCheckTest extends BaseCheckTestCase
7 {
8     public void testDefault()
9             throws Exception JavaDoc
10     {
11         final DefaultConfiguration checkConfig =
12             createCheckConfig(LocalInterfaceCheck.class);
13         final String JavaDoc[] expected = {
14             "15:17: Method 'invalid1' must not throw 'java.rmi.RemoteException'.",
15             "18:17: Method 'invalid2' must not throw 'java.rmi.RemoteException'.",
16         };
17         verify(checkConfig, getPath("j2ee/InputLocalInterface.java"), expected);
18     }
19 }
20
Popular Tags