Package org.springmodules.xt.test.domain

Examples of org.springmodules.xt.test.domain.IManager


        super(testName);
    }
   
    public void testIntroduceInterfacesPart1() {
        IEmployee implementor = mock(IEmployee.class);
        IManager target = mock(IManager.class);
        DynamicImplementorIntroductor introductor  = new DynamicImplementorIntroductor(implementor);
        Object introduced = introductor.introduceInterfaces(target, new Class[]{IEmployee.class});
       
        assertTrue(introduced instanceof  IEmployee);
        assertTrue(introduced instanceof IManager);
       
        final IManager manager = (IManager) introduced;
        manager.getManagedEmployees();
        super.checking(new Expectations(){{
          oneOf(manager).getManagedEmployees();
        }});
       
        final IEmployee employee = (IEmployee) introduced;
View Full Code Here

TOP

Related Classes of org.springmodules.xt.test.domain.IManager

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.