Package org.candlepin.model

Examples of org.candlepin.model.UserCurator


    public void init() {
        super.init();

        this.owner = this.ownerCurator.create(new Owner("default_owner"));

        UserCurator curator = this.injector.getInstance(UserCurator.class);
        this.service = new DefaultUserServiceAdapter(curator, roleCurator);
    }
View Full Code Here


    }

    @Test
    public void findByLogin() {
        User u = mock(User.class);
        UserCurator curator = mock(UserCurator.class);
        RoleCurator roleCurator = mock(RoleCurator.class);
        UserServiceAdapter dusa = new DefaultUserServiceAdapter(curator,
                roleCurator);
        when(curator.findByLogin(anyString())).thenReturn(u);

        User foo = dusa.findByLogin("foo");
        assertNotNull(foo);
        assertEquals(foo, u);
    }
View Full Code Here

TOP

Related Classes of org.candlepin.model.UserCurator

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.