use of com.nike.backstopper.handler.listener.ApiExceptionHandlerListener in project riposte by Nike-Inc.
the class RiposteApiExceptionHandlerTest method constructorWorksIfPassedValidValues.
@Test
public void constructorWorksIfPassedValidValues() {
// when
RiposteApiExceptionHandler myAdapter = new RiposteApiExceptionHandler(projectApiErrors, validListenerList, utils);
// then
List<ApiExceptionHandlerListener> actualListeners = (List<ApiExceptionHandlerListener>) Whitebox.getInternalState(myAdapter, "apiExceptionHandlerListenerList");
ProjectApiErrors actualProjectApiErrors = (ProjectApiErrors) Whitebox.getInternalState(myAdapter, "projectApiErrors");
ApiExceptionHandlerUtils actualUtils = (ApiExceptionHandlerUtils) Whitebox.getInternalState(myAdapter, "utils");
assertThat(actualListeners, is(validListenerList));
assertThat(actualProjectApiErrors, is(projectApiErrors));
assertThat(actualUtils, is(utils));
}
Aggregations