Package com.sun.enterprise.tools.verifier.tests

Examples of com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor


     * @return <code>Result</code> the results for this assertion
     */
    public Result check (WebServiceEndpoint descriptor) {
       
  Result result = getInitializedResult();
        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
        boolean pass = true;
        try {

          javax.xml.namespace.QName wsdlport = descriptor.getWsdlPort();
          // check to see that wsdl-port is specified in the service endpoint.
          if ( wsdlport != null) {
             // get the local part
             String localpart = wsdlport.getLocalPart();
             // String namespaceuri = wsdlport.getNamespaceURI();

             if ( localpart == null || localpart.equals("") ) {
                // Error: localpart is not specified
               pass = false;
             }
            
              //if ( namespaceuri == null || namespaceuri.equals("")) {
              //pass = false;
              //}

          } else {
            // Error: wsdl-port is missing for this endpoint
            pass = false;
          }

          if (pass) {
              result.addGoodDetails(smh.getLocalString ("tests.componentNameConstructor",
                                   "For [ {0} ]", new Object[] {compName.toString()}));
              result.passed(smh.getLocalString (getClass().getName() + ".passed",
                          "The wsdl-port in the webservices.xml file for [{0}] is specified for the endpoint",
                           new Object[] {compName.toString()}));
            }
            else {
             result.addErrorDetails(smh.getLocalString ("tests.componentNameConstructor",
                                   "For [ {0} ]", new Object[] {compName.toString()}));
             result.failed(smh.getLocalString (getClass().getName() + ".failed",
               "The  wsdl-port in the webservices.xml file for [{0}] is not correctly specified for the endpoint",
                new Object[] {compName.toString()}));
            }
        }catch (Exception e) {
            //result.fail
            result.addErrorDetails(smh.getLocalString
               ("com.sun.enterprise.tools.verifier.tests.webservices.Error",
View Full Code Here


*/
public class EjbArchiveClassesLoadable extends EjbTest implements EjbCheck {
   
    public Result check(EjbDescriptor descriptor) {
        Result result = getInitializedResult();
        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
//        String archiveUri = getAbstractArchiveUri(descriptor);
       
        ClosureCompiler closureCompiler=getVerifierContext().getClosureCompiler();
       
        boolean allPassed = closureCompiler.buildClosure(descriptor.getEjbClassName());
View Full Code Here

*/
public class AppClientMainClass extends AppClientTest implements AppClientCheck  {

    public Result check(ApplicationClientDescriptor descriptor) {
        Result result = getInitializedResult();
        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

        String mainClass = descriptor.getMainClassName();
        if (mainClass != null && mainClass.length() > 0) {
            try {
                Class c = Class.forName(mainClass, false, getVerifierContext().getClassLoader());
View Full Code Here

*/
public class AllJSPsMustBeCompilable extends WebTest implements WebCheck{

    public Result check(WebBundleDescriptor descriptor) {
        Result result = getInitializedResult();
        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

        // initialize good result
        addGoodDetails(result, compName);
        result.addGoodDetails(smh.getLocalString(getClass().getName() + ".passed",
                                "All JSPs are compilable."));
View Full Code Here

     * @return <code>Result</code> the results for this assertion
     */
    public Result check(EjbDescriptor descriptor) {

        Result result = getInitializedResult();
        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

        if ((descriptor instanceof EjbSessionDescriptor) ||
                (descriptor instanceof EjbEntityDescriptor)) {

            try {
                Class c = Class.forName(descriptor.getEjbClassName(), false, getVerifierContext().getClassLoader());
                boolean validBean = false;
                // walk up the class tree (bug #4243606)
                do {
                    Class[] interfaces = c.getInterfaces();
                    for (int i = 0; i < interfaces.length; i++) {
                        logger.log(Level.FINE, getClass().getName() + ".debug1",
                                new Object[] {interfaces[i].getName()});

                        if (interfaces[i].getName().equals("javax.ejb.EntityBean") &&
                                (descriptor instanceof EjbEntityDescriptor)) {
                            validBean = true;
                            result.addGoodDetails(smh.getLocalString
                                    ("tests.componentNameConstructor",
                                            "For [ {0} ]",
                                            new Object[] {compName.toString()}));
                            result.passed(smh.getLocalString
                                    (getClass().getName() + ".passed",
                                            "[ {0} ] properly implements the {1}Bean interface.",
                                            new Object[] {descriptor.getEjbClassName(),"Entity"}));
                            break;
                        } else if (interfaces[i].getName().equals("javax.ejb.SessionBean") &&
                                descriptor instanceof EjbSessionDescriptor) {
                            validBean = true;
                            result.addGoodDetails(smh.getLocalString
                                    ("tests.componentNameConstructor",
                                            "For [ {0} ]",
                                            new Object[] {compName.toString()}));
                            result.passed(smh.getLocalString
                                    (getClass().getName() + ".passed",
                                            "[ {0} ] properly implements the {1}Bean interface.",
                                            new Object[] {descriptor.getEjbClassName(),"Session"}));
                            break;
                        }
                    }
                } while ((((c=c.getSuperclass()) != null) && (!validBean)));


                if (!validBean){
                    result.addErrorDetails(smh.getLocalString
                            ("tests.componentNameConstructor",
                                    "For [ {0} ]",
                                    new Object[] {compName.toString()}));
                    result.failed(smh.getLocalString
                            (getClass().getName() + ".failed",
                                    "Error: [ {0} ] is not a valid bean. The bean provider must use the appropriate {1} or {2} element to declare the bean type.",
                                    new Object[] {descriptor.getEjbClassName(),"session","entity"}));
                }
            } catch (ClassNotFoundException e) {
                Verifier.debug(e);
                result.addErrorDetails(smh.getLocalString
                        ("tests.componentNameConstructor",
                                "For [ {0} ]",
                                new Object[] {compName.toString()}));
                result.failed(smh.getLocalString
                        (getClass().getName() + ".failedException",
                                "Error: [ {0} ] class not found.",
                                new Object[] {descriptor.getEjbClassName()}));
            }
            return result;

        } else {
            result.addNaDetails(smh.getLocalString
                    ("tests.componentNameConstructor",
                            "For [ {0} ]",
                            new Object[] {compName.toString()}));
            result.notApplicable(smh.getLocalString
                    (getClass().getName() + ".notApplicable",
                            "[ {0} ] not called with a Session or Entity Bean.",
                            new Object[] {getClass()}));
            return result;
View Full Code Here

        r.setModuleName(Result.CONNECTOR);
    }

    protected ComponentNameConstructor getComponentNameConstructor(
            Descriptor descriptor) {
        return new ComponentNameConstructor((ConnectorDescriptor)descriptor);
    }
View Full Code Here

        return ((WebServiceEndpoint) descriptor).getBundleDescriptor();
    }

    protected ComponentNameConstructor getComponentNameConstructor(
            Descriptor descriptor) {
        return new ComponentNameConstructor((WebServiceEndpoint)descriptor);
    }
View Full Code Here

     * @return <code>Result</code> the results for this assertion
     */
    public Result check(EjbDescriptor descriptor) {

  Result result = getInitializedResult();
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

  if (descriptor instanceof EjbEntityDescriptor) {
      String persistence =
    ((EjbEntityDescriptor)descriptor).getPersistenceType();
      if (EjbEntityDescriptor.BEAN_PERSISTENCE.equals(persistence)) {

    boolean okayToThrowObjectNotFoundException = false;
    boolean throwsObjectNotFoundException = false;
    boolean oneFailed = false;
    int findMethodModifiers = 0;
    int foundAtLeastOne = 0;
    try {
        // retrieve the EJB Class Methods
        VerifierTestContext context = getVerifierContext();
    ClassLoader jcl = context.getClassLoader();
        Class EJBClass = Class.forName(descriptor.getEjbClassName(), false, getVerifierContext().getClassLoader());
                    // start do while loop here....
                    do {
      Method [] ejbFinderMethods = EJBClass.getDeclaredMethods();
      String primaryKeyType = ((EjbEntityDescriptor)descriptor).getPrimaryKeyClassName();
       
      for (int j = 0; j < ejbFinderMethods.length; ++j) {
          if (ejbFinderMethods[j].getName().startsWith("ejbFind")) {
        okayToThrowObjectNotFoundException = false;
        throwsObjectNotFoundException = false;
        Class returnByPrimaryKeyValue = ejbFinderMethods[j].getReturnType();
        foundAtLeastOne++;
        // Only single-object finders (see Subsection 9.1.8) may throw this
        // exception.   Multi-object finders must not throw this exception.
        if (returnByPrimaryKeyValue.getName().equals(primaryKeyType))  {
            okayToThrowObjectNotFoundException = true;
        } else if ((returnByPrimaryKeyValue.getName().equals("java.util.Collection"))  ||
             (returnByPrimaryKeyValue.getName().equals("java.util.Enumeration"))) {
            okayToThrowObjectNotFoundException = false;
        }
 
        // now check exceptions, if it's not okay to throw
        // ObjectNotFoundException, then flag this as an error, otherwise
        // test passes or is not applicable
        if (!okayToThrowObjectNotFoundException) {
        // get the exceptions and see if this method throw
        // ObjectNotFoundException when it was not allowed to
            Class [] exceptions = ejbFinderMethods[j].getExceptionTypes();
            if (EjbUtils.isValidObjectNotFoundExceptionException(exceptions)) {
          throwsObjectNotFoundException = true;
            }
        }
 
 
        if ((okayToThrowObjectNotFoundException) || ((!okayToThrowObjectNotFoundException) && (!throwsObjectNotFoundException))) {
            result.addGoodDetails(smh.getLocalString
                ("tests.componentNameConstructor",
                 "For [ {0} ]",
                 new Object[] {compName.toString()}));
            result.addGoodDetails(smh.getLocalString
                (getClass().getName() + ".debug1",
                 "For EJB Class [ {0} ] Finder Method [ {1} ]",
                 new Object[] {EJBClass.getName(),ejbFinderMethods[j].getName()}));
            result.addGoodDetails(smh.getLocalString
                (getClass().getName() + ".passed",
                 "An [ {0} ] method was found with valid exception types declared in throws clause.",
                 new Object[] {ejbFinderMethods[j].getName()}));
        } else if ((!okayToThrowObjectNotFoundException) && throwsObjectNotFoundException) {
            oneFailed = true;
            result.addErrorDetails(smh.getLocalString
                 ("tests.componentNameConstructor",
                  "For [ {0} ]",
                  new Object[] {compName.toString()}));
            result.addErrorDetails(smh.getLocalString
                 (getClass().getName() + ".debug1",
                  "For EJB Class [ {0} ] Finder Method [ {1} ]",
                  new Object[] {EJBClass.getName(),ejbFinderMethods[j].getName()}));
            result.addErrorDetails(smh.getLocalString
                 (getClass().getName() + ".failed",
                  "Error: An [ {0} ] method was found, but [ {1} ] throws ObjectNotFoundException.  Multi-object finder methods must not throw this exception.",
                  new Object[] {ejbFinderMethods[j].getName(),ejbFinderMethods[j].getName()}));
        }      
          }
      }
                    } while (((EJBClass = EJBClass.getSuperclass()) != null) && (foundAtLeastOne == 0));
 
        if (foundAtLeastOne == 0) {
      result.addNaDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
      result.notApplicable(smh.getLocalString
               (getClass().getName() + ".notApplicable1",
                "[ {0} ] does not declare any ejbFind<METHOD>(...) methods.",
                new Object[] {descriptor.getEjbClassName()}));
        }
 
    } catch (ClassNotFoundException e) {
        Verifier.debug(e);
        result.addErrorDetails(smh.getLocalString
             ("tests.componentNameConstructor",
              "For [ {0} ]",
              new Object[] {compName.toString()}));
        result.failed(smh.getLocalString
          (getClass().getName() + ".failedException",
           "Error: EJB Class [ {1} ] does not exist or is not loadable.",
           new Object[] {descriptor.getEjbClassName()}));
        oneFailed = true;
    }
   
    if (oneFailed) {
        result.setStatus(result.FAILED);
                } else if (foundAtLeastOne == 0) {
                    result.setStatus(result.NOT_APPLICABLE);
    } else {
        result.setStatus(result.PASSED);
    }
   
    return result;

      } else  { //if (CONTAINER_PERSISTENCE.equals(persistence))
    result.addNaDetails(smh.getLocalString
            ("tests.componentNameConstructor",
             "For [ {0} ]",
             new Object[] {compName.toString()}));
    result.notApplicable(smh.getLocalString
             (getClass().getName() + ".notApplicable2",
              "Expected [ {0} ] managed persistence, but [ {1} ] bean has [ {2} ] managed persistence.",
              new Object[] {EjbEntityDescriptor.BEAN_PERSISTENCE,descriptor.getName(),persistence}));
    return result;
      }


  } else {
      result.addNaDetails(smh.getLocalString
        ("tests.componentNameConstructor",
         "For [ {0} ]",
         new Object[] {compName.toString()}));
      result.notApplicable(smh.getLocalString
         (getClass().getName() + ".notApplicable",
          "[ {0} ] expected {1} bean, but called with {2} bean.",
          new Object[] {getClass(),"Entity","Session"}));
      return result;
View Full Code Here

     * @return <code>Result</code> the results for this assertion
     */
    public Result check(EjbDescriptor descriptor) {

  Result result = getInitializedResult();
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

  if (descriptor instanceof EjbEntityDescriptor) {
      String persistentType =
    ((EjbEntityDescriptor)descriptor).getPersistenceType();
      if (EjbEntityDescriptor.BEAN_PERSISTENCE.equals(persistentType)) {
    boolean ejbFindByPrimaryKeyMethodFound = false;
    boolean oneFailed = false;
                boolean oneWarning = false;
    boolean returnValueValid = false;
    try {
        // retrieve the EJB Class Methods
        VerifierTestContext context = getVerifierContext();
    ClassLoader jcl = context.getClassLoader();
        Class EJBClass = Class.forName(descriptor.getEjbClassName(), false, getVerifierContext().getClassLoader());
                    // start do while loop here....
                    do {
      Method [] ejbFinderMethods = EJBClass.getDeclaredMethods();
      String primaryKeyType = ((EjbEntityDescriptor)descriptor).getPrimaryKeyClassName();
       
      for (int j = 0; j < ejbFinderMethods.length; ++j) {
          Class returnByPrimaryKeyValue = ejbFinderMethods[j].getReturnType();
 
          if (ejbFinderMethods[j].getName().equals("ejbFindByPrimaryKey")) {
        // Every entity enterprise Bean class must define the
        // ejbFindByPrimaryKey method. The result type for this method must
        // be the primary key type (i.e. the ejbFindByPrimaryKey method
        // must be a single-object finder).
        ejbFindByPrimaryKeyMethodFound = true;
        if (returnByPrimaryKeyValue.getName().equals(primaryKeyType)) {
            returnValueValid = true;
        }
 
        if (ejbFindByPrimaryKeyMethodFound && returnValueValid) {
            result.addGoodDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
            result.addGoodDetails(smh.getLocalString
                (getClass().getName() + ".debug1",
                 "For EJB Class [ {0} ] Finder Method [ {1} ]",
                 new Object[] {EJBClass.getName(),ejbFinderMethods[j].getName()}));
            result.addGoodDetails(smh.getLocalString
                (getClass().getName() + ".passed",
                 "An [ {0} ] method with valid return type was found.",
                 new Object[] {ejbFinderMethods[j].getName()}));
        } else if (ejbFindByPrimaryKeyMethodFound && (!returnValueValid)) {
          /* if primary key is java.lang.Object then ejbFindByPrimaryKey method
             must return java.lang.Object. So the following check is not correct.

            if (primaryKeyType.equals("java.lang.Object")) {
                                        oneWarning = true;
          result.addWarningDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
                result.addWarningDetails(smh.getLocalString
                (getClass().getName() + ".debug1",
                 "For EJB Class [ {0} ] Finder Method [ {1} ]",
                 new Object[] {EJBClass.getName(),ejbFinderMethods[j].getName()}));
                result.addWarningDetails(smh.getLocalString
                 (getClass().getName() + ".warning",
                                                           "Warning: An [ {0} ] method was found, but [ {1} ] method has [ {2} ] return type.   Deployment descriptor primary key type is [ {3} ]. Definition of the primary key type is deferred to deployment time ?",
                                                           new Object[] {ejbFinderMethods[j].getName(), ejbFinderMethods[j].getName(),ejbFinderMethods[j].getReturnType().getName(),primaryKeyType}));
                                    } else { */                                  
                oneFailed = true;
          result.addErrorDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
                result.addErrorDetails(smh.getLocalString
                 (getClass().getName() + ".debug1",
                  "For EJB Class [ {0} ] Finder Method [ {1} ]",
                  new Object[] {EJBClass.getName(),ejbFinderMethods[j].getName()}));
                result.addErrorDetails(smh.getLocalString
                 (getClass().getName() + ".failed",
                  "Error: An [ {0} ] method was found, but [ {1} ] return type must be the enterprise Bean's primary key type.",
                  new Object[] {ejbFinderMethods[j].getName(),ejbFinderMethods[j].getName()}));
          // }
        }      
        // found one, and there should only be one, break out
        break;
          }
      }
                    } while (((EJBClass = EJBClass.getSuperclass()) != null) && (!ejbFindByPrimaryKeyMethodFound));
 
        if (!ejbFindByPrimaryKeyMethodFound) {
      oneFailed = true;
      result.addErrorDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
      result.addErrorDetails(smh.getLocalString
                 (getClass().getName() + ".debug3",
            "For EJB Class [ {0} ]",
            new Object[] {descriptor.getEjbClassName()}));
      result.addErrorDetails(smh.getLocalString
                 (getClass().getName() + ".failed1",
            "Error: No ejbFindByPrimaryKey method was found in bean class."));
        }
 
    } catch (ClassNotFoundException e) {
        Verifier.debug(e);
        result.addErrorDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
    result.failed(smh.getLocalString
          (getClass().getName() + ".failedException",
           "Error: EJB Class [ {0} ] does not exist or is not loadable.",
           new Object[] {descriptor.getEjbClassName()}));
        oneFailed = true;
    }
   
    if (oneFailed)  {
        result.setStatus(result.FAILED);
    } else {
                   if (oneWarning) {
                        result.setStatus(result.WARNING);
                    } else {
            result.setStatus(result.PASSED);
                    }                   
    }
      } else { //(CONTAINER_PERSISTENCE.equals(persistentType))
    result.addNaDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
    result.notApplicable(smh.getLocalString
             (getClass().getName() + ".notApplicable2",
              "Expected persistence type [ {0} ], but bean [ {1} ] has persistence type [ {2} ]",
              new Object[] {EjbEntityDescriptor.BEAN_PERSISTENCE,descriptor.getName(),persistentType}));
      }
 
      return result;

  } else {
      result.addNaDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
      result.notApplicable(smh.getLocalString
         (getClass().getName() + ".notApplicable",
          "[ {0} ] expected {1} bean, but called with {2} bean.",
          new Object[] {getClass(),"Entity","Session"}));
      return result;
View Full Code Here

     * @return <code>Result</code> the results for this assertion
     */
    public Result check(EjbDescriptor descriptor) {

  Result result = getInitializedResult();
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();

  if (descriptor instanceof EjbEntityDescriptor) {
      boolean oneFailed = false;
      boolean foundAtLeastOneRemote = false;
      // RULE: Entity home interface are only allowed to have create
      //       methods which must throw java.rmi.RemoteException
      if(descriptor.getHomeClassName() == null || "".equals(descriptor.getHomeClassName())) {
    result.addNaDetails(smh.getLocalString
              ("tests.componentNameConstructor",
               "For [ {0} ]",
               new Object[] {compName.toString()}));
    result.addNaDetails(smh.getLocalString
               (getClass().getName() + ".debug3",
          "No Remote Home Interface for this ejb",
          new Object[] {}));
    return result;
      }
      try {
    Class c = Class.forName(descriptor.getHomeClassName(), false, getVerifierContext().getClassLoader());
    Method methods[] = c.getDeclaredMethods();
    Class [] methodExceptionTypes;
    boolean throwsRemoteException = false;

    for (int i=0; i< methods.length; i++) {
        // clear these from last time thru loop
        throwsRemoteException = false;
        if (methods[i].getName().startsWith("create")) {
      // set this once to indicate that test is applicable, if you didn't
      // find any create methods, that's okay too, as entity beans can
      // have  zero or more create methods, & when you have zero, test
      // is N/A
      if (!foundAtLeastOneRemote) {
          foundAtLeastOneRemote = true;
     

      methodExceptionTypes = methods[i].getExceptionTypes();
              
      // methods must also throw java.rmi.RemoteException
      if (EjbUtils.isValidRemoteException(methodExceptionTypes)) {
          throwsRemoteException = true;
      }

      //report for this particular create method found in home interface
      // now display the appropriate results for this particular create
      // method     
            logger.log(Level.FINE, " Interface " + c.getName() + " method " + methods[i].getName());
      if (throwsRemoteException ) {
          result.addGoodDetails(smh.getLocalString
              ("tests.componentNameConstructor",
               "For [ {0} ]",
               new Object[] {compName.toString()}));
          result.addGoodDetails(smh.getLocalString
              (getClass().getName() + ".debug1",
               "For Home Interface [ {0} ] Method [ {1} ]",
               new Object[] {c.getName(),methods[i].getName()}));
          result.addGoodDetails(smh.getLocalString
              (getClass().getName() + ".passed",
               "The create method which must throw java.rmi.RemoteException was found."));
      } else if (!throwsRemoteException) {
          oneFailed = true;
          result.addErrorDetails(smh.getLocalString
               (getClass().getName() + ".debug1",
                "For Home Interface [ {0} ] Method [ {1} ]",
                new Object[] {c.getName(),methods[i].getName()}));
          result.addErrorDetails(smh.getLocalString
               (getClass().getName() + ".failed",
                "Error: A create method was found, but did not throw java.rmi.RemoteException." ));
      // end of reporting for this particular 'create' method
        } // if the home interface found a "create" method
    } // for all the methods within the home interface class, loop
            

      } catch (ClassNotFoundException e) {
    Verifier.debug(e);
    result.addErrorDetails(smh.getLocalString
               ("tests.componentNameConstructor",
          "For [ {0} ]",
          new Object[] {compName.toString()}));
    result.failed(smh.getLocalString
            (getClass().getName() + ".failedException",
             "Error: Home interface [ {0} ] does not exist or is not loadable within bean [ {1} ]",
             new Object[] {descriptor.getHomeClassName(), descriptor.getName()}));
      }

      if (!foundAtLeastOneRemote) {
    result.addGoodDetails(smh.getLocalString
              ("tests.componentNameConstructor",
               "For [ {0} ]",
               new Object[] {compName.toString()}));
    result.addGoodDetails(smh.getLocalString
              (getClass().getName() + ".debug3",
               "For Home Interface [ {0} ]",
               new Object[] {descriptor.getHomeClassName()}));
    result.addGoodDetails(smh.getLocalString
              (getClass().getName() + ".notApplicable1",
               "No create method was found, test not applicable." ));
    result.setStatus(result.PASSED);
      } else {
    if (oneFailed) {
        result.setStatus(result.FAILED);
    } else {
        result.setStatus(result.PASSED);
    }
      }
        
      return result;
       
  } else {
      result.addNaDetails(smh.getLocalString
              ("tests.componentNameConstructor",
               "For [ {0} ]",
               new Object[] {compName.toString()}));
      result.notApplicable(smh.getLocalString
         (getClass().getName() + ".notApplicable",
          "[ {0} ] expected {1} bean, but called with {2} bean.",
          new Object[] {getClass(),"Entity","Session"}));
      return result;
View Full Code Here

TOP

Related Classes of com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.