fitlibrary.xref.TestCrossReferenceFixture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fitlibrary Show documentation
Show all versions of fitlibrary Show documentation
FitLibrary provides general-purpose fixtures (and runners) for storytests with Fit and FitNesse.
The newest version!
/*
* Copyright (c) 2009 Rick Mugridge, www.RimuResearch.com
* Released under the terms of the GNU General Public License version 2 or later.
*/
package fitlibrary.xref;
import org.junit.Test;
import fit.Parse;
import fit.exception.FitParseException;
import fitlibrary.table.Tables;
import fitlibrary.utility.SimpleWikiTranslator;
import fitlibrary.utility.TestResults;
import fitlibrary.xref.CrossReferenceFixture;
public class TestCrossReferenceFixture
{
@Test
public void tt() throws FitParseException {
CrossReferenceFixture xref = new CrossReferenceFixture(".IsBook") {
@Override
protected String fitNesseDiry() {
return "C:/working/FitNesseDocServer";
}
};
String wiki = "||";
Tables tables = new Tables(new Parse(SimpleWikiTranslator.translate(wiki)));
xref.interpretAfterFirstRow(tables.table(0), new TestResults());
}
}