Package org.apache.cxf

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


       
        int result = saml1Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml1Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSaml1ElementOverTransport() throws Exception {
View Full Code Here


        );
        int result = saml1Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml1Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSaml2OverSymmetric() throws Exception {
View Full Code Here

        } catch (javax.xml.ws.soap.SOAPFaultException ex) {
            // assertTrue(ex.getMessage().contains("SAML token security failure"));
        }
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
   
    /**
     * Some negative tests. Send a sender-vouches assertion as a SupportingToken...this will
     * fail as the provider will demand that there is a signature covering both the assertion
View Full Code Here

        } catch (javax.xml.ws.soap.SOAPFaultException ex) {
            assertTrue(ex.getMessage().contains("Assertion fails sender-vouches requirements"));
        }
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }

    @org.junit.Test
    public void testSaml2OverAsymmetric() 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)saml2Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSaml1SelfSignedOverTransport() throws Exception {
View Full Code Here

        );
        int result = saml1Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml1Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSaml1SelfSignedOverTransportSP11() throws Exception {
View Full Code Here

        );
        int result = saml1Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml1Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testAsymmetricSamlInitiator() throws Exception {
View Full Code Here

        );
        int result = saml2Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSaml2OverSymmetricSignedElements() throws Exception {
View Full Code Here

        );
        int result = saml2Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSaml2EndorsingOverTransport() throws Exception {
View Full Code Here

        int result = saml2Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSaml2EndorsingPKOverTransport() 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.