package com.openxc;

import com.openxc.VehicleService;

import android.test.ServiceTestCase;

import android.test.suitebuilder.annotation.SmallTest;

public class VehicleServiceTest extends ServiceTestCase<VehicleService> {
    public VehicleServiceTest() {
        super(VehicleService.class);
    }

    @Override
    protected void setUp() throws Exception {
        super.setUp();
    }

    @SmallTest
    public void testPreconditions() {
        assertTrue(false);
    }
}

@@ -68,30 +68,146 @@
 oid.
-test.ServiceTestCase;%0A
+content.Intent;%0A%0Aimport android.os.IBinder;%0A%0Aimport android.test.ServiceTestCase;%0A%0Aimport android.test.suitebuilder.annotation.MediumTest;
 %0Aimp
@@ -333,16 +333,41 @@
 vice%3E %7B%0A
+    Intent startIntent;%0A%0A
     publ
@@ -519,16 +519,118 @@
 etUp();%0A
+        startIntent = new Intent();%0A        startIntent.setClass(getContext(), VehicleService.class);%0A
     %7D%0A%0A 
@@ -689,28 +689,200 @@
     
+%7D%0A%0A
     
-assertTrue(false
+@SmallTest%0A    public void testStartable() %7B%0A        startService(startIntent);%0A    %7D%0A%0A    @MediumTest%0A    public void testBindable() %7B%0A        IBinder service = bindService(startIntent
 );%0A 

Test that the VehicleService can be started and bound.