public UnusedStubbings getUnusedStubbings ( Iterable < Object > mocks ) { Set < Stubbing > stubbings = AllInvocationsFinder . findStubbings ( mocks ) ; List < Stubbing > unused = filter ( stubbings , new Filter < Stubbing > ( ) { public boolean isOut ( Stubbing s ) { return ! UnusedStubbingReporting . shouldBeReported ( s ) ; } } ) ; return new UnusedStubbings ( unused ) ; }
Gets all unused stubbings for given set of mock objects in order . Stubbings explicitily marked as LENIENT are not included .