Package employee.manager

Examples of employee.manager.Manager


    }

    @Test
    public void getHirePossibility_shouldReturnTrueIfCurrentNumberOfEmployeesIsBelowThanLimit() throws Exception {
        //given
        Manager manager = mock(Manager.class);
        given(manager.getNumberOfSubordinates()).willReturn(0);
        //when
        final Boolean answer = instance.getHirePossibility(manager, employee);
        //then
        assertThat(answer).isEqualTo(Boolean.TRUE);
    }
View Full Code Here


    }

    @Test
    public void getHirePossibility_shouldReturnFalseIfCurrentNumberOfEmployeesIsEqualOrAboveLimit() throws Exception {
        //given
        Manager manager = mock(Manager.class);
        given(manager.getNumberOfSubordinates()).willReturn(LIMIT_OF_EMPLOYEES);
        //when
        final Boolean answer = instance.getHirePossibility(manager, employee);
        //then
        assertThat(answer).isEqualTo(Boolean.FALSE);
    }
View Full Code Here

TOP

Related Classes of employee.manager.Manager

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.