You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by sh...@apache.org on 2009/08/30 21:08:49 UTC

svn commit: r809403 - in /lucene/solr/trunk/src/test/org/apache/solr: ./ core/ handler/ highlight/ schema/

Author: shalin
Date: Sun Aug 30 19:08:49 2009
New Revision: 809403

URL: http://svn.apache.org/viewvc?rev=809403&view=rev
Log:
Added license headers and removed unused imports

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java
    lucene/solr/trunk/src/test/org/apache/solr/core/AlternateDirectoryTest.java
    lucene/solr/trunk/src/test/org/apache/solr/core/FakeDeletionPolicy.java
    lucene/solr/trunk/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.java
    lucene/solr/trunk/src/test/org/apache/solr/core/TestArbitraryIndexDir.java
    lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java
    lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.java
    lucene/solr/trunk/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.java
    lucene/solr/trunk/src/test/org/apache/solr/highlight/DummyHighlighter.java
    lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterConfigTest.java
    lucene/solr/trunk/src/test/org/apache/solr/schema/CustomSimilarityFactory.java
    lucene/solr/trunk/src/test/org/apache/solr/schema/MockConfigurableSimilarity.java

Modified: lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java Sun Aug 30 19:08:49 2009
@@ -1,16 +1,22 @@
+/**
+ * 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.
+ */
 package org.apache.solr;
 
-import java.io.File;
-import java.net.URL;
-import java.net.URLDecoder;
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.List;
-
-import javax.management.Query;
-
-import org.apache.lucene.search.function.FieldCacheSource;
-import org.apache.solr.common.util.NamedList;
+import junit.framework.TestCase;
 import org.apache.solr.core.SolrInfoMBean;
 import org.apache.solr.handler.StandardRequestHandler;
 import org.apache.solr.handler.admin.LukeRequestHandler;
@@ -18,10 +24,12 @@
 import org.apache.solr.handler.component.SearchHandler;
 import org.apache.solr.highlight.DefaultSolrHighlighter;
 import org.apache.solr.search.LRUCache;
-import org.apache.solr.search.QueryUtils;
-import org.apache.solr.update.UpdateHandler;
 
-import junit.framework.TestCase;
+import java.io.File;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
 
 /**
  * A simple test used to increase code coverage for some standard things...

Modified: lucene/solr/trunk/src/test/org/apache/solr/core/AlternateDirectoryTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/core/AlternateDirectoryTest.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/core/AlternateDirectoryTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/core/AlternateDirectoryTest.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.core;
 
 import java.io.IOException;

Modified: lucene/solr/trunk/src/test/org/apache/solr/core/FakeDeletionPolicy.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/core/FakeDeletionPolicy.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/core/FakeDeletionPolicy.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/core/FakeDeletionPolicy.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.core;
 
 import org.apache.lucene.index.IndexDeletionPolicy;

Modified: lucene/solr/trunk/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/core/MockQuerySenderListenerReqHandler.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.core;
 
 import org.apache.solr.handler.RequestHandlerBase;

Modified: lucene/solr/trunk/src/test/org/apache/solr/core/TestArbitraryIndexDir.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/core/TestArbitraryIndexDir.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/core/TestArbitraryIndexDir.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/core/TestArbitraryIndexDir.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.core;
 
 import java.io.File;

Modified: lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.core;
 
 import org.apache.lucene.index.IndexCommit;

Modified: lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/core/TestSolrDeletionPolicy2.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.core;
 
 import org.apache.solr.util.AbstractSolrTestCase;

Modified: lucene/solr/trunk/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/handler/XmlUpdateRequestHandlerTest.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.handler;
 
 import org.apache.solr.util.AbstractSolrTestCase;

Modified: lucene/solr/trunk/src/test/org/apache/solr/highlight/DummyHighlighter.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/highlight/DummyHighlighter.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/highlight/DummyHighlighter.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/highlight/DummyHighlighter.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.highlight;
 
 import java.io.IOException;

Modified: lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterConfigTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterConfigTest.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterConfigTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/highlight/HighlighterConfigTest.java Sun Aug 30 19:08:49 2009
@@ -1,18 +1,25 @@
+/**
+ * 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.
+ */
 package org.apache.solr.highlight;
 
-import java.io.IOException;
-import java.util.HashMap;
-
-import org.apache.lucene.search.Query;
-import org.apache.solr.common.util.NamedList;
-import org.apache.solr.common.util.SimpleOrderedMap;
-import org.apache.solr.core.Config;
-import org.apache.solr.core.SolrCore;
-import org.apache.solr.request.SolrQueryRequest;
-import org.apache.solr.search.DocList;
 import org.apache.solr.util.AbstractSolrTestCase;
 import org.apache.solr.util.TestHarness;
 
+import java.util.HashMap;
 
 public class HighlighterConfigTest extends AbstractSolrTestCase {
 	  @Override public String getSchemaFile() { return "schema.xml"; }

Modified: lucene/solr/trunk/src/test/org/apache/solr/schema/CustomSimilarityFactory.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/schema/CustomSimilarityFactory.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/schema/CustomSimilarityFactory.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/schema/CustomSimilarityFactory.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.schema;
 
 import org.apache.lucene.search.Similarity;

Modified: lucene/solr/trunk/src/test/org/apache/solr/schema/MockConfigurableSimilarity.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/schema/MockConfigurableSimilarity.java?rev=809403&r1=809402&r2=809403&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/schema/MockConfigurableSimilarity.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/schema/MockConfigurableSimilarity.java Sun Aug 30 19:08:49 2009
@@ -1,3 +1,19 @@
+/**
+ * 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.
+ */
 package org.apache.solr.schema;
 
 import org.apache.lucene.search.DefaultSimilarity;