Search in sources :

Example 1 with ApplicationVerifier

use of com.sun.enterprise.tools.verifier.app.ApplicationVerifier in project Payara by payara.

the class Verifier method verifyArchive.

private void verifyArchive() {
    if (!getApplication().isVirtual()) {
        // don't run app tests for standalone module
        runVerifier(new ApplicationVerifier(verifierFrameworkContext));
    }
    for (Iterator itr = getApplication().getBundleDescriptors(EjbBundleDescriptor.class).iterator(); itr.hasNext(); ) {
        EjbBundleDescriptor ejbd = (EjbBundleDescriptor) itr.next();
        runVerifier(new EjbVerifier(verifierFrameworkContext, ejbd));
    }
    for (Iterator itr = getApplication().getBundleDescriptors(WebBundleDescriptor.class).iterator(); itr.hasNext(); ) {
        WebBundleDescriptor webd = (WebBundleDescriptor) itr.next();
        runVerifier(new WebVerifier(verifierFrameworkContext, webd));
    }
    for (Iterator itr = getApplication().getBundleDescriptors(ApplicationClientDescriptor.class).iterator(); itr.hasNext(); ) {
        ApplicationClientDescriptor appClientDescriptor = (ApplicationClientDescriptor) itr.next();
        runVerifier(new AppClientVerifier(verifierFrameworkContext, appClientDescriptor));
    }
    for (Iterator itr = getApplication().getBundleDescriptors(ConnectorDescriptor.class).iterator(); itr.hasNext(); ) {
        ConnectorDescriptor cond = (ConnectorDescriptor) itr.next();
        runVerifier(new ConnectorVerifier(verifierFrameworkContext, cond));
    }
}
Also used : ConnectorDescriptor(com.sun.enterprise.deployment.ConnectorDescriptor) AppClientVerifier(com.sun.enterprise.tools.verifier.appclient.AppClientVerifier) EjbBundleDescriptor(com.sun.enterprise.deployment.EjbBundleDescriptor) WebVerifier(com.sun.enterprise.tools.verifier.web.WebVerifier) ApplicationVerifier(com.sun.enterprise.tools.verifier.app.ApplicationVerifier) Iterator(java.util.Iterator) WebBundleDescriptor(com.sun.enterprise.deployment.WebBundleDescriptor) EjbVerifier(com.sun.enterprise.tools.verifier.ejb.EjbVerifier) ConnectorVerifier(com.sun.enterprise.tools.verifier.connector.ConnectorVerifier) ApplicationClientDescriptor(com.sun.enterprise.deployment.ApplicationClientDescriptor)

Aggregations

ApplicationClientDescriptor (com.sun.enterprise.deployment.ApplicationClientDescriptor)1 ConnectorDescriptor (com.sun.enterprise.deployment.ConnectorDescriptor)1 EjbBundleDescriptor (com.sun.enterprise.deployment.EjbBundleDescriptor)1 WebBundleDescriptor (com.sun.enterprise.deployment.WebBundleDescriptor)1 ApplicationVerifier (com.sun.enterprise.tools.verifier.app.ApplicationVerifier)1 AppClientVerifier (com.sun.enterprise.tools.verifier.appclient.AppClientVerifier)1 ConnectorVerifier (com.sun.enterprise.tools.verifier.connector.ConnectorVerifier)1 EjbVerifier (com.sun.enterprise.tools.verifier.ejb.EjbVerifier)1 WebVerifier (com.sun.enterprise.tools.verifier.web.WebVerifier)1 Iterator (java.util.Iterator)1