com.openxc.remote.VehicleServiceTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openxc-it Show documentation
Show all versions of openxc-it Show documentation
Instrumentation test suite for OpenXC library
The newest version!
package com.openxc.remote;
import com.openxc.remote.VehicleService;
import android.content.Intent;
import android.test.ServiceTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
public class VehicleServiceTest
extends ServiceTestCase {
Intent startIntent;
public VehicleServiceTest() {
super(VehicleService.class);
}
@Override
protected void setUp() throws Exception {
super.setUp();
startIntent = new Intent();
startIntent.setClass(getContext(), VehicleServiceInterface.class);
VehicleService.sIsUnderTest = true;
}
@SmallTest
public void testPreconditions() {
}
@SmallTest
public void testStartable() {
startService(startIntent);
}
@MediumTest
public void testUsingUsbSource() {
assertNotNull(bindService(startIntent));
}
}