juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexo...@apache.org
Subject svn commit: r1550327 [6/8] - in /juddi/branches/juddi-3.3.x: ./ juddi-client/src/main/java/org/apache/juddi/v3/client/config/ juddi-client/src/test/java/org/apache/juddi/v3/client/mapping/ juddi-core/src/main/java/org/apache/juddi/validation/ juddi-cor...
Date Thu, 12 Dec 2013 00:27:32 GMT
Modified: juddi/branches/juddi-3.3.x/uddi-tck/src/test/java/org/apache/juddi/v3/tck/UDDI_140_NegativePublicationIntegrationTest.java
URL: http://svn.apache.org/viewvc/juddi/branches/juddi-3.3.x/uddi-tck/src/test/java/org/apache/juddi/v3/tck/UDDI_140_NegativePublicationIntegrationTest.java?rev=1550327&r1=1550326&r2=1550327&view=diff
==============================================================================
--- juddi/branches/juddi-3.3.x/uddi-tck/src/test/java/org/apache/juddi/v3/tck/UDDI_140_NegativePublicationIntegrationTest.java (original)
+++ juddi/branches/juddi-3.3.x/uddi-tck/src/test/java/org/apache/juddi/v3/tck/UDDI_140_NegativePublicationIntegrationTest.java Thu Dec 12 00:27:31 2013
@@ -18,6 +18,7 @@ import java.rmi.RemoteException;
 import java.util.List;
 import java.util.UUID;
 import javax.xml.soap.SOAPFault;
+import javax.xml.ws.BindingProvider;
 import javax.xml.ws.soap.SOAPFaultException;
 
 import org.apache.commons.configuration.ConfigurationException;
@@ -70,2385 +71,2400 @@ import org.uddi.v3_service.UDDISecurityP
  * a Publication endpoint. Tests that succeed or return stack traces are
  * actually failing test cases
  *
- * This is incomplete. items left to test: all service related entries,
- * including binding templates business/contact/useType business/contact/address
- * amd addressLine business/catgag, ident bag
+ * This class is for the most part complete.
  *
  * @author <a href="mailto:alexoree@apache.org">Alex O'Ree</a>
  */
 public class UDDI_140_NegativePublicationIntegrationTest {
 
-    private static Log logger = LogFactory.getLog(UDDI_140_NegativePublicationIntegrationTest.class);
-    static UDDISecurityPortType security = null;
-    static UDDIInquiryPortType inquiry = null;
-    static UDDIPublicationPortType publication = null;
-    static TckTModel tckTModel               = null;
-
-    protected static String authInfoJoe = null;
-    protected static String authInfoSam = null;
-    private static UDDIClient manager;
-    static final String str256 = "1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
-    static final String str255 = "uddi:tmodelkey:categories:1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
-    static final String strkey256 = "uddi:tmodelkey:categories:11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
-    static final String strkey256_1 = "uddi:org.apache:omething.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.somethi.com";
-    static final String str26 = "11111111111111111111111111";
-    static final String str27 = "111111111111111111111111110";
-    static final String str10 = "0123456789";
-    static final String str11 = "01234567890";
-    static final String str80 = "01234567890123456789012345678901234567890123456789012345678901234567890123456789";
-    static final String str81 = "012345678901234567890123456789012345678901234567890123456789012345678901234567891";
-    static final String TRANS = "The transaction has been rolled back";
-    static final String str4096 = "12345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000XXXXXXXX";
-    static final String str4097 = "12345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000XXXXXXXXZ";
-    static final String str51 = "111111111111111111111111111111111111111111111111111";
-    static final String str50 = "11111111111111111111111111111111111111111111111111";
-    static final String MISSING_RESOURCE = "Can't find resource for bundle";
-
-    @AfterClass
-    public static  void stopManager() throws ConfigurationException {
-        manager.stop();
-    }
-
-    @BeforeClass
-    public static void startManager() throws ConfigurationException {
-        manager = new UDDIClient();
-        manager.start();
-
-        logger.debug("Getting auth tokens..");
-        try {
-            Transport transport = manager.getTransport();
-            security = transport.getUDDISecurityService();
-            authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
-            authInfoSam = TckSecurity.getAuthToken(security, TckPublisher.getSamPublisherId(), TckPublisher.getSamPassword());
-            Assert.assertNotNull(authInfoJoe);
-            Assert.assertNotNull(authInfoSam);
-
-            publication = transport.getUDDIPublishService();
-            inquiry = transport.getUDDIInquiryService();
-            tckTModel  = new TckTModel(publication, inquiry);
-            
-            String authInfoUDDI  = TckSecurity.getAuthToken(security, TckPublisher.getUDDIPublisherId(),  TckPublisher.getUDDIPassword());
-			tckTModel.saveUDDIPublisherTmodel(authInfoUDDI);
-			tckTModel.saveTModels(authInfoUDDI, TckTModel.TMODELS_XML);
-			tckTModel.saveJoePublisherTmodel(authInfoJoe);
-        } catch (Exception e) {
-            logger.error(e.getMessage(), e);
-            Assert.fail("Could not obtain authInfo token.");
-        }
-    }
-
-    static void HandleException(Exception ex) {
-    	if (logger.isDebugEnabled()) {
-	        System.err.println("Error caught of type " + ex.getClass().getCanonicalName());
-	        ex.printStackTrace();
-    	}
-        Assert.assertFalse(ex.getMessage().contains(TRANS));
-        Assert.assertFalse(ex.getMessage().contains(MISSING_RESOURCE));
-        if (ex instanceof SOAPFault) {
-            SOAPFault sf = (SOAPFault) ex;
-            if (!sf.getTextContent().contains("org.apache.juddi.v3.error.ValueNotAllowedException")) {
-                Assert.fail();
-            }
-        }
-    }
-
-    //<editor-fold defaultstate="collapsed" desc="Business Name tests">
-    @Test
-    public void BusinessNameSanityTest() {
-        System.out.println("BusinessNameSanityTest");
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void BusinessKeyTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessKeyTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("Hello Nurse");
-        be.getName().add(n);
-        be.setBusinessKey(strkey256_1);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void BusinessNameTooShortTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessNameTooShortTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("");
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void BusinessNameMinLengthTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessNameMinLengthTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("1");
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void BusinessNameTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessNameTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        //256 chars
-        n.setValue(str256);
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-
-    }
-
-    @Test
-    public void BusinessNameMaxLengthTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessNameMaxLengthTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        //255 chars
-        n.setValue(str255);
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void BusinessNameLangTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessNameLangTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        //27
-        n.setLang(str27);
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-
-    }
-
-    @Test
-    public void BusinessNameLangMaxLengthTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessNameLangMaxLengthTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        n.setLang(str26);
-
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-    
-    @Test(expected = SOAPFaultException.class)
-    public void BusinessDescriptionLangTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessDescriptionLangTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        Description d = new Description();
-        d.setValue("a description");
-        //27
-        d.setLang(str27);
-        be.getName().add(n);
-        be.getDescription().add(d);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-
-    }
-
-    @Test
-    public void BusinessDescriptionLangMaxLengthTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessDescriptionLangMaxLengthTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        Description d = new Description();
-        d.setValue("a description");
-        //26
-        d.setLang(str26);
-        be.getDescription().add(d);
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test
-    public void BusinessDescriptionMaxLengthTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessDescriptionMaxLengthTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        Description d = new Description();
-        d.setValue(str255);
-        be.getDescription().add(d);
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void BusinessDescriptionTooLongLengthTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessDescriptionTooLongLengthTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        Description d = new Description();
-        d.setValue(str256);
-        be.getDescription().add(d);
-        be.getName().add(n);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-
-    }
-    
-    @Test(expected = SOAPFaultException.class)
-    public void BusinessDiscoveryURLTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessDiscoveryURLTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setDiscoveryURLs(new DiscoveryURLs());
-        DiscoveryURL d = new DiscoveryURL();
-        d.setValue(str4097);
-        be.getDiscoveryURLs().getDiscoveryURL().add(d);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-
-    }
-
-    @Test
-    public void BusinessDiscoveryURLMaxLengthTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessDiscoveryURLMaxLengthTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setDiscoveryURLs(new DiscoveryURLs());
-        DiscoveryURL d = new DiscoveryURL();
-        d.setValue(str4096);
-        be.getDiscoveryURLs().getDiscoveryURL().add(d);
-        sb.getBusinessEntity().add(be);
-     
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test
-    public void BusinessDiscoveryURLMaxLengthMaxUseTypeTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessDiscoveryURLMaxLengthMaxUseTypeTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setDiscoveryURLs(new DiscoveryURLs());
-        DiscoveryURL d = new DiscoveryURL();
-        d.setValue(str4096);
-        d.setUseType(str255);
-        be.getDiscoveryURLs().getDiscoveryURL().add(d);
-        sb.getBusinessEntity().add(be);
-   
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void BusinessDiscoveryURLMaxLengthToolongUseTypeTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BusinessDiscoveryURLMaxLengthToolongUseTypeTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setDiscoveryURLs(new DiscoveryURLs());
-        DiscoveryURL d = new DiscoveryURL();
-        d.setValue(str4096);
-        d.setUseType(str256);
-        be.getDiscoveryURLs().getDiscoveryURL().add(d);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-    
-    @Test
-    public void ContactMaxEmailMaxUseTypeTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxEmailMaxUseTypeTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactMaxEmailMaxUseType());
-        sb.getBusinessEntity().add(be);
+        private static Log logger = LogFactory.getLog(UDDI_140_NegativePublicationIntegrationTest.class);
+        static UDDISecurityPortType security = null;
+        static UDDIInquiryPortType inquiryJoe = null;
+        static UDDIPublicationPortType publicationJoe = null;
+        static TckTModel tckTModelJoe = null;
         
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    private Contacts ContactMaxEmailMaxUseType() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Email m = new Email();
-        m.setValue(str255);
-        m.setUseType(str255);
-        c.getEmail().add(m);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactTooLongEmailMaxUseType() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Email m = new Email();
-        m.setValue(str256);
-        m.setUseType(str255);
-        c.getEmail().add(m);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactEmailUseTypeToolong() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Email m = new Email();
-        m.setValue(str255);
-        m.setUseType(str256);
-        c.getEmail().add(m);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactMaxDescription() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Email m = new Email();
-        m.setValue(str255);
-        m.setUseType(str255);
-        c.getEmail().add(m);
-        Description d = new Description();
-        d.setLang(str26);
-        d.setValue(str255);
-        c.getDescription().add(d);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactDescriptionTooLong() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Email m = new Email();
-        m.setValue(str255);
-        m.setUseType(str255);
-        c.getEmail().add(m);
-        Description d = new Description();
-        d.setLang(str256);
-        d.setValue(str26);
-        c.getDescription().add(d);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactPhoneTooLong() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Phone p = new Phone();
-        p.setValue(str51);
-        c.getPhone().add(p);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactPhoneUseTypeTooLong() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Phone p = new Phone();
-        p.setValue(str50);
-        p.setUseType(str256);
-        c.getPhone().add(p);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactPhoneUseTypeMaxLen() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Phone p = new Phone();
-        p.setValue(str50);
-        p.setUseType(str255);
-        c.getPhone().add(p);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactPhoneMaxLength() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Phone p = new Phone();
-        p.setValue(str50);
-        c.getPhone().add(p);
-        cc.getContact().add(c);;
-        return cc;
-    }
-
-    private Contacts ContactAddressAllMax(boolean oversizedLang, boolean oversizedTmodel, boolean oversizedSortCode, boolean oversizedUseType,
-            boolean oversizedAddressLineValue, boolean oversizedAddressKN, boolean oversizedAddressKV) {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-
-        cc.getContact().add(c);
-        Address a = new Address();
-        if (oversizedSortCode) {
-            a.setSortCode(str11);
-        } else {
-            a.setSortCode(str10);
-        }
-        if (oversizedLang) {
-            a.setLang(str27);
-        } else {
-            a.setLang(str26);
-        }
-        if (oversizedTmodel) {
-            a.setTModelKey(str256);
-        } else {
-            a.setTModelKey(str255);
-        }
-        if (oversizedUseType) {
-            a.setUseType(str256);
-        } else {
-            a.setUseType(str255);
-        }
-        if (oversizedSortCode) {
-            a.setSortCode(str11);
-        } else {
-            a.setSortCode(str10);
-        }
-        AddressLine al = new AddressLine();
-        if (oversizedAddressKN) {
-            al.setKeyName(str256); //optional
-        } else {
-            al.setKeyName(str255); //optional
-        }
-        if (oversizedAddressKV) {
-            al.setKeyValue(str256); //optional
-        } else {
-            al.setKeyValue(str255); //optional
-        }
-        if (oversizedAddressLineValue) {
-            al.setValue(str81); //this one is required
-        } else {
-            al.setValue(str80);
-        }
-        a.getAddressLine().add(al);
-        c.getAddress().add(a);
-        return cc;
-    }
-
-    private Contacts ContactDescriptionLangTooLong() {
-        Contacts cc = new Contacts();
-        Contact c = new Contact();
-        PersonName n = new PersonName();
-        n.setValue("Bob");
-        c.getPersonName().add(n);
-        Email m = new Email();
-        m.setValue(str255);
-        m.setUseType(str255);
-        c.getEmail().add(m);
-        Description d = new Description();
-        d.setLang(str255);
-        d.setValue(str27);
-        c.getDescription().add(d);
-        cc.getContact().add(c);
-        return cc;
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void ContactTooLongEmailMaxUseTypeTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactTooLongEmailMaxUseTypeTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactTooLongEmailMaxUseType());
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void ContactMaxEmailToolongUseTypeTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxEmailToolongUseTypeTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-
-        be.setContacts(ContactEmailUseTypeToolong());
-
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void ContactDescriptionMaxLangMaxtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactDescriptionMaxLangMaxtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactMaxDescription());
-        sb.getBusinessEntity().add(be);
-     
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
+        protected static String authInfoJoe = null;
         
-    }
-
-    @Test (expected = SOAPFaultException.class)
-    public void ContactDescriptionTooLongtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactDescriptionTooLongtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactDescriptionTooLong());
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test (expected = SOAPFaultException.class)
-    public void ContactDescriptionLangTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactDescriptionLangTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactDescriptionLangTooLong());
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void ContactPhoneMaxLentest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactPhoneMaxLentest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactPhoneMaxLength());
-        sb.getBusinessEntity().add(be);
-       
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ContactPhoneTooLongtest() throws DispositionReportFaultMessage, RemoteException  {
-        System.out.println("ContactPhoneTooLongtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactPhoneTooLong());
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void ContactPhoneMaxLongtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactPhoneMaxLongtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactPhoneMaxLength());
-        sb.getBusinessEntity().add(be);
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test
-    public void ContactPhoneMaxLongMaxUseTypetest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactPhoneMaxLongMaxUseTypetest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactPhoneUseTypeMaxLen());
-        sb.getBusinessEntity().add(be);
-        
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected = SOAPFaultException.class)
-    public void ContactPhoneUseTypeTooLongtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactPhoneUseTypeTooLongtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactPhoneUseTypeTooLong());
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void ContactMaxAddressFFFFFFFtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxAddressFFFFFFFtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactAddressAllMax(false, false, false, false, false, false, false));
-        sb.getBusinessEntity().add(be);
-       
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ContactMaxAddressTFFFFFFtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxAddressTFFFFFFtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactAddressAllMax(true, false, false, false, false, false, false));
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ContactMaxAddressFTFFFFFtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxAddressFTFFFFFtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactAddressAllMax(false, true, false, false, false, false, false));
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ContactMaxAddressFFTFFFFtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxAddressFFTFFFFtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactAddressAllMax(false, false, true, false, false, false, false));
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ContactMaxAddressFFFTFFFtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxAddressFFFTFFFtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactAddressAllMax(false, false, false, true, false, false, false));
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ContactMaxAddressFFFFTFFtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxAddressFFFFTFFtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactAddressAllMax(false, false, false, false, true, false, false));
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ContactMaxAddressFFFFFTFtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxAddressFFFFFTFtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactAddressAllMax(false, false, false, false, false, true, false));
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ContactMaxAddressFFFFFFTtest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ContactMaxAddressFFFFFFTtest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setContacts(ContactAddressAllMax(false, false, false, false, false, false, true));
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void KeyReferenceMax() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("KeyReferenceMax");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setCategoryBag(new CategoryBag());
-        KeyedReference kr = new KeyedReference();
-        kr.setKeyName(str255);
-        kr.setKeyValue(str255);
-        kr.setTModelKey(str255);
-        be.getCategoryBag().getKeyedReference().add(kr);
-        sb.getBusinessEntity().add(be);
+        private static UDDIClient manager;
+        static final String str256 = "1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
+        static final String str255 = "uddi:tmodelkey:categories:1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
+        static final String strkey256 = "uddi:tmodelkey:categories:11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111";
+        static final String strkey256_1 = "uddi:org.apache:omething.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.something.somethi.com";
+        static final String str26 = "11111111111111111111111111";
+        static final String str27 = "111111111111111111111111110";
+        static final String str10 = "0123456789";
+        static final String str11 = "01234567890";
+        static final String str80 = "01234567890123456789012345678901234567890123456789012345678901234567890123456789";
+        static final String str81 = "012345678901234567890123456789012345678901234567890123456789012345678901234567891";
+        static final String TRANS = "The transaction has been rolled back";
+        static final String str4096 = "1234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000XXXXXXXX";
+        static final String str4097 = "1234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000012345670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001234567000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000123456700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000XXXXXXXXZ";
+        static final String str51 = "111111111111111111111111111111111111111111111111111";
+        static final String str50 = "11111111111111111111111111111111111111111111111111";
+        static final String MISSING_RESOURCE = "Can't find resource for bundle";
+
+        @AfterClass
+        public static void stopManager() throws ConfigurationException {
+                manager.stop();
+        }
+
+        @BeforeClass
+        public static void startManager() throws ConfigurationException {
+                manager = new UDDIClient();
+                manager.start();
+
+                logger.debug("Getting auth tokens..");
+                try {
+                        Transport transport = manager.getTransport();
+                        security = transport.getUDDISecurityService();
+                        authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
         
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void KeyReferenceKeyTooLong() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("KeyReferenceKeyTooLong");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setCategoryBag(new CategoryBag());
-        KeyedReference kr = new KeyedReference();
-        kr.setKeyName(str255);
-        kr.setKeyValue(str255);
-        kr.setTModelKey(str256);
-        be.getCategoryBag().getKeyedReference().add(kr);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void KeyReferenceNameTooLong() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("KeyReferenceNameTooLong");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setCategoryBag(new CategoryBag());
-        KeyedReference kr = new KeyedReference();
-        kr.setKeyName(str256);
-        kr.setKeyValue(str255);
-        kr.setTModelKey(str255);
-        be.getCategoryBag().getKeyedReference().add(kr);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void KeyReferenceValueTooLong() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("KeyReferenceValueTooLong");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setCategoryBag(new CategoryBag());
-        KeyedReference kr = new KeyedReference();
-        kr.setKeyName(str255);
-        kr.setKeyValue(str256);
-        kr.setTModelKey(str255);
-        be.getCategoryBag().getKeyedReference().add(kr);
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-    
-    @Test(expected=SOAPFaultException.class)
-    public void ServiceNameTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceNameTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        n = new Name();
-        n.setValue(str256);
-        bs.getName().add(n);
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void ServiceNameMaxLenTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceNameMaxLenTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-       
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test
-    public void ServiceNameMaxLangLenTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceNameMaxLangLenTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        n = new Name();
-        n.setValue(str255);
-        n.setLang(str26);
-        bs.getName().add(n);
-        be.getBusinessServices().getBusinessService().add(bs);
 
-        sb.getBusinessEntity().add(be);
-        
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ServiceNameTooLongLangTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceNameTooLongLangTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        n = new Name();
-        n.setValue(str255);
-        n.setLang(str27);
-        bs.getName().add(n);
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ServiceDescTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceDescTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        Description d = new Description();
-        d.setValue(str256);
-        bs.getDescription().add(d);
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ServiceDescLangTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceDescLangTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        Description d = new Description();
-        d.setValue(str255);
-        d.setLang(str27);
-        bs.getDescription().add(d);
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void ServiceDescMaxLangTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceDescMaxLangTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        Description d = new Description();
-        d.setValue(str255);
-        d.setLang(str26);
-        bs.getDescription().add(d);
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-       
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-        
-    }
+                        publicationJoe = transport.getUDDIPublishService();
+                        inquiryJoe = transport.getUDDIInquiryService();
 
-    @Test
-    public void ServiceMaxCatBagTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceDescMaxLangTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        Description d = new Description();
-        d.setValue(str255);
-        d.setLang(str26);
-        bs.getDescription().add(d);
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        bs.setCategoryBag(new CategoryBag());
-        KeyedReference kr = new KeyedReference();
-        kr.setKeyName(str255);
-        kr.setKeyValue(str255);
-        kr.setTModelKey(str255);
-        bs.getCategoryBag().getKeyedReference().add(kr);
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-       
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void ServiceMaxCatBagTooBigTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("ServiceMaxCatBagTooBigTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-        Description d = new Description();
-        d.setValue(str255);
-        d.setLang(str26);
-        bs.getDescription().add(d);
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        bs.setCategoryBag(new CategoryBag());
-        KeyedReference kr = new KeyedReference();
-        kr.setKeyName(str256);
-        kr.setKeyValue(str256);
-        kr.setTModelKey(str256);
-        bs.getCategoryBag().getKeyedReference().add(kr);
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-   
-    @Test(expected=SOAPFaultException.class)
-    public void BindingTemplateNoAccessPointTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BindingTemplateNoAccessPointTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        BindingTemplate bt = new BindingTemplate();
-        bs.setBindingTemplates(new BindingTemplates());
-        bs.getBindingTemplates().getBindingTemplate().add(bt);
-
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test
-    public void BindingTemplateAccessPointMaxUseTypeTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BindingTemplateAccessPointMaxUseTypeTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        BindingTemplate bt = new BindingTemplate();
-        bs.setBindingTemplates(new BindingTemplates());
-        AccessPoint ap = new AccessPoint();
-        ap.setUseType(str255);
-        ap.setValue("http://localhost");
-        bt.setAccessPoint(ap);
-        bs.getBindingTemplates().getBindingTemplate().add(bt);
-
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-       
-        BusinessDetail saveBusiness = publication.saveBusiness(sb);
-        DeleteBusiness db = new DeleteBusiness();
-        db.setAuthInfo(authInfoJoe);
-        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-        publication.deleteBusiness(db);
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void BindingTemplateAccessPointUseTypeTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BindingTemplateAccessPointUseTypeTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        BindingTemplate bt = new BindingTemplate();
-        bs.setBindingTemplates(new BindingTemplates());
-        AccessPoint ap = new AccessPoint();
-        ap.setUseType(str256);
-        ap.setValue("http://localhost");
-        bt.setAccessPoint(ap);
-        bs.getBindingTemplates().getBindingTemplate().add(bt);
-
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);
-            Assert.fail("request should have been rejected");
-
-        } catch (SOAPFaultException ex) {
-            HandleException(ex);
-            throw ex;
-        }
-    }
-
-    @Test(expected=SOAPFaultException.class)
-    public void BindingTemplateAccessPointValueTooLongTest() throws DispositionReportFaultMessage, RemoteException {
-        System.out.println("BindingTemplateAccessPointValueTooLongTest");
-        SaveBusiness sb = new SaveBusiness();
-        sb.setAuthInfo(authInfoJoe);
-        BusinessEntity be = new BusinessEntity();
-        Name n = new Name();
-        n.setValue("A Test business");
-        be.getName().add(n);
-        be.setBusinessServices(new BusinessServices());
-        BusinessService bs = new BusinessService();
-
-        n = new Name();
-        n.setValue(str255);
-        bs.getName().add(n);
-        BindingTemplate bt = new BindingTemplate();
-        bs.setBindingTemplates(new BindingTemplates());
-        AccessPoint ap = new AccessPoint();
-        ap.setUseType(str255);
-        ap.setValue(str4097);
-        bt.setAccessPoint(ap);
-        bs.getBindingTemplates().getBindingTemplate().add(bt);
-
-        be.getBusinessServices().getBusinessService().add(bs);
-
-        sb.getBusinessEntity().add(be);
-        try {
-            BusinessDetail saveBusiness = publication.saveBusiness(sb);
-            DeleteBusiness db = new DeleteBusiness();
-            db.setAuthInfo(authInfoJoe);
-            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
-            publication.deleteBusiness(db);

[... 3081 lines stripped ...]


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message