1 23 24 package com.sun.enterprise.tools.verifier.tests.wsclients; 25 26 import com.sun.enterprise.deployment.*; 27 import com.sun.enterprise.deployment.util.ModuleDescriptor; 28 import com.sun.enterprise.tools.verifier.*; 29 import com.sun.enterprise.tools.verifier.tests.*; 30 import com.sun.enterprise.util.io.FileUtils; 31 32 import java.io.File ; 33 import java.lang.ClassLoader ; 34 35 36 41 44 45 51 52 public abstract class WSClientTest extends VerifierTest implements VerifierCheck, WSClientCheck { 53 54 64 public Result check(Descriptor descriptor) { 65 return check((ServiceReferenceDescriptor) descriptor); 66 } 67 68 73 public abstract Result check(ServiceReferenceDescriptor descriptor); 74 75 protected String getAbstractArchiveUri(ServiceReferenceDescriptor desc) { 76 String archBase = getVerifierContext().getAbstractArchive(). 77 getArchiveUri(); 78 final ModuleDescriptor moduleDescriptor = desc.getBundleDescriptor(). 79 getModuleDescriptor(); 80 if (moduleDescriptor.isStandalone()) { 81 return archBase; } else { 83 return archBase + File.separator + 84 FileUtils.makeFriendlyFileName(moduleDescriptor.getArchiveUri()); 85 } 86 } 87 88 } 89 | Popular Tags |