Package lejos.stub

Examples of lejos.stub.ISensorPort


  protected void tearDown() throws Exception {

  }

  public void testLightSetOn() {
    SensorPortStub.setISensorPort(0, new ISensorPort() {

      public int i2cBusy() {
        fail();
        return 0;
      }
View Full Code Here


    });
    light = new LightSensor(SensorPort.S1, true);
  }

  public void testSetOff() {
    SensorPortStub.setISensorPort(0, new ISensorPort() {
      public int i2cBusy() {
        fail();
        return 0;
      }
View Full Code Here

    });
    light = new LightSensor(SensorPort.S1, false);
  }
  public void testRead() {
    SensorPortStub.setISensorPort(0, new ISensorPort() {
      public int i2cBusy() {
        fail();
        return 0;
      }
View Full Code Here

TOP

Related Classes of lejos.stub.ISensorPort

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.