Modified: juddi/trunk/uddi-tck/src/main/resources/META-INF/uddi.xml URL: http://svn.apache.org/viewvc/juddi/trunk/uddi-tck/src/main/resources/META-INF/uddi.xml?rev=1559368&r1=1559367&r2=1559368&view=diff ============================================================================== --- juddi/trunk/uddi-tck/src/main/resources/META-INF/uddi.xml (original) +++ juddi/trunk/uddi-tck/src/main/resources/META-INF/uddi.xml Sat Jan 18 17:24:41 2014 @@ -1,139 +1,141 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <uddi xmlns="urn:juddi-apache-org:v3_client" xsi:schemaLocation="classpath:/xsd/uddi-client.xsd"> - <reloadDelay>5000</reloadDelay> - <client name="test-client"> - <nodes> - <node isHomeJUDDI="true"> - <!-- required 'default' node --> - <name>default</name> - <description>Main jUDDI node</description> - <properties> - <property name="serverName" value="localhost" /> - <property name="serverPort" value="8880" /> - <!-- for UDDI nodes that use HTTP u/p, using the following - <property name="basicAuthUsername" value="root" /> - <property name="basicAuthPassword" value="password" /> - <property name="basicAuthPasswordIsEncrypted" value="false" /> - <property name="basicAuthPasswordCryptoProvider" value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />--> - </properties> - <!-- systinet - <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> - <inquiryUrl>http://${serverName}:${serverPort}/registry/uddi/inquiry</inquiryUrl> - <publishUrl>http://${serverName}:${serverPort}/registry/uddi/publishing</publishUrl> - <securityUrl>http://${serverName}:${serverPort}/registry/uddi/security</securityUrl> - --> - <!-- JAX-WS Transport --> - <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> - <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer</custodyTransferUrl> - <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry</inquiryUrl> - <inquiryRESTUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiryRest</inquiryRESTUrl> - <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish</publishUrl> - <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security</securityUrl> - <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription</subscriptionUrl> - <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener</subscriptionListenerUrl> - <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api</juddiApiUrl> + <reloadDelay>5000</reloadDelay> + <client name="test-client"> + <nodes> + <node isHomeJUDDI="true"> + <!-- required 'default' node --> + <name>default</name> + <description>Main jUDDI node</description> + <properties> + <property name="serverName" value="localhost" /> + <property name="serverPort" value="8880" /> + <!-- for UDDI nodes that use HTTP u/p, using the following + <property name="basicAuthUsername" value="root" /> + <property name="basicAuthPassword" value="password" /> + <property name="basicAuthPasswordIsEncrypted" value="false" /> + <property name="basicAuthPasswordCryptoProvider" value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />--> + </properties> + <!-- systinet + <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> + <inquiryUrl>http://${serverName}:${serverPort}/registry/uddi/inquiry</inquiryUrl> + <publishUrl>http://${serverName}:${serverPort}/registry/uddi/publishing</publishUrl> + <securityUrl>http://${serverName}:${serverPort}/registry/uddi/security</securityUrl> + --> + <!-- JAX-WS Transport --> + <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> + <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer</custodyTransferUrl> + <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry</inquiryUrl> + <inquiryRESTUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiryRest</inquiryRESTUrl> + <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish</publishUrl> + <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security</securityUrl> + <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription</subscriptionUrl> + <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener</subscriptionListenerUrl> + <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api</juddiApiUrl> + <!-- this is just for juddi gui tests --> + <juddigui>http://${serverName}:${serverPort}/juddi-gui/</juddigui> - <!-- AXIS JAX-WS Transport - <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> - <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDICustodyTransferService</custodyTransferUrl> - <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDIInquiryService</inquiryUrl> - <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDIPublicationService</publishUrl> - <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDISecurityService</securityUrl> - <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDISubscriptionService</subscriptionUrl> - <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDISubscriptionListenerService</subscriptionListenerUrl> - <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/JUDDIApiService</juddiApiUrl> - --> - <!-- EAP JAX-WS Transport - <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> - <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/UDDICustodyTransferService</custodyTransferUrl> - <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/UDDIInquiryService</inquiryUrl> - <publishUrl>http://${serverName}:${serverPort}/juddiv3/UDDIPublicationService</publishUrl> - <securityUrl>http://${serverName}:${serverPort}/juddiv3/UDDISecurityService</securityUrl> - <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/UDDISubscriptionService</subscriptionUrl> - <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/UDDISubscriptionListenerService</subscriptionListenerUrl> - <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/JUDDIApiService</juddiApiUrl> - --> - <!-- In VM Transport Settings - <proxyTransport>org.apache.juddi.v3.client.transport.InVMTransport</proxyTransport> - <custodyTransferUrl>org.apache.juddi.api.impl.UDDICustodyTransferImpl</custodyTransferUrl> - <inquiryUrl>org.apache.juddi.api.impl.UDDIInquiryImpl</inquiryUrl> - <publishUrl>org.apache.juddi.api.impl.UDDIPublicationImpl</publishUrl> - <securityUrl>org.apache.juddi.api.impl.UDDISecurityImpl</securityUrl> - <subscriptionUrl>org.apache.juddi.api.impl.UDDISubscriptionImpl</subscriptionUrl> - <subscriptionListenerUrl>org.apache.juddi.api.impl.UDDISubscriptionListenerImpl</subscriptionListenerUrl> - <juddiApiUrl>org.apache.juddi.api.impl.JUDDIApiImpl</juddiApiUrl> - --> - <!-- RMI Transport Settings - <proxyTransport>org.apache.juddi.v3.client.transport.RMITransport</proxyTransport> - <custodyTransferUrl>/juddiv3/UDDICustodyTransferService</custodyTransferUrl> - <inquiryUrl>/juddiv3/UDDIInquiryService</inquiryUrl> - <publishUrl>/juddiv3/UDDIPublicationService</publishUrl> - <securityUrl>/juddiv3/UDDISecurityService</securityUrl> - <subscriptionUrl>/juddiv3/UDDISubscriptionService</subscriptionUrl> - <subscriptionListenerUrl>/juddiv3/UDDISubscriptionListenerService</subscriptionListenerUrl> - <juddiApiUrl>/juddiv3/JUDDIApiService</juddiApiUrl> - <javaNamingFactoryInitial>org.jnp.interfaces.NamingContextFactory</javaNamingFactoryInitial> - <javaNamingFactoryUrlPkgs>org.jboss.naming</javaNamingFactoryUrlPkgs> - <javaNamingProviderUrl>jnp://localhost:1099</javaNamingProviderUrl> - --> - </node> - <node> - <name>med</name> - <description>jUDDI node in other Department</description> - <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> - <custodyTransferUrl>http://med:8080/juddiv3/services/custody-transfer/</custodyTransferUrl> - <inquiryUrl>http://med:8080/juddiv3/services/inquiry/</inquiryUrl> - <publishUrl>http://med:8080/juddiv3/services/publish/</publishUrl> - <securityUrl>http://med:8080/juddiv3/services/security/</securityUrl> - <subscriptionUrl>http://med:8080/juddiv3/services/subscription/</subscriptionUrl> - <subscriptionListenerUrl>http://med:8080/juddiv3/services/subscription-listener/</subscriptionListenerUrl> - <juddiApiUrl>http://med:8080/juddiv3/services/juddi-api?wsdl</juddiApiUrl> - </node> - </nodes> + <!-- AXIS JAX-WS Transport + <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> + <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDICustodyTransferService</custodyTransferUrl> + <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDIInquiryService</inquiryUrl> + <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDIPublicationService</publishUrl> + <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDISecurityService</securityUrl> + <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDISubscriptionService</subscriptionUrl> + <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/UDDISubscriptionListenerService</subscriptionListenerUrl> + <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/JUDDIApiService</juddiApiUrl> + --> + <!-- EAP JAX-WS Transport + <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> + <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/UDDICustodyTransferService</custodyTransferUrl> + <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/UDDIInquiryService</inquiryUrl> + <publishUrl>http://${serverName}:${serverPort}/juddiv3/UDDIPublicationService</publishUrl> + <securityUrl>http://${serverName}:${serverPort}/juddiv3/UDDISecurityService</securityUrl> + <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/UDDISubscriptionService</subscriptionUrl> + <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/UDDISubscriptionListenerService</subscriptionListenerUrl> + <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/JUDDIApiService</juddiApiUrl> + --> + <!-- In VM Transport Settings + <proxyTransport>org.apache.juddi.v3.client.transport.InVMTransport</proxyTransport> + <custodyTransferUrl>org.apache.juddi.api.impl.UDDICustodyTransferImpl</custodyTransferUrl> + <inquiryUrl>org.apache.juddi.api.impl.UDDIInquiryImpl</inquiryUrl> + <publishUrl>org.apache.juddi.api.impl.UDDIPublicationImpl</publishUrl> + <securityUrl>org.apache.juddi.api.impl.UDDISecurityImpl</securityUrl> + <subscriptionUrl>org.apache.juddi.api.impl.UDDISubscriptionImpl</subscriptionUrl> + <subscriptionListenerUrl>org.apache.juddi.api.impl.UDDISubscriptionListenerImpl</subscriptionListenerUrl> + <juddiApiUrl>org.apache.juddi.api.impl.JUDDIApiImpl</juddiApiUrl> + --> + <!-- RMI Transport Settings + <proxyTransport>org.apache.juddi.v3.client.transport.RMITransport</proxyTransport> + <custodyTransferUrl>/juddiv3/UDDICustodyTransferService</custodyTransferUrl> + <inquiryUrl>/juddiv3/UDDIInquiryService</inquiryUrl> + <publishUrl>/juddiv3/UDDIPublicationService</publishUrl> + <securityUrl>/juddiv3/UDDISecurityService</securityUrl> + <subscriptionUrl>/juddiv3/UDDISubscriptionService</subscriptionUrl> + <subscriptionListenerUrl>/juddiv3/UDDISubscriptionListenerService</subscriptionListenerUrl> + <juddiApiUrl>/juddiv3/JUDDIApiService</juddiApiUrl> + <javaNamingFactoryInitial>org.jnp.interfaces.NamingContextFactory</javaNamingFactoryInitial> + <javaNamingFactoryUrlPkgs>org.jboss.naming</javaNamingFactoryUrlPkgs> + <javaNamingProviderUrl>jnp://localhost:1099</javaNamingProviderUrl> + --> + </node> + <node> + <name>med</name> + <description>jUDDI node in other Department</description> + <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport> + <custodyTransferUrl>http://med:8080/juddiv3/services/custody-transfer/</custodyTransferUrl> + <inquiryUrl>http://med:8080/juddiv3/services/inquiry/</inquiryUrl> + <publishUrl>http://med:8080/juddiv3/services/publish/</publishUrl> + <securityUrl>http://med:8080/juddiv3/services/security/</securityUrl> + <subscriptionUrl>http://med:8080/juddiv3/services/subscription/</subscriptionUrl> + <subscriptionListenerUrl>http://med:8080/juddiv3/services/subscription-listener/</subscriptionListenerUrl> + <juddiApiUrl>http://med:8080/juddiv3/services/juddi-api?wsdl</juddiApiUrl> + </node> + </nodes> - <clerks registerOnStartup="false"> - <clerk name="default" node="default" publisher="root" password="root" isPasswordEncrypted="false" cryptoProvider=""/> - <clerk name="medroot" node="med" publisher="root" password="root" isPasswordEncrypted="false" cryptoProvider=""/> - <xregister> - <service bindingKey="uddi:juddi.apache.org:servicebindings-subscriptionlistener-ws" fromClerk="default" toClerk="medroot"/> - </xregister> - <subscription subscriptionKey=" " clerk="medroot" /> - </clerks> - <signature> - <!-- signing stuff --> - <signingKeyStorePath>keystore.jks</signingKeyStorePath> - <signingKeyStoreType>JKS</signingKeyStoreType> - <signingKeyStoreFilePassword - isPasswordEncrypted="false" - cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</signingKeyStoreFilePassword> - <signingKeyPassword - isPasswordEncrypted="false" - cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</signingKeyPassword> - <signingKeyAlias>my special key</signingKeyAlias> + <clerks registerOnStartup="false"> + <clerk name="default" node="default" publisher="root" password="root" isPasswordEncrypted="false" cryptoProvider=""/> + <clerk name="medroot" node="med" publisher="root" password="root" isPasswordEncrypted="false" cryptoProvider=""/> + <xregister> + <service bindingKey="uddi:juddi.apache.org:servicebindings-subscriptionlistener-ws" fromClerk="default" toClerk="medroot"/> + </xregister> + <subscription subscriptionKey=" " clerk="medroot" /> + </clerks> + <signature> + <!-- signing stuff --> + <signingKeyStorePath>keystore.jks</signingKeyStorePath> + <signingKeyStoreType>JKS</signingKeyStoreType> + <signingKeyStoreFilePassword + isPasswordEncrypted="false" + cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</signingKeyStoreFilePassword> + <signingKeyPassword + isPasswordEncrypted="false" + cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</signingKeyPassword> + <signingKeyAlias>my special key</signingKeyAlias> - <canonicalizationMethod>http://www.w3.org/2001/10/xml-exc-c14n#</canonicalizationMethod> - <signatureMethod>http://www.w3.org/2000/09/xmldsig#rsa-sha1</signatureMethod> - <XML_DIGSIG_NS>http://www.w3.org/2000/09/xmldsig#</XML_DIGSIG_NS> + <canonicalizationMethod>http://www.w3.org/2001/10/xml-exc-c14n#</canonicalizationMethod> + <signatureMethod>http://www.w3.org/2000/09/xmldsig#rsa-sha1</signatureMethod> + <XML_DIGSIG_NS>http://www.w3.org/2000/09/xmldsig#</XML_DIGSIG_NS> - <!-- validation stuff - Used whenever someone views an entity that is signed and validation is required --> - <!-- if this doesn't exist or is incorrect, the client will atempt to load the standard jdk trust store--> - <trustStorePath>truststore.jks</trustStorePath> - <trustStoreType>JKS</trustStoreType> - <trustStorePassword - isPasswordEncrypted="false" - cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</trustStorePassword> + <!-- validation stuff + Used whenever someone views an entity that is signed and validation is required --> + <!-- if this doesn't exist or is incorrect, the client will atempt to load the standard jdk trust store--> + <trustStorePath>truststore.jks</trustStorePath> + <trustStoreType>JKS</trustStoreType> + <trustStorePassword + isPasswordEncrypted="false" + cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</trustStorePassword> - <checkTimestamps>true</checkTimestamps> - <checkTrust>true</checkTrust> - <checkRevocationCRL>true</checkRevocationCRL> - <keyInfoInclusionSubjectDN>false</keyInfoInclusionSubjectDN> - <keyInfoInclusionSerial>false</keyInfoInclusionSerial> - <keyInfoInclusionBase64PublicKey>true</keyInfoInclusionBase64PublicKey> - <digestMethod>http://www.w3.org/2000/09/xmldsig#sha1</digestMethod> - </signature> - <subscriptionCallbacks> + <checkTimestamps>true</checkTimestamps> + <checkTrust>true</checkTrust> + <checkRevocationCRL>true</checkRevocationCRL> + <keyInfoInclusionSubjectDN>false</keyInfoInclusionSubjectDN> + <keyInfoInclusionSerial>false</keyInfoInclusionSerial> + <keyInfoInclusionBase64PublicKey>true</keyInfoInclusionBase64PublicKey> + <digestMethod>http://www.w3.org/2000/09/xmldsig#sha1</digestMethod> + </signature> + <subscriptionCallbacks> <keyDomain>uddi:somebusiness</keyDomain> <listenUrl></listenUrl> <!-- leave this blank, it will be generated automatically --> <autoRegisterBindingTemplate>true</autoRegisterBindingTemplate> @@ -141,8 +143,8 @@ <signatureBehavior>DoNothing</signatureBehavior> <!--valid values are AbortIfSigned,Sign,DoNothing,SignOnlyIfParentIsntSigned, default is DoNothing--> </subscriptionCallbacks> - <XtoWsdl> - <IgnoreSSLErrors>false</IgnoreSSLErrors> - </XtoWsdl> - </client> + <XtoWsdl> + <IgnoreSSLErrors>false</IgnoreSSLErrors> + </XtoWsdl> + </client> </uddi>
Added: juddi/trunk/uddi-tck/src/test/java/org/apache/juddi/v3/tck/JUDDI_200_GUI_IntegrationTest.java URL: http://svn.apache.org/viewvc/juddi/trunk/uddi-tck/src/test/java/org/apache/juddi/v3/tck/JUDDI_200_GUI_IntegrationTest.java?rev=1559368&view=auto ============================================================================== --- juddi/trunk/uddi-tck/src/test/java/org/apache/juddi/v3/tck/JUDDI_200_GUI_IntegrationTest.java (added) +++ juddi/trunk/uddi-tck/src/test/java/org/apache/juddi/v3/tck/JUDDI_200_GUI_IntegrationTest.java Sat Jan 18 17:24:41 2014 @@ -0,0 +1,212 @@ +/* + * Copyright 2014 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.juddi.v3.tck; + +import java.io.IOException; +import org.apache.commons.configuration.ConfigurationException; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.http.HttpResponse; +import org.apache.http.client.HttpClient; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.impl.client.DefaultHttpClient; +import org.apache.juddi.v3.client.config.TokenResolver; +import org.apache.juddi.v3.client.config.UDDIClerk; +import org.apache.juddi.v3.client.config.UDDIClient; +import org.apache.juddi.v3_service.JUDDIApiPortType; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Assume; +import org.junit.BeforeClass; +import org.junit.Test; +import org.uddi.v3_service.UDDISecurityPortType; + +/** + * + * @author Alex O'Ree + */ +public class JUDDI_200_GUI_IntegrationTest { + + private static final Log logger = LogFactory.getLog(JUDDI_200_GUI_IntegrationTest.class); + private static UDDIClient manager; + private static UDDIClerk clerk; + private static String baseurl = null; + + @AfterClass + public static void stopManager() throws ConfigurationException { + + } + + @BeforeClass + public static void startManager() throws ConfigurationException { + + manager = new UDDIClient(); + baseurl = manager.getClientConfig().getConfiguration().getString("client.nodes.node(0).juddigui"); + if (baseurl != null) { + if (!baseurl.endsWith("/")) { + baseurl = baseurl + "/"; + + } + baseurl = TokenResolver.replaceTokens(baseurl, manager.getClientConfig().getUDDINode("default").getProperties()); + } + } + + @Test + public void Test001() throws Exception { + runTest(baseurl + "home.jsp"); + } + + @Test + public void Test002() throws Exception { + runTest(baseurl + "about.jsp"); + } + + @Test + public void Test003() throws Exception { + runTest(baseurl + "advanced.jsp"); + } + + @Test + public void Test004() throws Exception { + runTest(baseurl + "assertions.jsp"); + } + + @Test + public void Test005() throws Exception { + runTest(baseurl + "bindingChooser.jsp"); + } + + @Test + public void Test006() throws Exception { + runTest(baseurl + "businessBrowse.jsp"); + } + + @Test + public void Test007() throws Exception { + runTest(baseurl + "businessChooser.jsp"); + } + + @Test + public void Test008() throws Exception { + runTest(baseurl + "businessEditor2.jsp"); + } + + @Test + public void Test009() throws Exception { + runTest(baseurl + "editSubscription.jsp"); + } + + @Test + public void Test0010() throws Exception { + runTest(baseurl + "error.jsp"); + } + + @Test + public void Test0011() throws Exception { + runTest(baseurl + "header-top.jsp"); + } + + @Test + public void Test0012() throws Exception { + runTest(baseurl + "home.jsp"); + } + + @Test + public void Test0013() throws Exception { + runTest(baseurl + "importFromWadl.jsp"); + } + + @Test + public void Test0014() throws Exception { + runTest(baseurl + "importFromWsdl.jsp"); + } + + @Test + public void Test0015() throws Exception { + runTest(baseurl + "index.jsp"); + } + + @Test + public void Test0016() throws Exception { + runTest(baseurl + "reginfo.jsp"); + } + + @Test + public void Test0017() throws Exception { + runTest(baseurl + "search.jsp"); + } + + @Test + public void Test0018() throws Exception { + runTest(baseurl + "serviceBrowse.jsp"); + } + + // @Test expect redirect + public void Test0019() throws Exception { + runTest(baseurl + "serviceEditor.jsp?id=uddi:juddi.apache.org:services-inquiry-rest"); + } + + //@Test auth req + public void Test0020() throws Exception { + runTest(baseurl + "settings.jsp"); + } + + @Test + public void Test0021() throws Exception { + runTest(baseurl + "signer.jsp"); + } + + @Test + public void Test0022() throws Exception { + runTest(baseurl + "subscriptionFeed.jsp"); + } + + @Test + public void Test0023() throws Exception { + runTest(baseurl + "tmodelBrowse.jsp"); + } + + @Test + public void Test0024() throws Exception { + runTest(baseurl + "tmodelEditor.jsp?id=uddi:uddi.org:sortorder:binarysort"); + } + + @Test + public void Test0025() throws Exception { + runTest(baseurl + "tmodelPartitions.jsp"); + } + + @Test + public void Test0026() throws Exception { + runTest(baseurl + "transfer.jsp"); + } + + @Test + public void Test0027() throws Exception { + runTest(baseurl + "viewSubscriptions.jsp"); + } + + private void runTest(String url) throws Exception { + Assume.assumeTrue(TckPublisher.isJUDDI()); + Assume.assumeTrue(baseurl != null && baseurl.length() >= 5); + HttpClient client = new DefaultHttpClient(); + HttpGet httpGet = new HttpGet(url); + logger.info("Fetching " + httpGet.getURI()); + HttpResponse response = client.execute(httpGet); + client.getConnectionManager().shutdown(); + Assert.assertTrue(response.getStatusLine().getStatusCode() + " " + response.getStatusLine().getReasonPhrase(), response.getStatusLine().getStatusCode() == 200); + } +} --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
