Revision: 7973 http://languagetool.svn.sourceforge.net/languagetool/?rev=7973&view=rev Author: dnaber Date: 2012-09-02 17:34:04 +0000 (Sun, 02 Sep 2012) Log Message: ----------- adapt tests to path changes
Modified Paths: -------------- trunk/JLanguageTool/src/test/java/org/languagetool/TranslationTest.java trunk/JLanguageTool/src/test/java/org/languagetool/VersionNumberTest.java trunk/JLanguageTool/src/test/java/org/languagetool/dev/index/IndexerSearcherTest.java Modified: trunk/JLanguageTool/src/test/java/org/languagetool/TranslationTest.java =================================================================== --- trunk/JLanguageTool/src/test/java/org/languagetool/TranslationTest.java 2012-09-02 17:25:49 UTC (rev 7972) +++ trunk/JLanguageTool/src/test/java/org/languagetool/TranslationTest.java 2012-09-02 17:34:04 UTC (rev 7973) @@ -109,7 +109,7 @@ } private File getTranslationFile(Language lang) { - return new File("src" + File.separator + "java" + File.separator + return new File("src" + File.separator + "main" + File.separator + "java" + File.separator + "org" + File.separator + "languagetool" + File.separator + "MessagesBundle_" + lang.getShortName() + ".properties"); } Modified: trunk/JLanguageTool/src/test/java/org/languagetool/VersionNumberTest.java =================================================================== --- trunk/JLanguageTool/src/test/java/org/languagetool/VersionNumberTest.java 2012-09-02 17:25:49 UTC (rev 7972) +++ trunk/JLanguageTool/src/test/java/org/languagetool/VersionNumberTest.java 2012-09-02 17:34:04 UTC (rev 7973) @@ -34,7 +34,7 @@ Pattern p1 = Pattern.compile("version = ([0-9\\.]+(-dev)?)"); Matcher m1 = p1.matcher(buildFile); m1.find(); - String javaFile = StringTools.readFile(new FileInputStream("src/java/org/languagetool/JLanguageTool.java")); + String javaFile = StringTools.readFile(new FileInputStream("src/main/java/org/languagetool/JLanguageTool.java")); Pattern p2 = Pattern.compile("VERSION = \"(.*?)\""); Matcher m2 = p2.matcher(javaFile); m2.find(); Modified: trunk/JLanguageTool/src/test/java/org/languagetool/dev/index/IndexerSearcherTest.java =================================================================== --- trunk/JLanguageTool/src/test/java/org/languagetool/dev/index/IndexerSearcherTest.java 2012-09-02 17:25:49 UTC (rev 7972) +++ trunk/JLanguageTool/src/test/java/org/languagetool/dev/index/IndexerSearcherTest.java 2012-09-02 17:34:04 UTC (rev 7973) @@ -43,7 +43,7 @@ public class IndexerSearcherTest extends LuceneTestCase { - private final File ruleFile = new File("src/rules/en/grammar.xml"); + private final File ruleFile = new File("src/main/resources/rules/en/grammar.xml"); private final Searcher errorSearcher = new Searcher(); private IndexSearcher searcher; @@ -185,7 +185,7 @@ public void IGNOREtestForDebugging() throws Exception { // Note that the second sentence ends with "lid" instead of "lids" (the inflated one) createIndex("I thin so"); - final PatternRule rule = getRule("I_THIN", new File("src/rules/en/grammar.xml")); + final PatternRule rule = getRule("I_THIN", new File("src/main/resources/rules/en/grammar.xml")); final SearcherResult searcherResult = errorSearcher.findRuleMatchesOnIndex(rule, Language.GERMAN, searcher); System.out.println("Matches: " + searcherResult.getMatchingSentences()); assertEquals(1, searcherResult.getMatchingSentences().size()); 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 Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs