Package securesocial.core.java

Examples of securesocial.core.java.BaseUserService


        conf.put("mockUserService", false);
        final FakeApplication app = fakeApplication(conf);
        running(app, new Runnable() {
            @Override
            public void run() {
                final BaseUserService userService1 = app.getWrappedApplication()
                        .plugin(CfpUserService.class).get().unWrap();
                assertThat(userService1.getClass()).isEqualTo(CfpUserServiceDelegate.class);
                assertThat(userService1.getClass()).isNotEqualTo(MockCfpUserServiceDelegate.class);
            }
        });
    }
View Full Code Here


    @Test
    public void should_mock() throws Exception {
        running(fakeApplication, new Runnable() {
            @Override
            public void run() {
                final BaseUserService delegate = userService.unWrap();
                assertThat(delegate.getClass()).isEqualTo(MockCfpUserServiceDelegate.class);
                assertThat(delegate.getClass()).isNotEqualTo(CfpUserServiceDelegate.class);
            }
        });
    }
View Full Code Here

TOP

Related Classes of securesocial.core.java.BaseUserService

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.