1920212223242526272829
protected void tearDown() throws Exception { } public void testLightSetOn() { SensorPortStub.setISensorPort(0, new ISensorPort() { public int i2cBusy() { fail(); return 0; }
6162636465666768697071
}); light = new LightSensor(SensorPort.S1, true); } public void testSetOff() { SensorPortStub.setISensorPort(0, new ISensorPort() { public int i2cBusy() { fail(); return 0; }
101102103104105106107108109110111
}); light = new LightSensor(SensorPort.S1, false); } public void testRead() { SensorPortStub.setISensorPort(0, new ISensorPort() { public int i2cBusy() { fail(); return 0; }