Package org.apache.cxf

Examples of org.apache.cxf.Bus.shutdown()


            }
        } finally {
            //cleanup as much as we can.
            Bus bus = BusFactory.getDefaultBus(false);
            if (bus != null) {
                bus.shutdown(true);
            }
            Thread.currentThread().setContextClassLoader(origContext);
            System.setProperty("java.class.path", cp);
           
            Map<Object, Object> newProps = new HashMap<Object, Object>(System.getProperties());
View Full Code Here


        pt.setScopes(scopes);
        ProbeMatchesType pmts = c.probe(pt, 1000);

        Assert.assertEquals(2, pmts.getProbeMatch().size());
        c.close();
        bus.shutdown(true);       
    }
   
   
    //this is a standalone test
    public static void main(String[] arg) throws Exception {
View Full Code Here

        updateAddressPort(utPort, PORT);
       
        utPort.doubleIt(25);
       
        ((java.io.Closeable)utPort).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testPlaintextCreated() throws Exception {
View Full Code Here

        updateAddressPort(utPort, PORT);
       
        utPort.doubleIt(25);
       
        ((java.io.Closeable)utPort).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testPasswordHashed() throws Exception {
View Full Code Here

        updateAddressPort(utPort, PORT);
       
        utPort.doubleIt(25);
       
        ((java.io.Closeable)utPort).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testNoPassword() throws Exception {
View Full Code Here

        updateAddressPort(utPort, PORT);
       
        utPort.doubleIt(25);
       
        ((java.io.Closeable)utPort).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSignedEndorsing() throws Exception {
View Full Code Here

                service.getPort(portQName, DoubleItPortType.class);
        updateAddressPort(utPort, PORT);
        utPort.doubleIt(25);
       
        ((java.io.Closeable)utPort).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSignedEncrypted() throws Exception {
View Full Code Here

                service.getPort(portQName, DoubleItPortType.class);
        updateAddressPort(utPort, PORT);
        utPort.doubleIt(25);
       
        ((java.io.Closeable)utPort).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testEncrypted() throws Exception {
View Full Code Here

                service.getPort(portQName, DoubleItPortType.class);
        updateAddressPort(utPort, PORT);
        utPort.doubleIt(25);
       
        ((java.io.Closeable)utPort).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testNoUsernameToken() throws Exception {
View Full Code Here

            String error = "The received token does not match the token inclusion requirement";
            assertTrue(ex.getMessage().contains(error));
        }
       
        ((java.io.Closeable)utPort).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testPasswordHashedReplay() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.