Package org.switchyard.component.http.config.model

Examples of org.switchyard.component.http.config.model.BasicAuthModel


    public void authConfigBinding() throws Exception {
        ModelPuller<HttpBindingModel> puller = new ModelPuller<HttpBindingModel>();
        HttpBindingModel model = puller.pull(HTTP_BINDING_AUTH, getClass());
        Assert.assertTrue(model.isModelValid());
        Assert.assertTrue(model.isBasicAuth());
        BasicAuthModel authConfig = model.getBasicAuthConfig();
        Assert.assertNotNull(authConfig);
        Assert.assertEquals("Beal", authConfig.getUser());
        Assert.assertEquals("conjecture", authConfig.getPassword());
        Assert.assertEquals("Any", authConfig.getRealm());
    }
View Full Code Here

TOP

Related Classes of org.switchyard.component.http.config.model.BasicAuthModel

Copyright © 2018 www.massapicom. 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.