@Override protected FakeExample newSibling() { return new Cells(""); }
@Override protected FakeExample newChild() { return new Cells(""); }
public static Cells parse(String markup) { Rows row = new Rows(); // The following regex uses a group representing the string between [ ] // containing any characters except ] Pattern pattern = Pattern.compile("\\[([^\\]]*)\\]"); Matcher matcher = pattern.matcher(markup); while (matcher.find()) { row.addChild(new Cells(matcher.group(1).trim())); } return ( Cells ) row.firstChild(); }
public void setRecognizedAs(String recognizedAs) throws IllegalArgumentException, InvocationTargetException, IllegalAccessException { Fixture fixture; Column column = new NullColumn(); ruleRespected = false; resultingValue = ""; fixture = fixtureFor(recognizedAs); column = new GivenColumn(fixture.send("foo")); column.doCell(new Cells(cellText)); }
public String inputWillBe() throws IllegalArgumentException, InvocationTargetException, IllegalAccessException { Fixture fixture = new PlainOldFixture(new MyFixture(this)); Column column = new GivenColumn(fixture.send("foo")); column.doCell(new Cells(cellText)); return inputCellRecognizedAs; }
public Object annotation() throws IllegalArgumentException, InvocationTargetException, IllegalAccessException { Cells cell = new Cells(comparisonValue); MockFixture mockFixture = new MockFixture(); mockFixture.willRespondTo("foo", returnedValue); Column col = new ExpectedColumn(mockFixture.send("foo")); col.doCell(cell); return AnnotationUtil.getAnnotationOnCell(cell); }
public String comparisonWillBe() throws IllegalArgumentException, InvocationTargetException, IllegalAccessException { Cells cell = new Cells(cellText); MockFixture mockFixture = new MockFixture(); mockFixture.willRespondTo("foo", "anything"); Column col = new ExpectedColumn(mockFixture.send("foo")); col.doCell(cell); return AnnotationUtil.getAnnotationOnCell(cell); }
public Object annotation() throws IllegalArgumentException, InvocationTargetException, IllegalAccessException { Cells cell = new Cells(cellText); MockFixture mockFixture = new MockFixture(); mockFixture.willRespondTo("outputFromSystemUnderDevelopment", outputFromSystemUnderDevelopment); Column col = new SavedColumn(mockFixture.check("outputFromSystemUnderDevelopment")); col.bindTo(variables); col.doCell(cell); return AnnotationUtil.getAnnotationOnCell(cell); }