use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class IfPluralTest method testFormatEmpty.
@Test
public void testFormatEmpty() {
ParamLayoutFormatter a = new IfPlural();
a.setArgument("Eds.,Ed.");
Assert.assertEquals("", a.format(""));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class ReplaceTest method testFormatEmpty.
@Test
public void testFormatEmpty() {
ParamLayoutFormatter a = new Replace();
a.setArgument("Eds.,Ed.");
Assert.assertEquals("", a.format(""));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class ReplaceTest method testFormatNull.
@Test
public void testFormatNull() {
ParamLayoutFormatter a = new Replace();
a.setArgument("Eds.,Ed.");
Assert.assertEquals(null, a.format(null));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class ReplaceTest method testSimpleText.
@Test
public void testSimpleText() {
ParamLayoutFormatter a = new Replace();
a.setArgument("Bob,Ben");
Assert.assertEquals("Ben Bruce", a.format("Bob Bruce"));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class WrapContentTest method testFormatNullExpectNothingAdded.
@Test
public void testFormatNullExpectNothingAdded() {
ParamLayoutFormatter a = new WrapContent();
a.setArgument("Eds.,Ed.");
Assert.assertEquals(null, a.format(null));
}
Aggregations