@@ -0,0 +1,1709 @@
+/* LanguageTool, a natural language style checker %0A * Copyright (C) 2015 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 */%0Apackage org.languagetool.rules.de;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Apublic class LineExpanderTest %7B%0A%0A  private final LineExpander exp = new LineExpander();%0A%0A  @Test%0A  public void testExpansion() %7B%0A    assertThat(expand(%22%22), is(%22%5B%5D%22));%0A    assertThat(expand(%22Das%22), is(%22%5BDas%5D%22));%0A    assertThat(expand(%22Tisch/E%22), is(%22%5BTisch, Tische%5D%22));%0A    assertThat(expand(%22Tische/N%22), is(%22%5BTische, Tischen%5D%22));%0A    assertThat(expand(%22Auto/S%22), is(%22%5BAuto, Autos%5D%22));%0A    assertThat(expand(%22klein/A%22), is(%22%5Bklein, kleine, kleiner, kleines, kleinen, kleinem%5D%22));%0A    assertThat(expand(%22x/NSE%22), is(%22%5Bx, xn, xs, xe%5D%22));%0A    assertThat(expand(%22x/NA%22), is(%22%5Bx, xn, xe, xer, xes, xen, xem%5D%22));%0A  %7D%0A%0A  private String expand(String line) %7B%0A    return exp.expandLine(line).toString();%0A  %7D%0A%0A%7D

add test