OrderPresenter extends PresenterWidget<OrderPresenter.MyView> implements OrderUiHandlers, ShoppingCartChangedEventHandler, ShoppingCartQuantityUpdatedEventHandler,
        CheckoutEventHandler, EmptyCartEventHandler { @Override public void setShippingMethod(ShippingMethod shippingMethod) { currentOrder.setShippingMethod(shippingMethod); setOrderTotal(); } @Inject  OrderPresenter(
            EventBus eventBus,
            MyView view,
            CartItemsPresenter cartItemsPresenter,
            CurrentOrder currentOrder,
            CurrencyFormat currencyFormat); @Override void onEmptyCart(EmptyCartEvent event); @Override void onCheckout(CheckoutEvent event); @Override void onContinueClicked(); @Override void setShippingMethod(ShippingMethod shippingMethod); @Override void onShoppingCartChanged(ShoppingCartChangedEvent event); @Override void onShoppingCartQuantityChanged(ShoppingCartQuantityChangeEvent event); static final SingleSlot<CartItemsPresenter> SLOT_CART_ITEMS; }
@Test public void setShippingMethod_shouldSetShippingMethodInCurrentOrder() throws Exception { ShippingMethod expectedMethod = ShippingMethod.STANDARD; presenter.setShippingMethod(expectedMethod); verify(currentOrder).setShippingMethod(expectedMethod); }