lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [12/47] lucenenet git commit: Added the Codecs.SimpleText tests to the project
Date Tue, 11 Oct 2016 18:34:57 GMT
Added the Codecs.SimpleText tests to the project


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/cef4d0d7
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/cef4d0d7
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/cef4d0d7

Branch: refs/heads/master
Commit: cef4d0d7bf3100d3a1ea9a09344949957009392d
Parents: 31d6632
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Mon Oct 10 23:16:39 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Oct 10 23:16:39 2016 +0700

----------------------------------------------------------------------
 .../Lucene.Net.Tests.Codecs.csproj              | 11 +++++
 .../SimpleText/TestSimpleTextDocValuesFormat.cs | 47 +++++++++++---------
 .../SimpleText/TestSimpleTextPostingsFormat.cs  | 42 ++++++++---------
 .../TestSimpleTextStoredFieldsFormat.cs         | 32 ++++++-------
 .../TestSimpleTextTermVectorsFormat.cs          | 32 +++++++------
 5 files changed, 88 insertions(+), 76 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cef4d0d7/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj b/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj
index e92c615..991be3c 100644
--- a/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj
+++ b/src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj
@@ -44,8 +44,16 @@
   <ItemGroup>
     <Compile Include="DiskDv\TestDiskDocValuesFormat.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="SimpleText\TestSimpleTextDocValuesFormat.cs" />
+    <Compile Include="SimpleText\TestSimpleTextPostingsFormat.cs" />
+    <Compile Include="SimpleText\TestSimpleTextStoredFieldsFormat.cs" />
+    <Compile Include="SimpleText\TestSimpleTextTermVectorsFormat.cs" />
   </ItemGroup>
   <ItemGroup>
+    <ProjectReference Include="..\Lucene.Net.Analysis.Common\Lucene.Net.Analysis.Common.csproj">
+      <Project>{4ADD0BBC-B900-4715-9526-D871DE8EEA64}</Project>
+      <Name>Lucene.Net.Analysis.Common</Name>
+    </ProjectReference>
     <ProjectReference Include="..\Lucene.Net.Codecs\Lucene.Net.Codecs.csproj">
       <Project>{3f79b6d4-4359-4f83-b64f-07f4f6262425}</Project>
       <Name>Lucene.Net.Codecs</Name>
@@ -66,6 +74,9 @@
   <ItemGroup>
     <None Include="packages.config" />
   </ItemGroup>
+  <ItemGroup>
+    <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and
uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cef4d0d7/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
index a6b8681..497e26f 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextDocValuesFormat.cs
@@ -1,7 +1,17 @@
-namespace org.apache.lucene.codecs.simpletext
-{
+using System;
+using Lucene.Net.Index;
+using NUnit.Framework;
+using Lucene.Net.Analysis;
+using Lucene.Net.Store;
+using Lucene.Net.Documents;
+using Lucene.Net.Util;
+using Lucene.Net.Search;
+using System.Diagnostics;
+using Lucene.Net.Analysis.Standard;
 
-	/*
+namespace Lucene.Net.Codecs.SimpleText
+{
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -18,22 +28,19 @@
 	 * limitations under the License.
 	 */
 
-	using BaseDocValuesFormatTestCase = org.apache.lucene.index.BaseDocValuesFormatTestCase;
-
-	/// <summary>
-	/// Tests SimpleTextDocValuesFormat
-	/// </summary>
-	public class TestSimpleTextDocValuesFormat : BaseDocValuesFormatTestCase
-	{
-	  private readonly Codec codec = new SimpleTextCodec();
-
-	  protected internal override Codec Codec
-	  {
-		  get
-		  {
-			return codec;
-		  }
-	  }
-	}
+    /// <summary>
+    /// Tests SimpleTextDocValuesFormat
+    /// </summary>
+    public class TestSimpleTextDocValuesFormat : BaseDocValuesFormatTestCase
+    {
+        private readonly Codec codec = new SimpleTextCodec();
 
+        protected override Codec Codec
+        {
+            get
+            {
+                return codec;
+            }
+        }
+    }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cef4d0d7/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
index ff628f8..a8cb997 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextPostingsFormat.cs
@@ -1,7 +1,9 @@
-namespace org.apache.lucene.codecs.simpletext
-{
+using Lucene.Net.Index;
+using NUnit.Framework;
 
-	/*
+namespace Lucene.Net.Codecs.SimpleText
+{
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -18,25 +20,19 @@
 	 * limitations under the License.
 	 */
 
-	using BasePostingsFormatTestCase = org.apache.lucene.index.BasePostingsFormatTestCase;
-	using Nightly = org.apache.lucene.util.LuceneTestCase.Nightly;
-
-	/// <summary>
-	/// Tests SimpleText's postings
-	/// </summary>
-//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent
attributes:
-//ORIGINAL LINE: @Nightly public class TestSimpleTextPostingsFormat extends org.apache.lucene.index.BasePostingsFormatTestCase
-	public class TestSimpleTextPostingsFormat : BasePostingsFormatTestCase // please figure
out why I am so horrendously slow!
-	{
-	  private readonly Codec codec = new SimpleTextCodec();
-
-	  protected internal override Codec Codec
-	  {
-		  get
-		  {
-			return codec;
-		  }
-	  }
-	}
+    /// <summary>
+    /// Tests SimpleText's postings
+    /// </summary>
+    public class TestSimpleTextPostingsFormat : BasePostingsFormatTestCase // please figure
out why I am so horrendously slow!
+    {
+        private readonly Codec codec = new SimpleTextCodec();
 
+        protected override Codec Codec
+        {
+            get
+            {
+                return codec;
+            }
+        }
+    }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cef4d0d7/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
index 2a7c3c2..5dab469 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextStoredFieldsFormat.cs
@@ -1,7 +1,10 @@
-namespace org.apache.lucene.codecs.simpletext
-{
+using Lucene.Net.Attributes;
+using Lucene.Net.Index;
+using NUnit.Framework;
 
-	/*
+namespace Lucene.Net.Codecs.SimpleText
+{
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -18,18 +21,15 @@
 	 * limitations under the License.
 	 */
 
-	using BaseStoredFieldsFormatTestCase = org.apache.lucene.index.BaseStoredFieldsFormatTestCase;
-
-	public class TestSimpleTextStoredFieldsFormat : BaseStoredFieldsFormatTestCase
-	{
-
-	  protected internal override Codec Codec
-	  {
-		  get
-		  {
-			return new SimpleTextCodec();
-		  }
-	  }
-	}
+    public class TestSimpleTextStoredFieldsFormat : BaseStoredFieldsFormatTestCase
+    {
 
+        protected override Codec Codec
+        {
+            get
+            {
+                return new SimpleTextCodec();
+            }
+        }
+    }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cef4d0d7/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
index ef41ca9..a5fe4c5 100644
--- a/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
+++ b/src/Lucene.Net.Tests.Codecs/SimpleText/TestSimpleTextTermVectorsFormat.cs
@@ -1,7 +1,9 @@
-namespace org.apache.lucene.codecs.simpletext
-{
+using Lucene.Net.Index;
+using NUnit.Framework;
 
-	/*
+namespace Lucene.Net.Codecs.SimpleText
+{
+    /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more
 	 * contributor license agreements.  See the NOTICE file distributed with
 	 * this work for additional information regarding copyright ownership.
@@ -18,19 +20,15 @@
 	 * limitations under the License.
 	 */
 
-	using BaseTermVectorsFormatTestCase = org.apache.lucene.index.BaseTermVectorsFormatTestCase;
-
-	public class TestSimpleTextTermVectorsFormat : BaseTermVectorsFormatTestCase
-	{
-
-	  protected internal override Codec Codec
-	  {
-		  get
-		  {
-			return new SimpleTextCodec();
-		  }
-	  }
-
-	}
+    public class TestSimpleTextTermVectorsFormat : BaseTermVectorsFormatTestCase
+    {
 
+        protected override Codec Codec
+        {
+            get
+            {
+                return new SimpleTextCodec();
+            }
+        }
+    }
 }
\ No newline at end of file


Mime
View raw message