KickJava   Java API By Example, From Geeks To Geeks.

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


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.RemoteInterfaceCheck;
5
6 public class RemoteInterfaceCheckTest extends BaseCheckTestCase
7 {
8     public void testDefault()
9             throws Exception JavaDoc
10     {
11         final DefaultConfiguration checkConfig =
12             createCheckConfig(RemoteInterfaceCheck.class);
13         final String JavaDoc[] expected = {
14             "21:17: Method 'invalid' must throw 'java.rmi.RemoteException'.",
15         };
16         verify(checkConfig, getPath("j2ee/InputRemoteInterface.java"), expected);
17     }
18 }
19
Popular Tags