use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class WrapContentTest method testEmptyEnd.
@Test
public void testEmptyEnd() {
ParamLayoutFormatter a = new WrapContent();
a.setArgument("Content: ,");
Assert.assertEquals("Content: Bob", a.format("Bob"));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class IfPluralTest method testStandardUsageOneEditor.
@Test
public void testStandardUsageOneEditor() {
ParamLayoutFormatter a = new IfPlural();
a.setArgument("Eds.,Ed.");
Assert.assertEquals("Ed.", a.format("Bob Bruce"));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class IfPluralTest method testFormatNull.
@Test
public void testFormatNull() {
ParamLayoutFormatter a = new IfPlural();
a.setArgument("Eds.,Ed.");
Assert.assertEquals("", a.format(null));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class IfPluralTest method testNoArgumentSet.
@Test
public void testNoArgumentSet() {
ParamLayoutFormatter a = new IfPlural();
Assert.assertEquals("", a.format("Bob Bruce and Jolly Jumper"));
}
use of org.jabref.logic.layout.ParamLayoutFormatter in project jabref by JabRef.
the class IfPluralTest method testNoProperArgument.
@Test
public void testNoProperArgument() {
ParamLayoutFormatter a = new IfPlural();
a.setArgument("Eds.");
Assert.assertEquals("", a.format("Bob Bruce and Jolly Jumper"));
}
Aggregations