forked from upstream-mirrors/OpenTracks
Addressed comments.
Merge from head.
This commit is contained in:
+4
-7
@@ -28,23 +28,20 @@ public class SensorManagerFactoryTest extends AndroidTestCase {
|
||||
|
||||
@SmallTest
|
||||
public void testCreateZephyr() throws Exception {
|
||||
assertClassForName(
|
||||
ZephyrSensorManager.class, R.string.zephyr_sensor_type);
|
||||
assertClassForName(ZephyrSensorManager.class, R.string.zephyr_sensor_type);
|
||||
}
|
||||
|
||||
@SmallTest
|
||||
public void testCreateAnt() throws Exception {
|
||||
assertClassForName(
|
||||
AntDirectSensorManager.class, R.string.ant_sensor_type);
|
||||
assertClassForName(AntDirectSensorManager.class, R.string.ant_sensor_type);
|
||||
}
|
||||
|
||||
@SmallTest
|
||||
public void testCreateAntSRM() throws Exception {
|
||||
assertClassForName(
|
||||
AntSRMSensorManager.class, R.string.srm_ant_bridge_sensor_type);
|
||||
assertClassForName(AntSRMSensorManager.class, R.string.srm_ant_bridge_sensor_type);
|
||||
}
|
||||
|
||||
private void assertClassForName(Class c, int i) {
|
||||
private void assertClassForName(Class<?> c, int i) {
|
||||
sharedPreferences.edit()
|
||||
.putString(getContext().getString(R.string.sensor_type_key),
|
||||
getContext().getString(i))
|
||||
|
||||
Reference in New Issue
Block a user