lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [3/7] lucenenet git commit: Remove static in setup/teardown methods
Date Fri, 14 Nov 2014 11:06:51 GMT
Remove static in setup/teardown methods


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

Branch: refs/heads/master
Commit: 76fa4868e9f6ff046772deb9653c34bb35cb6d5f
Parents: a4e8a7a
Author: mdissel <marco.dissel@gmail.com>
Authored: Tue Nov 4 23:29:24 2014 +0100
Committer: mdissel <marco.dissel@gmail.com>
Committed: Tue Nov 4 23:29:24 2014 +0100

----------------------------------------------------------------------
 .../Search/SearchEquivalenceTestBase.cs                        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/76fa4868/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs b/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs
index 04b21e2..2371021 100644
--- a/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs
+++ b/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs
@@ -50,14 +50,14 @@ namespace Lucene.Net.Search
     /// </summary>
     public abstract class SearchEquivalenceTestBase : LuceneTestCase
     {
-        protected internal static IndexSearcher S1, S2;
+        protected internal static IndexSearcher	S1, S2;
         protected internal static Directory Directory;
         protected internal static IndexReader Reader;
         protected internal static Analyzer Analyzer;
         protected internal static string Stopword; // we always pick a character as a stopword
 
         [SetUp]
-        public static void BeforeClass()
+        public void BeforeClass()
         {
             Random random = Random();
             Directory = NewDirectory();
@@ -102,7 +102,7 @@ namespace Lucene.Net.Search
         }
 
         [TearDown]
-        public static void AfterClass()
+        public void AfterClass()
         {
             Reader.Dispose();
             Directory.Dispose();


Mime
View raw message