lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [13/20] lucenenet git commit: Lucene.Net.Tests.Replicator: Fixed usings, license headers, and namespaces
Date Fri, 18 Aug 2017 08:05:00 GMT
Lucene.Net.Tests.Replicator: Fixed usings, license headers, and namespaces


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

Branch: refs/heads/replicator
Commit: 1e6ce74528af8a21b6ee58ece6c590a4e49b4cad
Parents: fd43c50
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Aug 17 03:00:42 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Aug 17 03:02:03 2017 +0700

----------------------------------------------------------------------
 .../Http/HttpReplicatorTest.cs                  | 32 ++++++++++------
 .../Http/ReplicationServlet.cs                  | 24 +++++++++---
 .../IndexAndTaxonomyReplicationClientTest.cs    | 39 +++++++++++++-------
 .../IndexAndTaxonomyRevisionTest.cs             | 12 ++----
 .../IndexReplicationClientTest.cs               | 34 ++++++++++++-----
 .../IndexRevisionTest.cs                        | 11 ++----
 .../LocalReplicatorTest.cs                      | 15 +++-----
 .../Lucene.Net.Tests.Replicator.csproj          |  5 ++-
 .../ReplicatorTestCase.cs                       |  6 +--
 .../SessionTokenTest.cs                         | 12 ++----
 10 files changed, 112 insertions(+), 78 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/Http/HttpReplicatorTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/Http/HttpReplicatorTest.cs b/src/Lucene.Net.Tests.Replicator/Http/HttpReplicatorTest.cs
index 6254be6..564eceb 100644
--- a/src/Lucene.Net.Tests.Replicator/Http/HttpReplicatorTest.cs
+++ b/src/Lucene.Net.Tests.Replicator/Http/HttpReplicatorTest.cs
@@ -1,23 +1,33 @@
-//STATUS: DRAFT - 4.8.0
-
-using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.IO;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
-using Lucene.Net.Replicator;
-using Lucene.Net.Replicator.Http;
 using Lucene.Net.Support;
 using Lucene.Net.Util;
-using Microsoft.AspNetCore.Hosting;
 using Microsoft.AspNetCore.TestHost;
-using Microsoft.Extensions.DependencyInjection;
 using NUnit.Framework;
+using System.Collections.Generic;
+using System.Globalization;
+using System.IO;
 using Directory = Lucene.Net.Store.Directory;
 
-namespace Lucene.Net.Tests.Replicator.Http
+namespace Lucene.Net.Replicator.Http
 {
+    /*
+     * 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.
+     */
+
     public class HttpReplicatorTest : ReplicatorTestCase
     {
         private DirectoryInfo clientWorkDir;

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/Http/ReplicationServlet.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/Http/ReplicationServlet.cs b/src/Lucene.Net.Tests.Replicator/Http/ReplicationServlet.cs
index 63420a6..77517e4 100644
--- a/src/Lucene.Net.Tests.Replicator/Http/ReplicationServlet.cs
+++ b/src/Lucene.Net.Tests.Replicator/Http/ReplicationServlet.cs
@@ -1,13 +1,27 @@
-//STATUS: DRAFT - 4.8.0
-
-using System.Threading.Tasks;
 using Lucene.Net.Replicator.AspNetCore;
-using Lucene.Net.Replicator.Http;
 using Microsoft.AspNetCore.Builder;
 using Microsoft.AspNetCore.Hosting;
+using System.Threading.Tasks;
 
-namespace Lucene.Net.Tests.Replicator.Http
+namespace Lucene.Net.Replicator.Http
 {
+    /*
+     * 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.
+     */
+
     public class ReplicationServlet
     {
         public void Configure(IApplicationBuilder app, IHostingEnvironment env, ReplicationService
service)

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyReplicationClientTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyReplicationClientTest.cs b/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyReplicationClientTest.cs
index a6cdfbc..4b93b49 100644
--- a/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyReplicationClientTest.cs
+++ b/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyReplicationClientTest.cs
@@ -1,29 +1,40 @@
-´╗┐//STATUS: DRAFT - 4.8.0
-
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Globalization;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading;
-using System.Threading.Tasks;
-using Lucene.Net.Documents;
+´╗┐using Lucene.Net.Documents;
 using Lucene.Net.Facet;
 using Lucene.Net.Facet.Taxonomy;
 using Lucene.Net.Facet.Taxonomy.Directory;
 using Lucene.Net.Index;
-using Lucene.Net.Replicator;
 using Lucene.Net.Search;
 using Lucene.Net.Store;
 using Lucene.Net.Support;
 using Lucene.Net.Util;
 using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Globalization;
+using System.IO;
+using System.Threading;
 using Directory = Lucene.Net.Store.Directory;
 
-namespace Lucene.Net.Tests.Replicator
+namespace Lucene.Net.Replicator
 {
+    /*
+     * 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.
+     */
+
     [TestFixture]
     public class IndexAndTaxonomyReplicationClientTest : ReplicatorTestCase
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyRevisionTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyRevisionTest.cs b/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyRevisionTest.cs
index 9a54148..9290a5c 100644
--- a/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyRevisionTest.cs
+++ b/src/Lucene.Net.Tests.Replicator/IndexAndTaxonomyRevisionTest.cs
@@ -1,20 +1,16 @@
-//STATUS: DRAFT - 4.8.0
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
 using Lucene.Net.Documents;
 using Lucene.Net.Facet;
 using Lucene.Net.Facet.Taxonomy;
 using Lucene.Net.Index;
-using Lucene.Net.Replicator;
 using Lucene.Net.Store;
 using Lucene.Net.Util;
 using NUnit.Framework;
+using System;
+using System.IO;
+using System.Linq;
 using Directory = Lucene.Net.Store.Directory;
 
-namespace Lucene.Net.Tests.Replicator
+namespace Lucene.Net.Replicator
 {
     /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/IndexReplicationClientTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/IndexReplicationClientTest.cs b/src/Lucene.Net.Tests.Replicator/IndexReplicationClientTest.cs
index 9d28332..4e816a4 100644
--- a/src/Lucene.Net.Tests.Replicator/IndexReplicationClientTest.cs
+++ b/src/Lucene.Net.Tests.Replicator/IndexReplicationClientTest.cs
@@ -1,22 +1,36 @@
-//STATUS: DRAFT - 4.8.0
-
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Globalization;
-using System.IO;
-using System.Threading;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
-using Lucene.Net.Replicator;
 using Lucene.Net.Store;
 using Lucene.Net.Support;
 using Lucene.Net.Util;
 using NUnit.Framework;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.Globalization;
+using System.IO;
+using System.Threading;
 using Directory = Lucene.Net.Store.Directory;
 
-namespace Lucene.Net.Tests.Replicator
+namespace Lucene.Net.Replicator
 {
+    /*
+     * 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.
+     */
+
     [TestFixture]
     public class IndexReplicationClientTest : ReplicatorTestCase
     {

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/IndexRevisionTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/IndexRevisionTest.cs b/src/Lucene.Net.Tests.Replicator/IndexRevisionTest.cs
index ee0108b..22d88be 100644
--- a/src/Lucene.Net.Tests.Replicator/IndexRevisionTest.cs
+++ b/src/Lucene.Net.Tests.Replicator/IndexRevisionTest.cs
@@ -1,17 +1,14 @@
-//STATUS: DRAFT - 4.8.0
-
-using System;
-using System.IO;
-using System.Linq;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
-using Lucene.Net.Replicator;
 using Lucene.Net.Store;
 using Lucene.Net.Util;
 using NUnit.Framework;
+using System;
+using System.IO;
+using System.Linq;
 using Directory = Lucene.Net.Store.Directory;
 
-namespace Lucene.Net.Tests.Replicator
+namespace Lucene.Net.Replicator
 {
     /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/LocalReplicatorTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/LocalReplicatorTest.cs b/src/Lucene.Net.Tests.Replicator/LocalReplicatorTest.cs
index d54e2e1..65f37bc 100644
--- a/src/Lucene.Net.Tests.Replicator/LocalReplicatorTest.cs
+++ b/src/Lucene.Net.Tests.Replicator/LocalReplicatorTest.cs
@@ -1,20 +1,15 @@
-//STATUS: DRAFT - 4.8.0
-
+using Lucene.Net.Documents;
+using Lucene.Net.Index;
+using Lucene.Net.Util;
+using NUnit.Framework;
 using System;
 using System.Collections.Generic;
 using System.IO;
 using System.Linq;
 using System.Threading;
-using Lucene.Net.Documents;
-using Lucene.Net.Index;
-using Lucene.Net.Replicator;
-using Lucene.Net.Support;
-using Lucene.Net.Support.C5;
-using Lucene.Net.Util;
-using NUnit.Framework;
 using Directory = Lucene.Net.Store.Directory;
 
-namespace Lucene.Net.Tests.Replicator
+namespace Lucene.Net.Replicator
 {
     /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/Lucene.Net.Tests.Replicator.csproj
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/Lucene.Net.Tests.Replicator.csproj b/src/Lucene.Net.Tests.Replicator/Lucene.Net.Tests.Replicator.csproj
index 60adc6e..41cb28d 100644
--- a/src/Lucene.Net.Tests.Replicator/Lucene.Net.Tests.Replicator.csproj
+++ b/src/Lucene.Net.Tests.Replicator/Lucene.Net.Tests.Replicator.csproj
@@ -7,7 +7,7 @@
     <ProjectGuid>{418E9D8E-2369-4B52-8D2F-5A987213999B}</ProjectGuid>
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>Lucene.Net.Tests.Replicator</RootNamespace>
+    <RootNamespace>Lucene.Net.Replicator</RootNamespace>
     <AssemblyName>Lucene.Net.Tests.Replicator</AssemblyName>
     <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
@@ -208,6 +208,9 @@
       <Name>Lucene.Net</Name>
     </ProjectReference>
   </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/1e6ce745/src/Lucene.Net.Tests.Replicator/ReplicatorTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/ReplicatorTestCase.cs b/src/Lucene.Net.Tests.Replicator/ReplicatorTestCase.cs
index 58e6ea9..0e35b2c 100644
--- a/src/Lucene.Net.Tests.Replicator/ReplicatorTestCase.cs
+++ b/src/Lucene.Net.Tests.Replicator/ReplicatorTestCase.cs
@@ -1,13 +1,11 @@
-//STATUS: PENDING - 4.8.0
-
-using System;
 using Lucene.Net.Replicator.Http;
 using Lucene.Net.Util;
 using Microsoft.AspNetCore.Hosting;
 using Microsoft.AspNetCore.TestHost;
 using Microsoft.Extensions.DependencyInjection;
+using System;
 
-namespace Lucene.Net.Tests.Replicator
+namespace Lucene.Net.Replicator
 {
     /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1e6ce745/src/Lucene.Net.Tests.Replicator/SessionTokenTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.Replicator/SessionTokenTest.cs b/src/Lucene.Net.Tests.Replicator/SessionTokenTest.cs
index 7c98f88..5f01824 100644
--- a/src/Lucene.Net.Tests.Replicator/SessionTokenTest.cs
+++ b/src/Lucene.Net.Tests.Replicator/SessionTokenTest.cs
@@ -1,18 +1,14 @@
-//STATUS: DRAFT - 4.8.0
-
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
-using Lucene.Net.Replicator;
-using Lucene.Net.Store;
 using Lucene.Net.Support.IO;
 using Lucene.Net.Util;
 using NUnit.Framework;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
 using Directory = Lucene.Net.Store.Directory;
 
-namespace Lucene.Net.Tests.Replicator
+namespace Lucene.Net.Replicator
 {
     /*
 	 * Licensed to the Apache Software Foundation (ASF) under one or more


Mime
View raw message