You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/10/02 10:17:00 UTC
[29/49] lucenenet git commit: Moved tests from namespace
Lucene.Net.Document to Lucene.Net.Documents so we don't have conflicts with
the Document type and cleaned up headers.
Moved tests from namespace Lucene.Net.Document to Lucene.Net.Documents so we don't have conflicts with the Document type and cleaned up headers.
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/4b4485be
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/4b4485be
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/4b4485be
Branch: refs/heads/master
Commit: 4b4485bee1984f66c871418fc7266453c96e1095
Parents: f4819a3
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Sun Sep 11 04:08:30 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Sun Sep 11 04:19:48 2016 +0700
----------------------------------------------------------------------
.../core/Document/TestBinaryDocument.cs | 21 +++++-----
.../core/Document/TestDateTools.cs | 14 ++-----
.../core/Document/TestDocument.cs | 42 +++++++++----------
src/Lucene.Net.Tests/core/Document/TestField.cs | 44 ++++++++++----------
4 files changed, 54 insertions(+), 67 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4b4485be/src/Lucene.Net.Tests/core/Document/TestBinaryDocument.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Document/TestBinaryDocument.cs b/src/Lucene.Net.Tests/core/Document/TestBinaryDocument.cs
index 742a0f4..7fdb751 100644
--- a/src/Lucene.Net.Tests/core/Document/TestBinaryDocument.cs
+++ b/src/Lucene.Net.Tests/core/Document/TestBinaryDocument.cs
@@ -1,18 +1,10 @@
-using Lucene.Net.Documents;
using Lucene.Net.Support;
+using NUnit.Framework;
+using System;
using System.Text;
-namespace Lucene.Net.Document
+namespace Lucene.Net.Documents
{
- using NUnit.Framework;
- using System;
- using BytesRef = Lucene.Net.Util.BytesRef;
- using Directory = Lucene.Net.Store.Directory;
- using IndexableField = Lucene.Net.Index.IndexableField;
- using IndexReader = Lucene.Net.Index.IndexReader;
- using LuceneTestCase = Lucene.Net.Util.LuceneTestCase;
- using RandomIndexWriter = Lucene.Net.Index.RandomIndexWriter;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -30,6 +22,13 @@ namespace Lucene.Net.Document
* limitations under the License.
*/
+ using BytesRef = Lucene.Net.Util.BytesRef;
+ using Directory = Lucene.Net.Store.Directory;
+ using IndexableField = Lucene.Net.Index.IndexableField;
+ using IndexReader = Lucene.Net.Index.IndexReader;
+ using LuceneTestCase = Lucene.Net.Util.LuceneTestCase;
+ using RandomIndexWriter = Lucene.Net.Index.RandomIndexWriter;
+
/// <summary>
/// Tests <seealso cref="Document"/> class.
/// </summary>
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4b4485be/src/Lucene.Net.Tests/core/Document/TestDateTools.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Document/TestDateTools.cs b/src/Lucene.Net.Tests/core/Document/TestDateTools.cs
index 26cb90d..3634e8b 100644
--- a/src/Lucene.Net.Tests/core/Document/TestDateTools.cs
+++ b/src/Lucene.Net.Tests/core/Document/TestDateTools.cs
@@ -1,18 +1,10 @@
+using Lucene.Net.Util;
+using NUnit.Framework;
using System;
using System.Globalization;
-using Lucene.Net.Documents;
-namespace Lucene.Net.Document
+namespace Lucene.Net.Documents
{
- /*using Rule = org.junit.Rule;
- using RuleChain = org.junit.rules.RuleChain;
- using TestRule = org.junit.rules.TestRule;
-
- using SystemPropertiesRestoreRule = com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule;*/
-
- using NUnit.Framework;
- using LuceneTestCase = Lucene.Net.Util.LuceneTestCase;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4b4485be/src/Lucene.Net.Tests/core/Document/TestDocument.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Document/TestDocument.cs b/src/Lucene.Net.Tests/core/Document/TestDocument.cs
index 458f2a0..c139d13 100644
--- a/src/Lucene.Net.Tests/core/Document/TestDocument.cs
+++ b/src/Lucene.Net.Tests/core/Document/TestDocument.cs
@@ -1,11 +1,27 @@
-using Lucene.Net.Documents;
using Lucene.Net.Support;
+using NUnit.Framework;
+using System.IO;
using System.Text;
-namespace Lucene.Net.Document
+namespace Lucene.Net.Documents
{
- using NUnit.Framework;
- using System.IO;
+ /*
+ * 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.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
using BytesRef = Lucene.Net.Util.BytesRef;
using Directory = Lucene.Net.Store.Directory;
using DirectoryReader = Lucene.Net.Index.DirectoryReader;
@@ -15,24 +31,6 @@ namespace Lucene.Net.Document
using IndexReader = Lucene.Net.Index.IndexReader;
using IndexSearcher = Lucene.Net.Search.IndexSearcher;
using LuceneTestCase = Lucene.Net.Util.LuceneTestCase;
-
- /*
- * 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.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
using MockTokenizer = Lucene.Net.Analysis.MockTokenizer;
using PhraseQuery = Lucene.Net.Search.PhraseQuery;
using Query = Lucene.Net.Search.Query;
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/4b4485be/src/Lucene.Net.Tests/core/Document/TestField.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Document/TestField.cs b/src/Lucene.Net.Tests/core/Document/TestField.cs
index cbe8ecd..3799591 100644
--- a/src/Lucene.Net.Tests/core/Document/TestField.cs
+++ b/src/Lucene.Net.Tests/core/Document/TestField.cs
@@ -1,31 +1,29 @@
+using Lucene.Net.Support;
+using NUnit.Framework;
+using System;
+using System.IO;
using System.Text;
-using Lucene.Net.Documents;
-namespace Lucene.Net.Document
+namespace Lucene.Net.Documents
{
- using Lucene.Net.Support;
- using NUnit.Framework;
- using System;
- using System.IO;
- using BytesRef = Lucene.Net.Util.BytesRef;
-
/*
- * 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.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+ * 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.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ using BytesRef = Lucene.Net.Util.BytesRef;
using CannedTokenStream = Lucene.Net.Analysis.CannedTokenStream;
using LuceneTestCase = Lucene.Net.Util.LuceneTestCase;
using Token = Lucene.Net.Analysis.Token;