Revision: 7504
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7504&view=rev
Author:   milek_pl
Date:     2012-06-25 18:45:20 +0000 (Mon, 25 Jun 2012)
Log Message:
-----------
make Jenkins happy

Modified Paths:
--------------
    trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java

Modified: 
trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java
===================================================================
--- trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java   
2012-06-25 18:14:57 UTC (rev 7503)
+++ trunk/JLanguageTool/src/test/org/languagetool/rules/HunspellRuleTest.java   
2012-06-25 18:45:20 UTC (rev 7504)
@@ -34,32 +34,7 @@
 
 public class HunspellRuleTest {
 
-  @Test
-  public void testRule() throws Exception {
 
-    RuleMatch[] matches;
-      
-    // Catalan
-    HunspellRule catRule =
-               new HunspellRule(TestTools.getMessages("Catalan"), 
Language.CATALAN);
-    JLanguageTool catTool = new JLanguageTool(Language.CATALAN);
-
-    // correct sentences:
-    assertEquals(0, catRule.match(catTool.getAnalyzedSentence("Allò que més 
l'interessa.")).length);
-    // checks that "WORDCHARS ·-'" is added to Hunspell .aff file
-    assertEquals(0, catRule.match(catTool.getAnalyzedSentence("Porta'n quatre 
al col·legi.")).length);
-    assertEquals(0, catRule.match(catTool.getAnalyzedSentence("Has de 
portar-me'n moltes.")).length);
-    assertEquals(0, catRule.match(catTool.getAnalyzedSentence(",")).length);
-
-    //incorrect sentences:
-    matches = catRule.match(catTool.getAnalyzedSentence("Pecra"));
-    // check match positions:
-    assertEquals(1, matches.length);
-    assertEquals(0, matches[0].getFromPos());
-    assertEquals(5, matches[0].getToPos());
-    assertEquals("Pera", matches[0].getSuggestedReplacements().get(0));
-  }
-
   @Test
   public void testRuleWithGerman() throws Exception {
     final HunspellRule rule = new 
HunspellRule(TestTools.getMessages("German"), Language.GERMANY_GERMAN);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to