Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
public class ApplicationPresenter
extends Presenter<ApplicationPresenter.MyView, ApplicationPresenter.MyProxy> {
interface MyView extends View {
void displayUsername(String username);
interface MyProxy extends ProxyPlace<ApplicationPresenter> {
public static final NestedSlot SLOT_MAIN = new NestedSlot();
private final UserService userService;
EventBus eventBus,
MyView view,
MyProxy proxy,
UserService userService) {
super(eventBus, view, proxy, RevealType.Root);
this.userService = userService;
protected void onBind() {
String username = userService.getUsername();
package com.arcbees.client.application;
import javax.inject.Inject;
import org.jukito.JukitoRunner;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.mockito.BDDMockito.given;
import static org.mockito.Matchers.same;
import static org.mockito.Mockito.verify;
public class ApplicationPresenterTest {
private static final String A_USERNAME = "bobby";
private ApplicationPresenter presenter;
private ApplicationPresenter.MyView view;
private UserService userService;
public void onBind_displayUsername() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment