lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [20/20] lucenenet git commit: Lucene.Net.TestFramework.Util.LuceneTestCase: Printing out culture and time zone to console to make debugging easier.
Date Tue, 28 Feb 2017 12:30:11 GMT
Lucene.Net.TestFramework.Util.LuceneTestCase: Printing out culture and time zone to console
to make debugging easier.


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

Branch: refs/heads/api-work
Commit: 2ddcc94bf8269854a722045d2c7809cdff704d12
Parents: 4e105bc
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Feb 28 19:19:59 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Feb 28 19:19:59 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/2ddcc94b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
index 47f8dca..8e623d6 100644
--- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
@@ -592,6 +592,15 @@ namespace Lucene.Net.Util
         {
             // LUCENENET TODO: Not sure how to convert these
             //ParentChainCallRule.SetupCalled = true;
+
+            if (LuceneTestCase.VERBOSE)
+            {
+                Console.Write("Culture: ");
+                Console.WriteLine(this.ClassEnvRule.locale.Name);
+
+                Console.Write("Time Zone: ");
+                Console.WriteLine(this.ClassEnvRule.timeZone.DisplayName);
+            }
         }
 
         /// <summary>


Mime
View raw message