package com.philliphsu.bottomsheetpickers.view.numberpad;

import com.philliphsu.bottomsheetpickers.view.LocaleModel;

import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;

public class NumberPadTimePickerPresenterTest {

    @Mock
    private INumberPadTimePicker.View mView;

    @Mock
    private LocaleModel mLocaleModel;

    private NumberPadTimePickerPresenter mPresenter;

    @Before
    public void setupPresenter() {
        // Mockito has a very convenient way to inject mocks by using the @Mock annotation. To
        // inject the mocks in the test the initMocks method needs to be called.
        MockitoAnnotations.initMocks(this);

        mPresenter = new NumberPadTimePickerPresenter(mView, mLocaleModel, false);
    }

    @Test
    public void clickOnNumberKey_UpdatesTimeDisplay() {
        mPresenter.onNumberKeyClick("1");
        Mockito.verify(mView).updateTimeDisplay("1");
    }
}

@@ -211,25 +211,37 @@
 .Mockito
-;
+Annotations;%0A
 %0Aimport 
 org.mock
@@ -224,32 +224,39 @@
 ations;%0A%0Aimport 
+static 
 org.mockito.Mock
@@ -258,27 +258,23 @@
 .Mockito
-Annotations
+.verify
 ;%0A%0Apubli
@@ -474,16 +474,51 @@
 esenter;
+%0A    private boolean mIs24HourMode;
 %0A%0A    @B
@@ -779,16 +779,47 @@
 this);%0A%0A
+        mIs24HourMode = false;%0A
         
@@ -885,20 +885,712 @@
 eModel, 
-fals
+mIs24HourMode);%0A    %7D%0A%0A    @Test%0A    public void verifyViewEnabledStatesForEmptyState() %7B%0A        mPresenter.onCreate(NumberPadTimePickerState.EMPTY);%0A        verify(mView).setNumberKeysEnabled(mIs24HourMode ? 0 : 1, 10);%0A        verify(mView).setBackspaceEnabled(false);%0A        verify(mView).setAmPmDisplayVisible(!mIs24HourMode);%0A        if (!mIs24HourMode) %7B%0A            verify(mView).setAmPmDisplayIndex(mLocaleModel.isAmPmWrittenBeforeTime() ? 0 : 1);%0A        %7D%0A        /* Verify setLeftAltKeyText() and setRightAltKeyText() manually. */%0A        verify(mView).setLeftAltKeyEnabled(false);%0A        verify(mView).setRightAltKeyEnabled(false);%0A        verify(mView).setHeaderDisplayFocused(tru
 e);%0A    
@@ -1700,24 +1700,24 @@
 k(%221%22);%0A
+
         
 Mockito.
@@ -1708,24 +1708,16 @@
         
-Mockito.
 verify(m

Add test to verify enabled states of views when time picker is empty initialized.