@Test public void testOnUnload() { uut.onUnload(); verify(handlerMock, times(2)).removeHandler(); verify(globalRegistrationMock).clear(); }
@Override protected void onUnload() { super.onUnload(); for (HandlerRegistration registration : globalHandlerRegistrations) { registration.removeHandler(); } globalHandlerRegistrations.clear(); }
WorkshopAdminViewImpl extends Composite implements WorkshopAdminView { @Override protected void onUnload() { super.onUnload(); for (HandlerRegistration registration : globalHandlerRegistrations) { registration.removeHandler(); } globalHandlerRegistrations.clear(); } }
WorkshopAdminViewImpl extends Composite implements WorkshopAdminView { @Override protected void onUnload() { super.onUnload(); for (HandlerRegistration registration : globalHandlerRegistrations) { registration.removeHandler(); } globalHandlerRegistrations.clear(); } @Inject  WorkshopAdminViewImpl(final WorkshopAdminViewAppearance appearance,
                                 final MemberProperties memberProperties,
                                 @Assisted ListStore<Member> listStore); }
WorkshopAdminViewImpl extends Composite implements WorkshopAdminView { @Override protected void onUnload() { super.onUnload(); for (HandlerRegistration registration : globalHandlerRegistrations) { registration.removeHandler(); } globalHandlerRegistrations.clear(); } @Inject  WorkshopAdminViewImpl(final WorkshopAdminViewAppearance appearance,
                                 final MemberProperties memberProperties,
                                 @Assisted ListStore<Member> listStore); @Override void addGlobalEventHandler(GwtEvent.Type<H> type, H handler); @Override void addLocalEventHandler(GwtEvent.Type<H> type, H handler); }
WorkshopAdminViewImpl extends Composite implements WorkshopAdminView { @Override protected void onUnload() { super.onUnload(); for (HandlerRegistration registration : globalHandlerRegistrations) { registration.removeHandler(); } globalHandlerRegistrations.clear(); } @Inject  WorkshopAdminViewImpl(final WorkshopAdminViewAppearance appearance,
                                 final MemberProperties memberProperties,
                                 @Assisted ListStore<Member> listStore); @Override void addGlobalEventHandler(GwtEvent.Type<H> type, H handler); @Override void addLocalEventHandler(GwtEvent.Type<H> type, H handler);  }