void function ( ) { doThrow ( new IllegalStateException ( ) ) . when ( mockViewStack ) . pop ( ) ; navigator . pop ( ) ; }
ensures the pop method throws an exception when no controller interfaces have been pushed . concode_field_sep IViewStack mockViewStack concode_elem_sep INavigator navigator concode_elem_sep IViewFactory mockViewFactory concode_elem_sep IController mockController concode_elem_sep JPanel mockView concode_field_sep void testReplaceTop concode_elem_sep void testConstructorNullViewFactoryThrowsException concode_elem_sep void setUp concode_elem_sep void testPop concode_elem_sep void sanityCheck concode_elem_sep void testPushMethodNullControllerInterfaceThrowsException concode_elem_sep void testReplaceTopNullControllerInterface concode_elem_sep void testReplaceTopNoControllerOnStack concode_elem_sep void testConstructorNullViewStackThrowsException concode_elem_sep void testPush