Added skeleton test structure - used Android Studio - right click on a class and sellect goto->test.

This commit is contained in:
Graham Jones
2016-01-01 21:35:05 +00:00
parent b3b8c941f8
commit e969da21e4
8 changed files with 368 additions and 31 deletions

View File

@@ -0,0 +1,46 @@
package uk.org.openseizuredetector;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by graham on 01/01/16.
*/
public class MainActivityTest {
@Test
public void testOnCreate() throws Exception {
}
@Test
public void testOnCreateOptionsMenu() throws Exception {
}
@Test
public void testOnOptionsItemSelected() throws Exception {
}
@Test
public void testOnStart() throws Exception {
}
@Test
public void testOnStop() throws Exception {
}
@Test
public void testOnPause() throws Exception {
}
@Test
public void testOnResume() throws Exception {
}
}

View File

@@ -0,0 +1,26 @@
package uk.org.openseizuredetector;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by graham on 01/01/16.
*/
public class OsdUtilTest {
@Test
public void testIsServerRunning() throws Exception {
}
@Test
public void testStartServer() throws Exception {
}
@Test
public void testStopServer() throws Exception {
}
}

View File

@@ -0,0 +1,36 @@
package uk.org.openseizuredetector;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by graham on 01/01/16.
*/
public class SdDataSourceNetworkTest {
@Test
public void testStart() throws Exception {
}
@Test
public void testStop() throws Exception {
}
@Test
public void testUpdatePrefs() throws Exception {
}
@Test
public void testDownloadSdData() throws Exception {
}
@Test
public void testReadInputStream() throws Exception {
}
}

View File

@@ -0,0 +1,51 @@
package uk.org.openseizuredetector;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by graham on 01/01/16.
*/
public class SdDataSourcePebbleTest {
@Test
public void testStart() throws Exception {
}
@Test
public void testStop() throws Exception {
}
@Test
public void testUpdatePrefs() throws Exception {
}
@Test
public void testStopPebbleServer() throws Exception {
}
@Test
public void testStartWatchApp() throws Exception {
}
@Test
public void testStopWatchApp() throws Exception {
}
@Test
public void testGetPebbleSdSettings() throws Exception {
}
@Test
public void testGetPebbleStatus() throws Exception {
}
}

View File

@@ -0,0 +1,141 @@
package uk.org.openseizuredetector;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by graham on 01/01/16.
*/
public class SdServerTest {
@Test
public void testOnBind() throws Exception {
}
@Test
public void testOnCreate() throws Exception {
}
@Test
public void testOnStartCommand() throws Exception {
}
@Test
public void testOnDestroy() throws Exception {
}
@Test
public void testOnSdDataReceived() throws Exception {
}
@Test
public void testOnSdDataFault() throws Exception {
}
@Test
public void testFaultWarningBeep() throws Exception {
}
@Test
public void testAlarmBeep() throws Exception {
}
@Test
public void testWarningBeep() throws Exception {
}
@Test
public void testSendSMSAlarm() throws Exception {
}
@Test
public void testAcceptAlarm() throws Exception {
}
@Test
public void testCancelAudible() throws Exception {
}
@Test
public void testIsAudibleCancelled() throws Exception {
}
@Test
public void testCancelAudibleTimeRemaining() throws Exception {
}
@Test
public void testIsLatchAlarms() throws Exception {
}
@Test
public void testStartWebServer() throws Exception {
}
@Test
public void testStopWebServer() throws Exception {
}
@Test
public void testLogData() throws Exception {
}
@Test
public void testUpdatePrefs() throws Exception {
}
@Test
public void testIsExternalStorageWritable() throws Exception {
}
@Test
public void testGetDataStorageDir() throws Exception {
}
@Test
public void testWriteAlarmToSD() throws Exception {
}
@Test
public void testWriteToSD() throws Exception {
}
@Test
public void testWriteToSD1() throws Exception {
}
@Test
public void testStartFaultTimer() throws Exception {
}
@Test
public void testStopFaultTimer() throws Exception {
}
}

View File

@@ -0,0 +1,41 @@
package uk.org.openseizuredetector;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by graham on 01/01/16.
*/
public class SdServiceConnectionTest {
@Test
public void testOnServiceConnected() throws Exception {
}
@Test
public void testOnServiceDisconnected() throws Exception {
}
@Test
public void testHasSdData() throws Exception {
}
@Test
public void testHasSdSettings() throws Exception {
}
@Test
public void testPebbleConnected() throws Exception {
}
@Test
public void testPebbleAppRunning() throws Exception {
}
}