1 23 package com.sun.enterprise.tools.verifier.tests.ejb; 24 25 import com.sun.enterprise.deployment.EjbDescriptor; 26 import com.sun.enterprise.tools.verifier.*; 27 import com.sun.enterprise.tools.verifier.tests.*; 28 29 34 public class EjbLogicalName extends EjbTest implements EjbCheck { 35 36 45 public Result check(EjbDescriptor descriptor) { 46 47 Result result = getInitializedResult(); 48 String ejbName = descriptor.getName(); 49 ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor(); 50 if (!ejbName.equals("")) { 51 addGoodDetails(result, compName); 54 result.passed(smh.getLocalString 55 (getClass().getName() + ".passed", 56 "EJB logical name is: [ {0} ]", 57 new Object [] {ejbName})); 58 } else { 59 addErrorDetails(result, compName); 60 result.failed(smh.getLocalString 62 (getClass().getName() + ".failed", 63 "Error: EJB logical name cannot be blank.")); 64 } 65 return result; 66 } 67 } 68 69 | Popular Tags |