@Override public void doCell(Fixture fixture, Parse cell) throws Throwable { if ("".equals(cell.text())) fixture.handleBlankCell(cell, adapter); adapter.set(adapter.parse(cell.text())); } }
@Override public void doCell(Fixture fixture, Parse cell) throws Throwable { if ("".equals(cell.text())) fixture.handleBlankCell(cell, adapter); adapter.set(adapter.parse(cell.text())); } }
public void doCell(Parse cell, int column) { TypeAdapter a = columnBindings[column]; try { String text = cell.text(); if (text.equals("")) { check(cell, a); } else if (a == null) { ignore(cell); } else if (a.field != null) { a.set(a.parse(text)); } else if (a.method != null) { check(cell, a); } } catch(Exception e) { exception(cell, e); } }
@Override public void doCell(Fixture fixture, Parse cell) throws Exception { String symbolName = cell.text(); if (!Fixture.hasSymbol(symbolName)) fixture.exception(cell, new FitFailureException("No such symbol: " + symbolName)); else { String value = (String) Fixture.getSymbol(symbolName); if (adapter.field != null) { adapter.set(adapter.parse(value)); cell.addToBody(Fixture.gray(" = " + value)); } if (adapter.method != null) { cell.body = value; fixture.check(cell, adapter); } } } }
@Override public void doCell(Fixture fixture, Parse cell) throws Exception { String symbolName = cell.text(); if (!Fixture.hasSymbol(symbolName)) fixture.exception(cell, new FitFailureException("No such symbol: " + symbolName)); else { String value = (String) Fixture.getSymbol(symbolName); if (adapter.field != null) { adapter.set(adapter.parse(value)); cell.addToBody(Fixture.gray(" = " + value)); } if (adapter.method != null) { cell.body = value; fixture.check(cell, adapter); } } } }