@@ -0,0 +1,2399 @@
+package tests.net.sf.jabref.export.layout.format;%0A%0Aimport net.sf.jabref.export.layout.format.AuthorLastFirstAbbreviator;%0Aimport junit.framework.Assert;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Test case  that verifies the functionalities of the%0A * formater AuthorLastFirstAbbreviator.%0A * %0A * @author Carlos Silla%0A */%0Apublic class AuthorLastFirstAbbreviatorTester extends TestCase %7B%0A%0A%09/**%0A%09 * Verifies the Abbreviation of one single author with a simple name.%0A%09 * %0A%09 * Ex: Lastname, Name%0A%09 */%0A%09public void testOneAuthorSimpleName() %7B%0A%09%09String name = new String(%22Lastname, Name%22);%0A%09%09%0A%09%09AuthorLastFirstAbbreviator ab = new AuthorLastFirstAbbreviator();%0A%09%09%0A%09%09String result = ab.format(name);%0A%09%09%0A%09%09//Expected Results:%0A%09%09String expectedResult = new String (%22Lastname, N.%22);%0A%0A%09%09//Verifies the functionality:%09%09%09%09%0A%09%09Assert.assertEquals(%22Abbreviator Test%22, result, expectedResult);%0A%09%7D%0A%0A%09/**%0A%09 * Verifies the Abbreviation of one single author with a common name.%0A%09 * %0A%09 * Ex: Lastname, Name Middlename%0A%09 */%0A%09public void testOneAuthorCommonName() %7B%0A%09%09String name = new String(%22Lastname, Name Middlename%22);%0A%09%09%0A%09%09AuthorLastFirstAbbreviator ab = new AuthorLastFirstAbbreviator();%0A%09%09%0A%09%09String result = ab.format(name);%0A%09%09%0A%09%09//Expected Results:%0A%09%09String expectedResult = new String (%22Lastname, N.M.%22);%0A%09%09%0A%09%09//Verifies the functionality:%09%09%09%09%0A%09%09Assert.assertEquals(%22Abbreviator Test%22, result, expectedResult);%0A%09%7D%0A%0A%09/**%0A%09 * Verifies the Abbreviation of two single with a common name.%0A%09 * %0A%09 * Ex: Lastname, Name Middlename%0A%09 */%0A%09public void testTwoAuthorsCommonName() %7B%0A%09%09String name = new String(%22Lastname, Name Middlename and Sobrenome, Nome Nomedomeio%22);%0A%09%09%0A%09%09AuthorLastFirstAbbreviator ab = new AuthorLastFirstAbbreviator();%0A%09%09%0A%09%09String result = ab.format(name);%0A%09%09%0A%09%09//Expected Results:%0A%09%09String expectedResult = new String (%22Lastname, N.M. and Sobrenome, N.N.%22);%0A%09%09%0A%09%09//Verifies the functionality:%09%09%09%09%0A%09%09Assert.assertEquals(%22Abbreviator Test%22, result, expectedResult);%0A%09%7D%0A%0A%0A%09/**%0A%09 * Verifies the Abbreviation of two authors in the incorrect format.%0A%09 * %0A%09 * Ex: Lastname, Name Middlename%0A%09 */%0A%09//TODO: Verify how to tell this test that it should pass if fail.%0A/*%09public void testTwoAuthorsBadFormating() %7B%0A%09%09String name = new String(%22Lastname, Name Middlename and Nome Nomedomeio Sobrenome%22);%0A%09%09%0A%09%09AuthorLastFirstAbbreviator ab = new AuthorLastFirstAbbreviator();%0A%09%09%0A%09%09String result = ab.format(name);%09%09%0A%09%7D*/%0A%09%0A%7D%0A

Test dirs along with the first test case of jabref for the AuthorLastFirstAbbreviator formater.