Package com.sun.enterprise.tools.verifier

Examples of com.sun.enterprise.tools.verifier.Result.notApplicable()


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


  if(getHomeInterfaceName(descriptor) == null || "".equals(getHomeInterfaceName(descriptor))){
            result.addNaDetails(smh.getLocalString
                        ("tests.componentNameConstructor", "For [ {0} ]",
                         new Object[] {compName.toString()}));
            result.notApplicable(smh.getLocalString
                       ("com.sun.enterprise.tools.verifier.tests.ejb.localinterfaceonly.notapp",
                        "Not Applicable because, EJB [ {0} ] has Local Interfaces only.",
                                          new Object[] {descriptor.getEjbClassName()}));

      return result;
View Full Code Here

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

  Result result = getInitializedResult();
  ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
 
  if(descriptor.getHomeClassName() == null || "".equals(descriptor.getHomeClassName())) {
            addNaDetails(result, compName);
            result.notApplicable(smh.getLocalString
                       ("com.sun.enterprise.tools.verifier.tests.ejb.localinterfaceonly.notapp",
                        "Not Applicable because, EJB [ {0} ] has Local Interfaces only.",
                                          new Object[] {descriptor.getEjbClassName()}));

      return result;
View Full Code Here

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

                        }
                    }
                }else //max-cache-size not defined
                {
                    addNaDetails(result, compName);
                    result.notApplicable(smh.getLocalString(getClass().getName()+".notApplicable",
                          "NOT APPLICABLE [AS-EJB bean-cache] : max-cache-size is element not defined"));
               
                }
               
            }else //bean-cache element is not present
View Full Code Here

                }
               
            }else //bean-cache element is not present
            {
                addNaDetails(result, compName);
                result.notApplicable(smh.getLocalString(getClass().getName()+".notApplicable1",
                    "NOT APPLICABLE [AS-EJB] : bean-cache element not defined"));         
            }
        }catch(Exception ex){
           
            addErrorDetails(result, compName);
View Full Code Here

                    if (value==null || value.length()==0){
                        result.addNaDetails(smh.getLocalString
                      ("tests.componentNameConstructor",
                            "For [ {0} ]",
                            new Object[] {compName.toString()}));
                        result.notApplicable(smh.getLocalString(getClass().getName()+".notApplicable2",
                            "NOT APPLICABLE [AS-WEB constraint-field] : cache-on-match-failure attribute not defined"));
                    }else{
                        String cacheOnMatchFailureValue[] = {"yes", "no", "on", "off", "1", "0", "true", "false" };
                        boolean found = false;
                        for (int j=0;j<cacheOnMatchFailureValue.length;j++){
View Full Code Here

            }else{
                result.addNaDetails(smh.getLocalString
        ("tests.componentNameConstructor",
        "For [ {0} ]",
        new Object[] {compName.toString()}));
                result.notApplicable(smh.getLocalString(getClass().getName()+".notApplicable3",
                    "NOT APPLICABLE [AS-WEB sun-web-app] : constraint-field Element not defined"));
            }
            if(oneFailed)
                result.setStatus(Result.FAILED);
        }catch(Exception ex){
View Full Code Here

        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
       
        if (!(descriptor instanceof EjbSessionDescriptor) &&
                !(descriptor instanceof EjbEntityDescriptor)) {
            addNaDetails(result, compName);
            result.notApplicable(smh.getLocalString
                            (getClass().getName()+".notApplicable1",
                            "Test apply only to session or entity beans."));
            return result;
        }
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.