Package com.sun.enterprise.tools.verifier

Examples of com.sun.enterprise.tools.verifier.VerifierTestContext


  boolean remote_exists = false;

  if (descriptor instanceof EjbSessionDescriptor) {
      boolean oneFailed = false;
      try {
    VerifierTestContext context = getVerifierContext();
    ClassLoader jcl = context.getClassLoader();
    Class c = Class.forName(descriptor.getEjbClassName(), false, getVerifierContext().getClassLoader());

    Class [] ejbCreateMethodParameterTypes;
    boolean ejbCreateFound = false;
    boolean isLegalRMIIIOP = false;
View Full Code Here


             "No Remote Home Interface for this ejb",
             new Object[] {}));
    return result;
      }
      try {
    VerifierTestContext context = getVerifierContext();
    ClassLoader jcl = context.getClassLoader();
    Class c = Class.forName(descriptor.getHomeClassName(), false, getVerifierContext().getClassLoader());
    Method methods[] = c.getDeclaredMethods();
    Class [] methodExceptionTypes;
    boolean throwsRemoteException = false;
View Full Code Here

     * @return the message bean class
     */
    protected Class loadMessageBeanClass(EjbMessageBeanDescriptor descriptor, Result result) {
        try {
      compName = getVerifierContext().getComponentNameConstructor();
            VerifierTestContext context = getVerifierContext();
      ClassLoader jcl = context.getClassLoader();
            return Class.forName(descriptor.getEjbClassName(), false, getVerifierContext().getClassLoader());
        } catch (ClassNotFoundException e) {
            Verifier.debug(e);
      result.addErrorDetails(smh.getLocalString
           ("tests.componentNameConstructor",
View Full Code Here

  boolean oneFailed = false;
  try {
      Arrays.sort(EJBObjectMethods);
     
      // retrieve the component interface methods
      VerifierTestContext context = getVerifierContext();
    ClassLoader jcl = context.getClassLoader();
      Class componentInterfaceClass = Class.forName(component, false, getVerifierContext().getClassLoader());
      Method [] componentInterfaceMethods = componentInterfaceClass.getMethods();
     
      boolean lookForIt = false;
      for (int i = 0; i < componentInterfaceMethods.length; i++) {
View Full Code Here

  try  {
      // Transaction attributes must not be specified for the methods of a session
      // bean's home interface.
      if (descriptor instanceof EjbSessionDescriptor) {
    String transactionType = descriptor.getTransactionType();
    VerifierTestContext context = getVerifierContext();
    ClassLoader jcl = context.getClassLoader();
                if (EjbDescriptor.CONTAINER_TRANSACTION_TYPE.equals(transactionType)) {
        boolean oneFailed = false;
        if(descriptor.getHomeClassName() != null && !"".equals(descriptor.getHomeClassName())) {
      Class superclass = Class.forName(descriptor.getHomeClassName(), false, getVerifierContext().getClassLoader());
      do {         
View Full Code Here


    private boolean commonToBothInterfaces(String home, EjbSessionDescriptor descriptor, String methodIntf) {
  boolean oneFailed = false;
  try {
      VerifierTestContext context = getVerifierContext();
      ClassLoader jcl = context.getClassLoader();
      Class c = Class.forName(home, false, getVerifierContext().getClassLoader());
      Method methods[] = c.getDeclaredMethods();
      boolean lookForIt = false;
      for (int i=0; i< methods.length; i++) {
    try  {
View Full Code Here

*/
public class TagClassImplementsValidInterface extends WebTest implements WebCheck {
    public Result check(WebBundleDescriptor descriptor) {

        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
        VerifierTestContext context = getVerifierContext();
        Result result = getInitializedResult();
        ClassLoader cl = context.getClassLoader();
        TagLibDescriptor tlds[] = context.getTagLibDescriptors();
        if (tlds == null) {
            addGoodDetails(result, compName);
            result.passed(smh.getLocalString
                    (getClass().getName() + ".passed",
                            "No tag lib files are specified"));
View Full Code Here

            "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" ,
            "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" };

        String acceptableURLs[] = {"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd",
                                   "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"};
        VerifierTestContext context = getVerifierContext();
        TagLibDescriptor tlds[] = context.getTagLibDescriptors();

        addGoodDetails(result, compName);
        result.passed(smh.getLocalString
                (getClass().getName() + ".passed",
                        "Test passed successfully"));
View Full Code Here

public class TaglibListenerClassExists extends WebTest implements WebCheck {

    public Result check(WebBundleDescriptor descriptor) {
        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
        VerifierTestContext context = getVerifierContext();
        Result result = getInitializedResult();
        TagLibDescriptor tlds[] = context.getTagLibDescriptors();
        ClassLoader cl = context.getClassLoader();

        if (tlds == null) {
            addGoodDetails(result, compName);
            result.passed(smh.getLocalString
                    (getClass().getName() + ".passed",
View Full Code Here

public class TagClassExtendsValidInterface extends WebTest implements WebCheck {
    public Result check(WebBundleDescriptor descriptor) {

        ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
        VerifierTestContext context = getVerifierContext();
        Result result = loadWarFile(descriptor);
        TagLibDescriptor tlds[] = context.getTagLibDescriptors();
        boolean failed=false;
        boolean oneFailed = false;

        if (tlds == null) {
            addGoodDetails(result, compName);
View Full Code Here

TOP

Related Classes of com.sun.enterprise.tools.verifier.VerifierTestContext

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.