@@ -0,0 +1,1687 @@
+/* LanguageTool, a natural language style checker %0A * Copyright (C) 2005 Daniel Naber (http://www.danielnaber.de)%0A * %0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or (at your option) any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301%0A * USA%0A */%0A%0Apackage org.languagetool.synthesis.pt;%0A%0Aimport java.io.IOException;%0Aimport java.util.Arrays;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.languagetool.AnalyzedToken;%0A%0Apublic class PortugueseSynthesizerTest extends TestCase %7B%0A  private AnalyzedToken dummyToken(String tokenStr) %7B%0A    return new AnalyzedToken(tokenStr, tokenStr, tokenStr);%0A  %7D%0A%0A  public final void testSynthesizeString() throws IOException %7B%0A    PortugueseSynthesizer synth = new PortugueseSynthesizer();%0A    assertEquals(synth.synthesize(dummyToken(%22blablabla%22), %22blablabla%22).length, 0);%0A%0A    assertEquals(%22%5Bbois%5D%22, Arrays.toString(%0A            getSortedArray(synth.synthesize(dummyToken(%22boi%22), %22NCMP000%22, true))));%0A%0A  %7D%0A%0A  private String%5B%5D getSortedArray(String... ar) %7B%0A    String%5B%5D newAr = ar.clone();%0A    Arrays.sort(newAr);%0A    return newAr;%0A  %7D%0A  %0A%0A%7D

Add Portuguese Synthesizer test