Author: asoldano
Date: 2015-01-08 09:49:51 -0500 (Thu, 08 Jan 2015)
New Revision: 19347
Removed:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/management/recording/CustomRecordProcessorTestCase.java
Log:
Removing test as it's pretty much useless at this point, with the previously commented
out (fixme) stuff having been removed
Deleted:
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/management/recording/CustomRecordProcessorTestCase.java
===================================================================
---
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/management/recording/CustomRecordProcessorTestCase.java 2015-01-08
11:22:30 UTC (rev 19346)
+++
stack/cxf/branches/arquillian/modules/testsuite/shared-tests/src/test/java/org/jboss/test/ws/management/recording/CustomRecordProcessorTestCase.java 2015-01-08
14:49:51 UTC (rev 19347)
@@ -1,100 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- */
-package org.jboss.test.ws.management.recording;
-
-import java.net.URL;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import org.jboss.arquillian.container.test.api.Deployment;
-import org.jboss.arquillian.container.test.api.RunAsClient;
-import org.jboss.arquillian.junit.Arquillian;
-import org.jboss.arquillian.test.api.ArquillianResource;
-import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.jboss.shrinkwrap.api.asset.StringAsset;
-import org.jboss.shrinkwrap.api.spec.JavaArchive;
-import org.jboss.wsf.test.JBossWSTest;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-/**
- * This test case shows how to dynamically add a custom record processor
- * to a given endpoint.
- *
- * @author alessio.soldano(a)jboss.com
- * @since 6-Aug-2008
- */
-(a)RunWith(Arquillian.class)
-public class CustomRecordProcessorTestCase extends JBossWSTest
-{
- private final String endpointObjectName =
"jboss.ws:context=management-recording,endpoint=EndpointWithConfigImpl";
-
- @ArquillianResource
- private URL baseURL;
-
- @Deployment(testable = false)
- public static JavaArchive createDeployment() {
- JavaArchive archive = ShrinkWrap.create(JavaArchive.class,
"management-recording-as7.jar");
- archive.setManifest(new StringAsset("Manifest-Version: 1.0\n"
- + "Dependencies: org.jboss.logging\n"))
- .addClass(org.jboss.test.ws.management.recording.Endpoint.class)
- .addClass(org.jboss.test.ws.management.recording.EndpointWithConfigImpl.class);
- return archive;
- }
-
- @Test
- @RunAsClient
- public void testAddCustomProcessor() throws Exception
- {
- URL wsdlURL = new URL(baseURL +
"/management-recording/EndpointImpl?wsdl");
- QName serviceName = new
QName("http://recording.management.ws.test.jboss.org/",
"EndpointService");
-
- Service service = Service.create(wsdlURL, serviceName);
- @SuppressWarnings("unused")
- Endpoint port = service.getPort(Endpoint.class);
- System.out.println("FIXME: [JBWS-3330] RMI class loader disabled / CNFE with
remote classloader");//FIXME [JBWS-3330] RMI class loader disabled / CNFE with remote
classloader
- }
- /**********
- @SuppressWarnings("unused")
- private void addCustomProcessor() throws Exception
- {
- ObjectName oname = new ObjectName(endpointObjectName);
- ExtManagedProcessor myProcessor = new ExtManagedProcessor();
- myProcessor.setName("myExtProcessor");
- myProcessor.setRecording(true);
- myProcessor.setAttribute("Attribute value");
- myProcessor.setExtAttribute("ExtAttribute value");
- getServer().invoke(oname, "addRecordProcessor", new Object[] {
myProcessor }, new String[] { RecordProcessor.class.getName() });
- }
-
- @SuppressWarnings("unused")
- private void checkCustomProcessorJob() throws Exception
- {
- MBeanServerConnection server = getServer();
- ObjectName oname = new ObjectName(endpointObjectName +
",recordProcessor=myExtProcessor");
- assertEquals(true, server.getAttribute(oname, "Recording"));
- assertEquals(1, server.getAttribute(oname, "Size"));
- assertEquals("Attribute value", server.getAttribute(oname,
"Attribute"));
- }
- **********/
-}