@Test public void can_read_mode_from_args() { TestModes shouldBeDEV = new TestModalApplication(ARGS_DEV).getMode(); assertThat(shouldBeDEV, equalTo(TestModes.DEV)); TestModes shouldBePROD = new TestModalApplication(ARGS_PROD).getMode(); assertThat(shouldBePROD, equalTo(TestModes.PROD)); }
public E getMode() { return mode; }
ModalApplication extends SimpleApplication implements Application { public E getMode() { return mode; } }
ModalApplication extends SimpleApplication implements Application { public E getMode() { return mode; } protected  ModalApplication(
            Class<E> modeClass,
            E defaultMode,
            String[] args); }
ModalApplication extends SimpleApplication implements Application { public E getMode() { return mode; } protected  ModalApplication(
            Class<E> modeClass,
            E defaultMode,
            String[] args); E getMode(); }
ModalApplication extends SimpleApplication implements Application { public E getMode() { return mode; } protected  ModalApplication(
            Class<E> modeClass,
            E defaultMode,
            String[] args); E getMode();  }