use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class ReplaceTest method testNoArgumentSet.
@Test
public void testNoArgumentSet() {
ParamLayoutFormatter a = new Replace();
Assert.assertEquals("Bob Bruce and Jolly Jumper", a.format("Bob Bruce and Jolly Jumper"));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class WrapContentTest method testSimpleText.
@Test
public void testSimpleText() {
ParamLayoutFormatter a = new WrapContent();
a.setArgument("<,>");
Assert.assertEquals("<Bob>", a.format("Bob"));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class WrapContentTest method testEscaping.
@Test
public void testEscaping() {
ParamLayoutFormatter a = new WrapContent();
a.setArgument("Name\\,Field\\,,\\,Author");
Assert.assertEquals("Name,Field,Bob,Author", a.format("Bob"));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class WrapContentTest method testFormatEmptyExpectNothingAdded.
@Test
public void testFormatEmptyExpectNothingAdded() {
ParamLayoutFormatter a = new WrapContent();
a.setArgument("Eds.,Ed.");
Assert.assertEquals("", a.format(""));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class WrapContentTest method testNoArgumentSetExpectNothingAdded.
@Test
public void testNoArgumentSetExpectNothingAdded() {
ParamLayoutFormatter a = new WrapContent();
Assert.assertEquals("Bob Bruce and Jolly Jumper", a.format("Bob Bruce and Jolly Jumper"));
}
Aggregations