Package org.apache.cxf

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


        int result = saml2Port.doubleIt(25);
        assertTrue(result == 50);
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
   
    @org.junit.Test
    public void testSaml2EndorsingOverTransportSP11() 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 testSaml2OverAsymmetricSignedEncrypted() 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 testSaml2OverAsymmetricEncrypted() 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 testSaml2EndorsingEncryptedOverTransport() 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 testNoSamlToken() 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);
    }
   
    // In this test-case, the WSP is configured with a XACML PEP interceptor, which in this
    // case just mocks the call to the PDP + enforces the decision
    @org.junit.Test
View Full Code Here

        } catch (javax.xml.ws.soap.SOAPFaultException ex) {
            // expected
        }
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
  
    @org.junit.Test
    public void testSaml2Replay() throws Exception {
View Full Code Here

            String error = "A replay attack has been detected";
            assertTrue(ex.getMessage().contains(error));
        }
       
        ((java.io.Closeable)saml2Port).close();
        bus.shutdown(true);
    }
}
View Full Code Here

                }
            }
        } finally {
            // cleanup as much as we can.
            if (bus != null) {
                bus.shutdown(true);
            }
            classLoaderSwitcher.restoreClassLoader();
        }
        if (project != null && sourceRoot != null && sourceRoot.exists()) {
            project.addCompileSourceRoot(sourceRoot.getAbsolutePath());
View Full Code Here

        String nl = System.getProperty("line.separator");
        LOG.fine("Restarted greeter server" + nl + nl);
       
        verifyServerRecovery(responses);
       
        greeterBus.shutdown(true);
       
        control.stopGreeter(CFG);
        bus.shutdown(true);
    }
   
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.