@Test public void testEnable() throws Exception { try { ChipJavaPinCommand cmd = new ChipJavaPinCommand(); cmd.enable(getPin()); assert true; } catch (PinCommandException e) { dealWithException(e); } }
@Override public void enable(Pin pin) throws PinCommandException { try { FileStreams.writeFile(new File(Commands.ENABLE.command(pin)), pin.getCode()); } catch (IOException e) { throw new PinCommandException(e); } }
ChipJavaPinCommand implements PinCommand { @Override public void enable(Pin pin) throws PinCommandException { try { FileStreams.writeFile(new File(Commands.ENABLE.command(pin)), pin.getCode()); } catch (IOException e) { throw new PinCommandException(e); } } }
ChipJavaPinCommand implements PinCommand { @Override public void enable(Pin pin) throws PinCommandException { try { FileStreams.writeFile(new File(Commands.ENABLE.command(pin)), pin.getCode()); } catch (IOException e) { throw new PinCommandException(e); } }  }
ChipJavaPinCommand implements PinCommand { @Override public void enable(Pin pin) throws PinCommandException { try { FileStreams.writeFile(new File(Commands.ENABLE.command(pin)), pin.getCode()); } catch (IOException e) { throw new PinCommandException(e); } }  @Override Pin.Mode getMode(Pin pin); @Override void setMode(Pin pin, Pin.Mode mode); @Override void enable(Pin pin); @Override void disable(Pin pin); @Override boolean read(Pin pin); @Override void write(Pin pin, boolean value); @Override File path(Pin pin); }
ChipJavaPinCommand implements PinCommand { @Override public void enable(Pin pin) throws PinCommandException { try { FileStreams.writeFile(new File(Commands.ENABLE.command(pin)), pin.getCode()); } catch (IOException e) { throw new PinCommandException(e); } }  @Override Pin.Mode getMode(Pin pin); @Override void setMode(Pin pin, Pin.Mode mode); @Override void enable(Pin pin); @Override void disable(Pin pin); @Override boolean read(Pin pin); @Override void write(Pin pin, boolean value); @Override File path(Pin pin);  }