1 23 package com.sun.enterprise.tools.verifier.tests.webservices; 24 25 import com.sun.enterprise.deployment.*; 26 import com.sun.enterprise.tools.verifier.*; 27 import java.util.*; 28 import com.sun.enterprise.tools.verifier.tests.*; 29 import java.lang.reflect.*; 30 31 34 35 48 49 public class SEIClassNameCheck extends WSTest implements WSCheck { 50 51 55 public Result check (WebServiceEndpoint wsdescriptor) { 56 57 Result result = getInitializedResult(); 58 ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor(); 59 60 Class cl = loadSEIClass(wsdescriptor,result); 61 if (cl == null) { 62 result.addErrorDetails(smh.getLocalString ("tests.componentNameConstructor", 63 "For [ {0} ]", new Object [] {compName.toString()})); 64 result.failed(smh.getLocalString 65 (getClass().getName() + ".failed", 66 "The [{0}] Class [{1}] could not be Loaded.", 67 new Object [] {"SEI", wsdescriptor.getServiceEndpointInterface()})); 68 69 } 70 else { 71 72 result.addGoodDetails(smh.getLocalString ("tests.componentNameConstructor", 73 "For [ {0} ]", new Object [] {compName.toString()})); 74 result.passed(smh.getLocalString (getClass().getName() + ".passed", 75 "The [{0}] Class [{1}] Loaded Successfully.", 76 new Object [] {"SEI",wsdescriptor.getServiceEndpointInterface()})); 77 78 } 79 80 return result; 81 } 82 } 83 84 | Popular Tags |