lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccurr...@apache.org
Subject svn commit: r1343859 - in /incubator/lucene.net/trunk/test/contrib: Memory/Contrib.Memory.Test.csproj Memory/MemoryIndexTest.cs SimpleFacetedSearch/TestSimpleFacetedSearch.cs SpellChecker/Test/TestLuceneDictionary.cs SpellChecker/Test/TestSpellChecker.cs
Date Tue, 29 May 2012 17:19:55 GMT
Author: ccurrens
Date: Tue May 29 17:19:55 2012
New Revision: 1343859

URL: http://svn.apache.org/viewvc?rev=1343859&view=rev
Log:
Fixed a few issues with test projects not building due to a previous commit
Fixed the default namespace, the output name, and output directory for Contrib.Memory.Test

Modified:
    incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj
    incubator/lucene.net/trunk/test/contrib/Memory/MemoryIndexTest.cs
    incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs
    incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestLuceneDictionary.cs
    incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs

Modified: incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj?rev=1343859&r1=1343858&r2=1343859&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj (original)
+++ incubator/lucene.net/trunk/test/contrib/Memory/Contrib.Memory.Test.csproj Tue May 29 17:19:55
2012
@@ -6,8 +6,8 @@
     <ProjectGuid>{66C13054-FF41-4C1D-BD0D-8DA009D1DFFD}</ProjectGuid>
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>Memory</RootNamespace>
-    <AssemblyName>Memory</AssemblyName>
+    <RootNamespace>Lucene.Net.Index.Memory.Test</RootNamespace>
+    <AssemblyName>Lucene.Net.Contrib.Memory.Test</AssemblyName>
     <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
   </PropertyGroup>
@@ -15,7 +15,7 @@
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
-    <OutputPath>bin\Debug\</OutputPath>
+    <OutputPath>..\..\..\build\bin\contrib\Memory\Debug\</OutputPath>
     <DefineConstants>DEBUG;TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
@@ -23,7 +23,7 @@
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>
     <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
+    <OutputPath>..\..\..\build\bin\contrib\Memory\Release\</OutputPath>
     <DefineConstants>TRACE</DefineConstants>
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>

Modified: incubator/lucene.net/trunk/test/contrib/Memory/MemoryIndexTest.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Memory/MemoryIndexTest.cs?rev=1343859&r1=1343858&r2=1343859&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Memory/MemoryIndexTest.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/Memory/MemoryIndexTest.cs Tue May 29 17:19:55
2012
@@ -5,16 +5,14 @@ using System.Text;
 using Lucene.Net.Analysis;
 using Lucene.Net.Analysis.Standard;
 using Lucene.Net.Documents;
-using Lucene.Net.Index;
-using Lucene.Net.Index.Memory;
 using Lucene.Net.QueryParsers;
 using Lucene.Net.Search;
 using Lucene.Net.Store;
 using Lucene.Net.Test.Analysis;
-using Version = Lucene.Net.Util.Version;
 using NUnit.Framework;
+using Version = Lucene.Net.Util.Version;
 
-namespace Memory
+namespace Lucene.Net.Index.Memory.Test
 {
     /**
      * Verifies that Lucene MemoryIndex and RAMDirectory have the same behaviour,

Modified: incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs?rev=1343859&r1=1343858&r2=1343859&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs
(original)
+++ incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs
Tue May 29 17:19:55 2012
@@ -56,7 +56,7 @@ namespace Lucene.Net.Search
             AddDoc(writer, "en", "CCN", "dummy", "oooooooooooooooooooooo");
             writer.Close();
 
-            _Reader = IndexReader.Open(_Dir);
+            _Reader = IndexReader.Open(_Dir, true);
         }
 
         void AddDoc(IndexWriter writer, string lang, string source, string group, string
text)

Modified: incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestLuceneDictionary.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestLuceneDictionary.cs?rev=1343859&r1=1343858&r2=1343859&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestLuceneDictionary.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestLuceneDictionary.cs Tue
May 29 17:19:55 2012
@@ -73,7 +73,7 @@ namespace SpellChecker.Net.Test.Search.S
         {
             try
             {
-                indexReader = IndexReader.Open(store);
+                indexReader = IndexReader.Open(store, true);
 
                 ld = new LuceneDictionary(indexReader, "nonexistent_field");
                 it = ld.GetWordsIterator();
@@ -92,7 +92,7 @@ namespace SpellChecker.Net.Test.Search.S
         {
             try
             {
-                indexReader = IndexReader.Open(store);
+                indexReader = IndexReader.Open(store, true);
 
                 ld = new LuceneDictionary(indexReader, "aaa");
                 it = ld.GetWordsIterator();
@@ -113,7 +113,7 @@ namespace SpellChecker.Net.Test.Search.S
         {
             try
             {
-                indexReader = IndexReader.Open(store);
+                indexReader = IndexReader.Open(store, true);
 
                 ld = new LuceneDictionary(indexReader, "contents");
                 it = ld.GetWordsIterator();
@@ -148,7 +148,7 @@ namespace SpellChecker.Net.Test.Search.S
         {
             try
             {
-                indexReader = IndexReader.Open(store);
+                indexReader = IndexReader.Open(store, true);
 
                 ld = new LuceneDictionary(indexReader, "contents");
                 it = ld.GetWordsIterator();
@@ -184,7 +184,7 @@ namespace SpellChecker.Net.Test.Search.S
         {
             try
             {
-                indexReader = IndexReader.Open(store);
+                indexReader = IndexReader.Open(store, true);
 
                 ld = new LuceneDictionary(indexReader, "zzz");
                 it = ld.GetWordsIterator();
@@ -204,7 +204,7 @@ namespace SpellChecker.Net.Test.Search.S
         public void TestSpellchecker()
         {
             var sc = new Net.Search.Spell.SpellChecker(new RAMDirectory());
-            indexReader = IndexReader.Open(store);
+            indexReader = IndexReader.Open(store, true);
             sc.IndexDictionary(new LuceneDictionary(indexReader, "contents"));
             String[] suggestions = sc.SuggestSimilar("Tam", 1);
             AssertEquals(1, suggestions.Length);

Modified: incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs?rev=1343859&r1=1343858&r2=1343859&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs Tue May
29 17:19:55 2012
@@ -218,7 +218,7 @@ namespace SpellChecker.Net.Test.Search.S
 
         private int Numdoc()
         {
-            var rs = IndexReader.Open(spellindex);
+            var rs = IndexReader.Open(spellindex, true);
             int num = rs.NumDocs();
             Assert.IsTrue(num != 0);
             



Mime
View raw message