@@ -0,0 +1,1619 @@
+package com.uxxu.konashi.lib.action;%0A%0Aimport android.bluetooth.BluetoothGattCharacteristic;%0Aimport android.bluetooth.BluetoothGattService;%0A%0Aimport com.uxxu.konashi.lib.Konashi;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.ArgumentCaptor;%0Aimport org.mockito.Mock;%0Aimport org.mockito.MockitoAnnotations;%0A%0Aimport java.lang.reflect.Method;%0Aimport java.util.UUID;%0A%0Aimport info.izumin.android.bletia.BletiaException;%0Aimport info.izumin.android.bletia.wrapper.BluetoothGattWrapper;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.isNull;%0Aimport static org.mockito.Matchers.notNull;%0Aimport static org.mockito.Mockito.times;%0Aimport static org.mockito.Mockito.verify;%0Aimport static org.mockito.Mockito.when;%0Aimport static org.mockito.Mockito.doThrow;%0A%0A/**%0A * Created by e10dokup on 2015/10/04%0A **/%0Apublic class AioAnalogReadActionTest %7B%0A%0A    @Mock private BluetoothGattService mService;%0A    @Mock private BluetoothGattWrapper mGattWrapper;%0A%0A    private AioAnalogReadAction mAction;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        MockitoAnnotations.initMocks(this);%0A    %7D%0A%0A    @Test%0A    public void actionCharacteristic_InvalidPinNumber() throws Exception%7B%0A        mAction = new AioAnalogReadAction(mService, 5);%0A        assertThat(mAction.getCharacteristic()).isNull();%0A    %7D%0A%0A    @Test%0A    public void actionCharacteristic_ValidPinNumber() throws Exception%7B%0A        mAction = new AioAnalogReadAction(mService, Konashi.AIO0);%0A        assertThat(mAction.getCharacteristic()).isEqualTo(notNull());%0A    %7D%0A%7D

Add AioAnalogReadActionTest