package com.puppycrawl.tools.checkstyle.checks.j2ee;

import com.puppycrawl.tools.checkstyle.BaseCheckTestCase;
import com.puppycrawl.tools.checkstyle.DefaultConfiguration;

public class HomeInterfaceCheckTest extends BaseCheckTestCase
{
    public void testDefault()
            throws Exception
    {
        final DefaultConfiguration checkConfig =
            createCheckConfig(RemoteHomeInterfaceCheck.class);
        final String[] expected = {
            "14:18: Home interface 'InputHomeInterface' must have method 'findByPrimaryKey()'.",
            "20:19: Method 'createSomething' must be non-void.",
            "20:19: Method 'createSomething' must throw 'java.rmi.RemoteException'.",
            "20:19: Method 'createSomething' must throw 'javax.ejb.CreateException'.",
            "22:19: Method 'findSomething' must be non-void.",
            "22:19: Method 'findSomething' must throw 'java.rmi.RemoteException'.",
            "22:19: Method 'findSomething' must throw 'javax.ejb.FinderException'.",
        };
        verify(checkConfig, getPath("j2ee/InputHomeInterface.java"), expected);
    }
}

@@ -448,105 +448,8 @@
 = %7B%0A
-            %2214:18: Home interface 'InputHomeInterface' must have method 'findByPrimaryKey()'.%22,%0A
     
@@ -734,178 +734,30 @@
 ust 
-be non-void.%22,%0A            %2222:19: Method 'findSomething' must throw 'java.rmi.RemoteException'.%22,%0A            %2222:19: Method 'findSomething' must throw 'javax.ejb.Finder
+throw 'java.rmi.Remote
 Exce

Fix for gump-build failure. To Rick: Could you please look at this (I'm not a big expert in j2ee)