@Test public void getMiddlewareExisting() { Middleware<State, Action>[] middleware = dispatchManager.getMiddleware(); Assert.assertEquals(3, middleware.length); Assert.assertEquals("First Middleware", middleware[0], middleware1); Assert.assertEquals("Second Middleware", middleware[1], middleware2); Assert.assertEquals("Third Middleware", middleware[2], middleware3); }
public Middleware<S, A>[] getMiddleware() { return middlewareList; }
DispatchManager { public Middleware<S, A>[] getMiddleware() { return middlewareList; } }
DispatchManager { public Middleware<S, A>[] getMiddleware() { return middlewareList; } DispatchManager(@NonNull Dispatcher<A> dispatchToReducer, @Nullable Middleware<S, A>[] middlewareList); }
DispatchManager { public Middleware<S, A>[] getMiddleware() { return middlewareList; } DispatchManager(@NonNull Dispatcher<A> dispatchToReducer, @Nullable Middleware<S, A>[] middlewareList); void handleDispatch(@NonNull Store<S, A> store, @NonNull A action); Middleware<S, A>[] getMiddleware(); }
DispatchManager { public Middleware<S, A>[] getMiddleware() { return middlewareList; } DispatchManager(@NonNull Dispatcher<A> dispatchToReducer, @Nullable Middleware<S, A>[] middlewareList); void handleDispatch(@NonNull Store<S, A> store, @NonNull A action); Middleware<S, A>[] getMiddleware();  }