diff --git a/server/src/test/java/org/elasticsearch/index/IndexingSlowLogTests.java b/server/src/test/java/org/elasticsearch/index/IndexingSlowLogTests.java index 933df6079db15..3e3241e672f1d 100644 --- a/server/src/test/java/org/elasticsearch/index/IndexingSlowLogTests.java +++ b/server/src/test/java/org/elasticsearch/index/IndexingSlowLogTests.java @@ -31,7 +31,7 @@ import org.opensearch.common.bytes.BytesArray; import org.opensearch.common.bytes.BytesReference; import org.opensearch.common.logging.Loggers; -import org.elasticsearch.common.logging.MockAppender; +import org.opensearch.common.logging.MockAppender; import org.opensearch.common.settings.Settings; import org.opensearch.common.unit.TimeValue; import org.elasticsearch.common.xcontent.XContentType; diff --git a/server/src/test/java/org/elasticsearch/index/SearchSlowLogTests.java b/server/src/test/java/org/elasticsearch/index/SearchSlowLogTests.java index 13e8825ec179e..0ef47e127059c 100644 --- a/server/src/test/java/org/elasticsearch/index/SearchSlowLogTests.java +++ b/server/src/test/java/org/elasticsearch/index/SearchSlowLogTests.java @@ -27,7 +27,7 @@ import org.opensearch.cluster.metadata.IndexMetadata; import org.opensearch.common.UUIDs; import org.opensearch.common.logging.Loggers; -import org.elasticsearch.common.logging.MockAppender; +import org.opensearch.common.logging.MockAppender; import org.opensearch.common.settings.Settings; import org.opensearch.common.unit.TimeValue; import org.opensearch.common.util.BigArrays; diff --git a/server/src/test/java/org/elasticsearch/index/fielddata/FieldDataStatsTests.java b/server/src/test/java/org/elasticsearch/index/fielddata/FieldDataStatsTests.java index a9b45536cde59..e32a597ecec5e 100644 --- a/server/src/test/java/org/elasticsearch/index/fielddata/FieldDataStatsTests.java +++ b/server/src/test/java/org/elasticsearch/index/fielddata/FieldDataStatsTests.java @@ -19,7 +19,7 @@ package org.elasticsearch.index.fielddata; import org.opensearch.common.FieldMemoryStats; -import org.elasticsearch.common.FieldMemoryStatsTests; +import org.opensearch.common.FieldMemoryStatsTests; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.StreamInput; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/index/suggest/stats/CompletionsStatsTests.java b/server/src/test/java/org/elasticsearch/index/suggest/stats/CompletionsStatsTests.java index 451bc3a932737..5fcb0ca1d2634 100644 --- a/server/src/test/java/org/elasticsearch/index/suggest/stats/CompletionsStatsTests.java +++ b/server/src/test/java/org/elasticsearch/index/suggest/stats/CompletionsStatsTests.java @@ -19,7 +19,7 @@ package org.elasticsearch.index.suggest.stats; import org.opensearch.common.FieldMemoryStats; -import org.elasticsearch.common.FieldMemoryStatsTests; +import org.opensearch.common.FieldMemoryStatsTests; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.StreamInput; import org.opensearch.search.suggest.completion.CompletionStats; diff --git a/server/src/test/java/org/elasticsearch/common/BooleansTests.java b/server/src/test/java/org/opensearch/common/BooleansTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/BooleansTests.java rename to server/src/test/java/org/opensearch/common/BooleansTests.java index 33dc4857f5a38..7095d5d0c7231 100644 --- a/server/src/test/java/org/elasticsearch/common/BooleansTests.java +++ b/server/src/test/java/org/opensearch/common/BooleansTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/ChannelsTests.java b/server/src/test/java/org/opensearch/common/ChannelsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/ChannelsTests.java rename to server/src/test/java/org/opensearch/common/ChannelsTests.java index 0222f8ffebecf..ef5604a3a658f 100644 --- a/server/src/test/java/org/elasticsearch/common/ChannelsTests.java +++ b/server/src/test/java/org/opensearch/common/ChannelsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.opensearch.common.bytes.BytesArray; import org.opensearch.common.bytes.BytesReference; diff --git a/server/src/test/java/org/elasticsearch/common/ExponentiallyWeightedMovingAverageTests.java b/server/src/test/java/org/opensearch/common/ExponentiallyWeightedMovingAverageTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/ExponentiallyWeightedMovingAverageTests.java rename to server/src/test/java/org/opensearch/common/ExponentiallyWeightedMovingAverageTests.java index f14dbae1ca536..cb1b1595174d0 100644 --- a/server/src/test/java/org/elasticsearch/common/ExponentiallyWeightedMovingAverageTests.java +++ b/server/src/test/java/org/opensearch/common/ExponentiallyWeightedMovingAverageTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.ExponentiallyWeightedMovingAverage; diff --git a/server/src/test/java/org/elasticsearch/common/FieldMemoryStatsTests.java b/server/src/test/java/org/opensearch/common/FieldMemoryStatsTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/FieldMemoryStatsTests.java rename to server/src/test/java/org/opensearch/common/FieldMemoryStatsTests.java index aa94bde6f2e1a..354703cea3253 100644 --- a/server/src/test/java/org/elasticsearch/common/FieldMemoryStatsTests.java +++ b/server/src/test/java/org/opensearch/common/FieldMemoryStatsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import com.carrotsearch.hppc.ObjectLongHashMap; import org.opensearch.common.io.stream.BytesStreamOutput; diff --git a/server/src/test/java/org/elasticsearch/common/LocalTimeOffsetTests.java b/server/src/test/java/org/opensearch/common/LocalTimeOffsetTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/LocalTimeOffsetTests.java rename to server/src/test/java/org/opensearch/common/LocalTimeOffsetTests.java index de2ec82d4604a..72b7a25e5ef47 100644 --- a/server/src/test/java/org/elasticsearch/common/LocalTimeOffsetTests.java +++ b/server/src/test/java/org/opensearch/common/LocalTimeOffsetTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.opensearch.bootstrap.JavaVersion; import org.opensearch.common.LocalTimeOffset; diff --git a/server/src/test/java/org/elasticsearch/common/NumbersTests.java b/server/src/test/java/org/opensearch/common/NumbersTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/NumbersTests.java rename to server/src/test/java/org/opensearch/common/NumbersTests.java index a417fb8b73599..83b722d8c289b 100644 --- a/server/src/test/java/org/elasticsearch/common/NumbersTests.java +++ b/server/src/test/java/org/opensearch/common/NumbersTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import com.carrotsearch.randomizedtesting.annotations.Timeout; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/PidFileTests.java b/server/src/test/java/org/opensearch/common/PidFileTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/PidFileTests.java rename to server/src/test/java/org/opensearch/common/PidFileTests.java index 8703975642bec..85dfca3bc7027 100644 --- a/server/src/test/java/org/elasticsearch/common/PidFileTests.java +++ b/server/src/test/java/org/opensearch/common/PidFileTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.PidFile; diff --git a/server/src/test/java/org/elasticsearch/common/PriorityTests.java b/server/src/test/java/org/opensearch/common/PriorityTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/PriorityTests.java rename to server/src/test/java/org/opensearch/common/PriorityTests.java index 077d2c39d7b84..2deb9fb1c3470 100644 --- a/server/src/test/java/org/elasticsearch/common/PriorityTests.java +++ b/server/src/test/java/org/opensearch/common/PriorityTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.opensearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/ReleasablesTests.java b/server/src/test/java/org/opensearch/common/ReleasablesTests.java similarity index 94% rename from server/src/test/java/org/elasticsearch/common/ReleasablesTests.java rename to server/src/test/java/org/opensearch/common/ReleasablesTests.java index 2b5965e442bed..a484a63d473f4 100644 --- a/server/src/test/java/org/elasticsearch/common/ReleasablesTests.java +++ b/server/src/test/java/org/opensearch/common/ReleasablesTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.opensearch.common.lease.Releasable; import org.opensearch.common.lease.Releasables; diff --git a/server/src/test/java/org/elasticsearch/common/RoundingTests.java b/server/src/test/java/org/opensearch/common/RoundingTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/RoundingTests.java rename to server/src/test/java/org/opensearch/common/RoundingTests.java index e2cb0a1909aea..2db1d75aa427d 100644 --- a/server/src/test/java/org/elasticsearch/common/RoundingTests.java +++ b/server/src/test/java/org/opensearch/common/RoundingTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.opensearch.common.collect.Tuple; import org.opensearch.common.rounding.DateTimeUnit; diff --git a/server/src/test/java/org/elasticsearch/common/RoundingWireTests.java b/server/src/test/java/org/opensearch/common/RoundingWireTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/RoundingWireTests.java rename to server/src/test/java/org/opensearch/common/RoundingWireTests.java index 3694ff39edbad..43f5bbe13f579 100644 --- a/server/src/test/java/org/elasticsearch/common/RoundingWireTests.java +++ b/server/src/test/java/org/opensearch/common/RoundingWireTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.opensearch.common.Rounding; import org.opensearch.common.Rounding.DateTimeUnit; diff --git a/server/src/test/java/org/elasticsearch/common/StringsTests.java b/server/src/test/java/org/opensearch/common/StringsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/StringsTests.java rename to server/src/test/java/org/opensearch/common/StringsTests.java index e721bf6b1c4c2..9e31a2c86a053 100644 --- a/server/src/test/java/org/elasticsearch/common/StringsTests.java +++ b/server/src/test/java/org/opensearch/common/StringsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.opensearch.common.util.set.Sets; import org.elasticsearch.common.xcontent.ToXContent; diff --git a/server/src/test/java/org/elasticsearch/common/TableTests.java b/server/src/test/java/org/opensearch/common/TableTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/TableTests.java rename to server/src/test/java/org/opensearch/common/TableTests.java index 8f7842cdcbf48..a9204e3404e2b 100644 --- a/server/src/test/java/org/elasticsearch/common/TableTests.java +++ b/server/src/test/java/org/opensearch/common/TableTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.Table; diff --git a/server/src/test/java/org/elasticsearch/common/UUIDTests.java b/server/src/test/java/org/opensearch/common/UUIDTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/UUIDTests.java rename to server/src/test/java/org/opensearch/common/UUIDTests.java index 07d6d29b5aa93..c5f4753fc062e 100644 --- a/server/src/test/java/org/elasticsearch/common/UUIDTests.java +++ b/server/src/test/java/org/opensearch/common/UUIDTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common; +package org.opensearch.common; import com.carrotsearch.randomizedtesting.generators.RandomPicks; @@ -36,9 +36,6 @@ import org.opensearch.common.unit.TimeValue; import org.elasticsearch.test.ESTestCase; import org.hamcrest.Matchers; -import org.opensearch.common.RandomBasedUUIDGenerator; -import org.opensearch.common.TimeBasedUUIDGenerator; -import org.opensearch.common.UUIDGenerator; import java.util.HashSet; import java.util.Random; diff --git a/server/src/test/java/org/elasticsearch/common/blobstore/BlobPathTests.java b/server/src/test/java/org/opensearch/common/blobstore/BlobPathTests.java similarity index 93% rename from server/src/test/java/org/elasticsearch/common/blobstore/BlobPathTests.java rename to server/src/test/java/org/opensearch/common/blobstore/BlobPathTests.java index 0b3bdfc21da9c..d7e07c548ac9e 100644 --- a/server/src/test/java/org/elasticsearch/common/blobstore/BlobPathTests.java +++ b/server/src/test/java/org/opensearch/common/blobstore/BlobPathTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.blobstore; +package org.opensearch.common.blobstore; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.blobstore.BlobPath; diff --git a/server/src/test/java/org/elasticsearch/common/blobstore/fs/FsBlobContainerTests.java b/server/src/test/java/org/opensearch/common/blobstore/fs/FsBlobContainerTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/blobstore/fs/FsBlobContainerTests.java rename to server/src/test/java/org/opensearch/common/blobstore/fs/FsBlobContainerTests.java index 874aaff6ba306..8d522614b8793 100644 --- a/server/src/test/java/org/elasticsearch/common/blobstore/fs/FsBlobContainerTests.java +++ b/server/src/test/java/org/opensearch/common/blobstore/fs/FsBlobContainerTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.blobstore.fs; +package org.opensearch.common.blobstore.fs; import org.apache.lucene.mockfile.FilterFileSystemProvider; import org.apache.lucene.mockfile.FilterSeekableByteChannel; diff --git a/server/src/test/java/org/elasticsearch/common/bytes/BytesArrayTests.java b/server/src/test/java/org/opensearch/common/bytes/BytesArrayTests.java similarity index 94% rename from server/src/test/java/org/elasticsearch/common/bytes/BytesArrayTests.java rename to server/src/test/java/org/opensearch/common/bytes/BytesArrayTests.java index 240373d427441..4c1569b4f9e1c 100644 --- a/server/src/test/java/org/elasticsearch/common/bytes/BytesArrayTests.java +++ b/server/src/test/java/org/opensearch/common/bytes/BytesArrayTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,8 +16,9 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.bytes; +package org.opensearch.common.bytes; +import org.elasticsearch.common.bytes.AbstractBytesReferenceTestCase; import org.opensearch.common.io.stream.BytesStreamOutput; import org.hamcrest.Matchers; import org.opensearch.common.bytes.BytesArray; diff --git a/server/src/test/java/org/elasticsearch/common/bytes/CompositeBytesReferenceTests.java b/server/src/test/java/org/opensearch/common/bytes/CompositeBytesReferenceTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/bytes/CompositeBytesReferenceTests.java rename to server/src/test/java/org/opensearch/common/bytes/CompositeBytesReferenceTests.java index 0d2a8e073dc83..5c1c0ab5acaf7 100644 --- a/server/src/test/java/org/elasticsearch/common/bytes/CompositeBytesReferenceTests.java +++ b/server/src/test/java/org/opensearch/common/bytes/CompositeBytesReferenceTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,11 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.bytes; +package org.opensearch.common.bytes; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefBuilder; import org.apache.lucene.util.BytesRefIterator; +import org.elasticsearch.common.bytes.AbstractBytesReferenceTestCase; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.ReleasableBytesStreamOutput; import org.hamcrest.Matchers; diff --git a/server/src/test/java/org/elasticsearch/common/bytes/PagedBytesReferenceTests.java b/server/src/test/java/org/opensearch/common/bytes/PagedBytesReferenceTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/bytes/PagedBytesReferenceTests.java rename to server/src/test/java/org/opensearch/common/bytes/PagedBytesReferenceTests.java index c977e6668b395..5fce9485c6e6c 100644 --- a/server/src/test/java/org/elasticsearch/common/bytes/PagedBytesReferenceTests.java +++ b/server/src/test/java/org/opensearch/common/bytes/PagedBytesReferenceTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,9 +17,10 @@ * under the License. */ -package org.elasticsearch.common.bytes; +package org.opensearch.common.bytes; import org.apache.lucene.util.BytesRef; +import org.elasticsearch.common.bytes.AbstractBytesReferenceTestCase; import org.opensearch.common.util.ByteArray; import org.hamcrest.Matchers; import org.opensearch.common.bytes.BytesArray; diff --git a/server/src/test/java/org/elasticsearch/common/bytes/RecyclingBytesStreamOutputTests.java b/server/src/test/java/org/opensearch/common/bytes/RecyclingBytesStreamOutputTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/bytes/RecyclingBytesStreamOutputTests.java rename to server/src/test/java/org/opensearch/common/bytes/RecyclingBytesStreamOutputTests.java index 05d45d582f5fb..891046542165e 100644 --- a/server/src/test/java/org/elasticsearch/common/bytes/RecyclingBytesStreamOutputTests.java +++ b/server/src/test/java/org/opensearch/common/bytes/RecyclingBytesStreamOutputTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.bytes; +package org.opensearch.common.bytes; import org.apache.lucene.util.BytesRef; import org.opensearch.common.settings.Settings; diff --git a/server/src/test/java/org/elasticsearch/common/bytes/ReleasableBytesReferenceTests.java b/server/src/test/java/org/opensearch/common/bytes/ReleasableBytesReferenceTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/bytes/ReleasableBytesReferenceTests.java rename to server/src/test/java/org/opensearch/common/bytes/ReleasableBytesReferenceTests.java index b5e1415708696..c893fc5bbad29 100644 --- a/server/src/test/java/org/elasticsearch/common/bytes/ReleasableBytesReferenceTests.java +++ b/server/src/test/java/org/opensearch/common/bytes/ReleasableBytesReferenceTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,9 @@ * under the License. */ -package org.elasticsearch.common.bytes; +package org.opensearch.common.bytes; +import org.elasticsearch.common.bytes.AbstractBytesReferenceTestCase; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.ReleasableBytesStreamOutput; import org.opensearch.common.util.ByteArray; diff --git a/server/src/test/java/org/elasticsearch/common/cache/CacheBuilderTests.java b/server/src/test/java/org/opensearch/common/cache/CacheBuilderTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/cache/CacheBuilderTests.java rename to server/src/test/java/org/opensearch/common/cache/CacheBuilderTests.java index d5945bfb6745d..55bf9cb50aaf4 100644 --- a/server/src/test/java/org/elasticsearch/common/cache/CacheBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/cache/CacheBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.cache; +package org.opensearch.common.cache; import org.opensearch.common.unit.TimeValue; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/cache/CacheTests.java b/server/src/test/java/org/opensearch/common/cache/CacheTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/cache/CacheTests.java rename to server/src/test/java/org/opensearch/common/cache/CacheTests.java index 2170a4d902e81..55c99477121e7 100644 --- a/server/src/test/java/org/elasticsearch/common/cache/CacheTests.java +++ b/server/src/test/java/org/opensearch/common/cache/CacheTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.cache; +package org.opensearch.common.cache; import org.opensearch.common.unit.TimeValue; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/collect/CopyOnWriteHashMapTests.java b/server/src/test/java/org/opensearch/common/collect/CopyOnWriteHashMapTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/collect/CopyOnWriteHashMapTests.java rename to server/src/test/java/org/opensearch/common/collect/CopyOnWriteHashMapTests.java index bab8802c56d09..22b4fc343b931 100644 --- a/server/src/test/java/org/elasticsearch/common/collect/CopyOnWriteHashMapTests.java +++ b/server/src/test/java/org/opensearch/common/collect/CopyOnWriteHashMapTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.collect; +package org.opensearch.common.collect; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.collect.CopyOnWriteHashMap; diff --git a/server/src/test/java/org/elasticsearch/common/collect/EvictingQueueTests.java b/server/src/test/java/org/opensearch/common/collect/EvictingQueueTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/collect/EvictingQueueTests.java rename to server/src/test/java/org/opensearch/common/collect/EvictingQueueTests.java index dee582e064589..3f8080027d8c7 100644 --- a/server/src/test/java/org/elasticsearch/common/collect/EvictingQueueTests.java +++ b/server/src/test/java/org/opensearch/common/collect/EvictingQueueTests.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.elasticsearch.common.collect; +package org.opensearch.common.collect; import org.opensearch.common.util.CollectionUtils; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/collect/IteratorsTests.java b/server/src/test/java/org/opensearch/common/collect/IteratorsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/collect/IteratorsTests.java rename to server/src/test/java/org/opensearch/common/collect/IteratorsTests.java index 0bf58fdc55383..cf78c12f9293c 100644 --- a/server/src/test/java/org/elasticsearch/common/collect/IteratorsTests.java +++ b/server/src/test/java/org/opensearch/common/collect/IteratorsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.collect; +package org.opensearch.common.collect; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.collect.Iterators; diff --git a/server/src/test/java/org/elasticsearch/common/compress/DeflateCompressTests.java b/server/src/test/java/org/opensearch/common/compress/DeflateCompressTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/compress/DeflateCompressTests.java rename to server/src/test/java/org/opensearch/common/compress/DeflateCompressTests.java index d246790f9f502..876bf5f860728 100644 --- a/server/src/test/java/org/elasticsearch/common/compress/DeflateCompressTests.java +++ b/server/src/test/java/org/opensearch/common/compress/DeflateCompressTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.compress; +package org.opensearch.common.compress; import org.apache.lucene.util.LineFileDocs; import org.apache.lucene.util.TestUtil; diff --git a/server/src/test/java/org/elasticsearch/common/compress/DeflateCompressedXContentTests.java b/server/src/test/java/org/opensearch/common/compress/DeflateCompressedXContentTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/compress/DeflateCompressedXContentTests.java rename to server/src/test/java/org/opensearch/common/compress/DeflateCompressedXContentTests.java index 39f2d99a9449c..1f90f7a8ab60b 100644 --- a/server/src/test/java/org/elasticsearch/common/compress/DeflateCompressedXContentTests.java +++ b/server/src/test/java/org/opensearch/common/compress/DeflateCompressedXContentTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.compress; +package org.opensearch.common.compress; import org.apache.lucene.util.TestUtil; import org.opensearch.common.bytes.BytesReference; diff --git a/server/src/test/java/org/elasticsearch/common/geo/BaseGeoParsingTestCase.java b/server/src/test/java/org/opensearch/common/geo/BaseGeoParsingTestCase.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/geo/BaseGeoParsingTestCase.java rename to server/src/test/java/org/opensearch/common/geo/BaseGeoParsingTestCase.java index a118d5f52fd80..471c0317d435b 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/BaseGeoParsingTestCase.java +++ b/server/src/test/java/org/opensearch/common/geo/BaseGeoParsingTestCase.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.geo.GeoJson; import org.opensearch.common.geo.GeometryParser; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeoBoundingBoxTests.java b/server/src/test/java/org/opensearch/common/geo/GeoBoundingBoxTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/geo/GeoBoundingBoxTests.java rename to server/src/test/java/org/opensearch/common/geo/GeoBoundingBoxTests.java index b401929e91f5c..afd834af48a56 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeoBoundingBoxTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeoBoundingBoxTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.apache.lucene.geo.GeoEncodingUtils; import org.opensearch.OpenSearchParseException; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeoDistanceTests.java b/server/src/test/java/org/opensearch/common/geo/GeoDistanceTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/geo/GeoDistanceTests.java rename to server/src/test/java/org/opensearch/common/geo/GeoDistanceTests.java index 1c1cb2aad690d..b63da60e7e814 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeoDistanceTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeoDistanceTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.StreamInput; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeoJsonParserTests.java b/server/src/test/java/org/opensearch/common/geo/GeoJsonParserTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/geo/GeoJsonParserTests.java rename to server/src/test/java/org/opensearch/common/geo/GeoJsonParserTests.java index 22f91505d7008..9374570695262 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeoJsonParserTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeoJsonParserTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.Strings; import org.elasticsearch.common.xcontent.XContentBuilder; @@ -25,7 +25,6 @@ import org.elasticsearch.common.xcontent.XContentParseException; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.json.JsonXContent; -import org.opensearch.common.geo.GeoJson; import org.opensearch.geometry.Circle; import org.opensearch.geometry.Geometry; import org.opensearch.geometry.GeometryCollection; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeoJsonSerializationTests.java b/server/src/test/java/org/opensearch/common/geo/GeoJsonSerializationTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/geo/GeoJsonSerializationTests.java rename to server/src/test/java/org/opensearch/common/geo/GeoJsonSerializationTests.java index 6fd579c50b84c..04116af259940 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeoJsonSerializationTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeoJsonSerializationTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.bytes.BytesReference; import org.opensearch.common.io.stream.StreamInput; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeoJsonShapeParserTests.java b/server/src/test/java/org/opensearch/common/geo/GeoJsonShapeParserTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/geo/GeoJsonShapeParserTests.java rename to server/src/test/java/org/opensearch/common/geo/GeoJsonShapeParserTests.java index b3d78a22df74b..4e2b6d3d9d02c 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeoJsonShapeParserTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeoJsonShapeParserTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,15 +17,13 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.OpenSearchParseException; import org.opensearch.Version; import org.opensearch.cluster.metadata.IndexMetadata; import org.opensearch.common.Strings; import org.opensearch.common.UUIDs; -import org.opensearch.common.geo.GeoUtils; -import org.opensearch.common.geo.GeometryParser; import org.opensearch.common.geo.parsers.ShapeParser; import org.opensearch.common.settings.Settings; import org.elasticsearch.common.xcontent.XContentBuilder; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeoUtilTests.java b/server/src/test/java/org/opensearch/common/geo/GeoUtilTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/geo/GeoUtilTests.java rename to server/src/test/java/org/opensearch/common/geo/GeoUtilTests.java index d79fb55b0c6ea..084795bb151ba 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeoUtilTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeoUtilTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.CheckedConsumer; import org.opensearch.common.bytes.BytesReference; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeoWKTShapeParserTests.java b/server/src/test/java/org/opensearch/common/geo/GeoWKTShapeParserTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/geo/GeoWKTShapeParserTests.java rename to server/src/test/java/org/opensearch/common/geo/GeoWKTShapeParserTests.java index ac215b092ef2c..ec47eb1f29812 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeoWKTShapeParserTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeoWKTShapeParserTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.apache.lucene.geo.GeoTestUtil; import org.opensearch.OpenSearchException; @@ -24,8 +24,6 @@ import org.opensearch.Version; import org.opensearch.cluster.metadata.IndexMetadata; import org.opensearch.common.UUIDs; -import org.opensearch.common.geo.GeoPoint; -import org.opensearch.common.geo.GeoShapeType; import org.opensearch.common.geo.builders.CoordinatesBuilder; import org.opensearch.common.geo.builders.EnvelopeBuilder; import org.opensearch.common.geo.builders.GeometryCollectionBuilder; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeometryIOTests.java b/server/src/test/java/org/opensearch/common/geo/GeometryIOTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/geo/GeometryIOTests.java rename to server/src/test/java/org/opensearch/common/geo/GeometryIOTests.java index b5bf8fe6752cb..ee50c14c63e29 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeometryIOTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeometryIOTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.geo.GeoShapeType; import org.opensearch.common.geo.GeometryIO; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeometryIndexerTests.java b/server/src/test/java/org/opensearch/common/geo/GeometryIndexerTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/geo/GeometryIndexerTests.java rename to server/src/test/java/org/opensearch/common/geo/GeometryIndexerTests.java index 08080b92e0cd0..c85f0734a5114 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeometryIndexerTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeometryIndexerTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.instanceOf; diff --git a/server/src/test/java/org/elasticsearch/common/geo/GeometryParserTests.java b/server/src/test/java/org/opensearch/common/geo/GeometryParserTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/geo/GeometryParserTests.java rename to server/src/test/java/org/opensearch/common/geo/GeometryParserTests.java index c0ad28fea091a..7d5cf5099fc28 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/GeometryParserTests.java +++ b/server/src/test/java/org/opensearch/common/geo/GeometryParserTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.OpenSearchParseException; import org.opensearch.common.Strings; diff --git a/server/src/test/java/org/elasticsearch/common/geo/ShapeBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/ShapeBuilderTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/geo/ShapeBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/ShapeBuilderTests.java index 47900e7a29d36..d69249d79f189 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/ShapeBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/ShapeBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.geo.builders.CircleBuilder; import org.opensearch.common.geo.builders.CoordinatesBuilder; diff --git a/server/src/test/java/org/elasticsearch/common/geo/ShapeRelationTests.java b/server/src/test/java/org/opensearch/common/geo/ShapeRelationTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/geo/ShapeRelationTests.java rename to server/src/test/java/org/opensearch/common/geo/ShapeRelationTests.java index 8713fea610600..9139a49c5e812 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/ShapeRelationTests.java +++ b/server/src/test/java/org/opensearch/common/geo/ShapeRelationTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.StreamInput; diff --git a/server/src/test/java/org/elasticsearch/common/geo/SpatialStrategyTests.java b/server/src/test/java/org/opensearch/common/geo/SpatialStrategyTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/geo/SpatialStrategyTests.java rename to server/src/test/java/org/opensearch/common/geo/SpatialStrategyTests.java index 53c76aa383ccd..10d177b72c3fd 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/SpatialStrategyTests.java +++ b/server/src/test/java/org/opensearch/common/geo/SpatialStrategyTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.geo; +package org.opensearch.common.geo; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.StreamInput; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/AbstractShapeBuilderTestCase.java b/server/src/test/java/org/opensearch/common/geo/builders/AbstractShapeBuilderTestCase.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/geo/builders/AbstractShapeBuilderTestCase.java rename to server/src/test/java/org/opensearch/common/geo/builders/AbstractShapeBuilderTestCase.java index 85aac1f55b252..46a903f694d85 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/AbstractShapeBuilderTestCase.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/AbstractShapeBuilderTestCase.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,10 +17,9 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.opensearch.common.geo.GeoShapeType; -import org.opensearch.common.geo.builders.ShapeBuilder; import org.opensearch.common.geo.parsers.ShapeParser; import org.opensearch.common.io.stream.NamedWriteable; import org.opensearch.common.io.stream.NamedWriteableRegistry; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/CircleBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/CircleBuilderTests.java similarity index 94% rename from server/src/test/java/org/elasticsearch/common/geo/builders/CircleBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/CircleBuilderTests.java index 53a9d3f6395bc..e0dff424d9dfe 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/CircleBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/CircleBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,11 +17,10 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.opensearch.common.unit.DistanceUnit; import org.locationtech.jts.geom.Coordinate; -import org.opensearch.common.geo.builders.CircleBuilder; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/EnvelopeBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/EnvelopeBuilderTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/geo/builders/EnvelopeBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/EnvelopeBuilderTests.java index bb1aa40a6442a..512902c84f0fe 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/EnvelopeBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/EnvelopeBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,13 +17,12 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.locationtech.jts.geom.Coordinate; import org.elasticsearch.test.geo.RandomShapeGenerator; import org.locationtech.spatial4j.shape.Rectangle; -import org.opensearch.common.geo.builders.EnvelopeBuilder; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/GeometryCollectionBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/GeometryCollectionBuilderTests.java similarity index 86% rename from server/src/test/java/org/elasticsearch/common/geo/builders/GeometryCollectionBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/GeometryCollectionBuilderTests.java index b3936c863b24d..631913d7958db 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/GeometryCollectionBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/GeometryCollectionBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,19 +17,9 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.elasticsearch.test.geo.RandomShapeGenerator; -import org.opensearch.common.geo.builders.CircleBuilder; -import org.opensearch.common.geo.builders.EnvelopeBuilder; -import org.opensearch.common.geo.builders.GeometryCollectionBuilder; -import org.opensearch.common.geo.builders.LineStringBuilder; -import org.opensearch.common.geo.builders.MultiLineStringBuilder; -import org.opensearch.common.geo.builders.MultiPointBuilder; -import org.opensearch.common.geo.builders.MultiPolygonBuilder; -import org.opensearch.common.geo.builders.PointBuilder; -import org.opensearch.common.geo.builders.PolygonBuilder; -import org.opensearch.common.geo.builders.ShapeBuilder; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/LineStringBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/LineStringBuilderTests.java similarity index 93% rename from server/src/test/java/org/elasticsearch/common/geo/builders/LineStringBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/LineStringBuilderTests.java index b396f1013f378..cb8556a63ed02 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/LineStringBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/LineStringBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,13 +17,11 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.elasticsearch.test.geo.RandomShapeGenerator; import org.elasticsearch.test.geo.RandomShapeGenerator.ShapeType; import org.locationtech.jts.geom.Coordinate; -import org.opensearch.common.geo.builders.CoordinatesBuilder; -import org.opensearch.common.geo.builders.LineStringBuilder; import java.io.IOException; import java.util.List; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/MultiLineStringBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/MultiLineStringBuilderTests.java similarity index 92% rename from server/src/test/java/org/elasticsearch/common/geo/builders/MultiLineStringBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/MultiLineStringBuilderTests.java index 4db2af9c45047..b8234fcb4a6fe 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/MultiLineStringBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/MultiLineStringBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,13 +17,11 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.locationtech.jts.geom.Coordinate; import org.elasticsearch.test.geo.RandomShapeGenerator; import org.elasticsearch.test.geo.RandomShapeGenerator.ShapeType; -import org.opensearch.common.geo.builders.LineStringBuilder; -import org.opensearch.common.geo.builders.MultiLineStringBuilder; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/MultiPointBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/MultiPointBuilderTests.java similarity index 93% rename from server/src/test/java/org/elasticsearch/common/geo/builders/MultiPointBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/MultiPointBuilderTests.java index df82ffd348ec8..3ff1f36938069 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/MultiPointBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/MultiPointBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,14 +17,12 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.locationtech.jts.geom.Coordinate; import org.elasticsearch.test.geo.RandomShapeGenerator; import org.elasticsearch.test.geo.RandomShapeGenerator.ShapeType; -import org.opensearch.common.geo.builders.CoordinatesBuilder; -import org.opensearch.common.geo.builders.MultiPointBuilder; import java.io.IOException; import java.util.List; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/MultiPolygonBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/MultiPolygonBuilderTests.java similarity index 92% rename from server/src/test/java/org/elasticsearch/common/geo/builders/MultiPolygonBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/MultiPolygonBuilderTests.java index cf733df1978fa..cae03b977c160 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/MultiPolygonBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/MultiPolygonBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,10 +17,8 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; -import org.opensearch.common.geo.builders.MultiPolygonBuilder; -import org.opensearch.common.geo.builders.PolygonBuilder; import org.opensearch.common.geo.builders.ShapeBuilder.Orientation; import org.elasticsearch.test.geo.RandomShapeGenerator; import org.elasticsearch.test.geo.RandomShapeGenerator.ShapeType; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/PointBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/PointBuilderTests.java similarity index 91% rename from server/src/test/java/org/elasticsearch/common/geo/builders/PointBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/PointBuilderTests.java index fb41291b496a4..1d6de8031e9c9 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/PointBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/PointBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,12 +17,11 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.locationtech.jts.geom.Coordinate; import org.elasticsearch.test.geo.RandomShapeGenerator; import org.elasticsearch.test.geo.RandomShapeGenerator.ShapeType; -import org.opensearch.common.geo.builders.PointBuilder; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/common/geo/builders/PolygonBuilderTests.java b/server/src/test/java/org/opensearch/common/geo/builders/PolygonBuilderTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/geo/builders/PolygonBuilderTests.java rename to server/src/test/java/org/opensearch/common/geo/builders/PolygonBuilderTests.java index 4e555cc98a54d..6d9252a6a5d2e 100644 --- a/server/src/test/java/org/elasticsearch/common/geo/builders/PolygonBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/geo/builders/PolygonBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,12 +17,9 @@ * under the License. */ -package org.elasticsearch.common.geo.builders; +package org.opensearch.common.geo.builders; import org.locationtech.jts.geom.Coordinate; -import org.opensearch.common.geo.builders.CoordinatesBuilder; -import org.opensearch.common.geo.builders.LineStringBuilder; -import org.opensearch.common.geo.builders.PolygonBuilder; import org.opensearch.common.geo.builders.ShapeBuilder.Orientation; import org.elasticsearch.test.geo.RandomShapeGenerator; import org.elasticsearch.test.geo.RandomShapeGenerator.ShapeType; diff --git a/server/src/test/java/org/elasticsearch/common/hash/MessageDigestsTests.java b/server/src/test/java/org/opensearch/common/hash/MessageDigestsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/hash/MessageDigestsTests.java rename to server/src/test/java/org/opensearch/common/hash/MessageDigestsTests.java index bba3b63a5ed05..3c8c6563958c1 100644 --- a/server/src/test/java/org/elasticsearch/common/hash/MessageDigestsTests.java +++ b/server/src/test/java/org/opensearch/common/hash/MessageDigestsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.hash; +package org.opensearch.common.hash; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.hash.MessageDigests; diff --git a/server/src/test/java/org/elasticsearch/common/hashing/MurmurHash3Tests.java b/server/src/test/java/org/opensearch/common/hashing/MurmurHash3Tests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/hashing/MurmurHash3Tests.java rename to server/src/test/java/org/opensearch/common/hashing/MurmurHash3Tests.java index b782a5882080d..abf55d8c63f59 100644 --- a/server/src/test/java/org/elasticsearch/common/hashing/MurmurHash3Tests.java +++ b/server/src/test/java/org/opensearch/common/hashing/MurmurHash3Tests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.hashing; +package org.opensearch.common.hashing; import org.opensearch.common.hash.MurmurHash3; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/hppc/HppcMapsTests.java b/server/src/test/java/org/opensearch/common/hppc/HppcMapsTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/hppc/HppcMapsTests.java rename to server/src/test/java/org/opensearch/common/hppc/HppcMapsTests.java index dd55abfffa742..1a4ccfdcdf440 100644 --- a/server/src/test/java/org/elasticsearch/common/hppc/HppcMapsTests.java +++ b/server/src/test/java/org/opensearch/common/hppc/HppcMapsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.hppc; +package org.opensearch.common.hppc; import com.carrotsearch.hppc.ObjectHashSet; import org.opensearch.Assertions; diff --git a/server/src/test/java/org/elasticsearch/common/io/FileSystemUtilsTests.java b/server/src/test/java/org/opensearch/common/io/FileSystemUtilsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/io/FileSystemUtilsTests.java rename to server/src/test/java/org/opensearch/common/io/FileSystemUtilsTests.java index 45d36c0009d9d..a29864ca805d5 100644 --- a/server/src/test/java/org/elasticsearch/common/io/FileSystemUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/io/FileSystemUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.io; +package org.opensearch.common.io; import org.apache.lucene.util.Constants; import org.apache.lucene.util.LuceneTestCase.SuppressFileSystems; diff --git a/server/src/test/java/org/elasticsearch/common/io/StreamsTests.java b/server/src/test/java/org/opensearch/common/io/StreamsTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/io/StreamsTests.java rename to server/src/test/java/org/opensearch/common/io/StreamsTests.java index 7e1fdb35adb4f..629d88cc3e452 100644 --- a/server/src/test/java/org/elasticsearch/common/io/StreamsTests.java +++ b/server/src/test/java/org/opensearch/common/io/StreamsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.io; +package org.opensearch.common.io; import org.apache.lucene.util.BytesRef; import org.opensearch.common.bytes.BytesArray; diff --git a/server/src/test/java/org/elasticsearch/common/io/stream/AbstractWriteableEnumTestCase.java b/server/src/test/java/org/opensearch/common/io/stream/AbstractWriteableEnumTestCase.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/io/stream/AbstractWriteableEnumTestCase.java rename to server/src/test/java/org/opensearch/common/io/stream/AbstractWriteableEnumTestCase.java index 67cd80cea7088..1bc43267bc05a 100644 --- a/server/src/test/java/org/elasticsearch/common/io/stream/AbstractWriteableEnumTestCase.java +++ b/server/src/test/java/org/opensearch/common/io/stream/AbstractWriteableEnumTestCase.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.io.stream; +package org.opensearch.common.io.stream; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.io.stream.BytesStreamOutput; diff --git a/server/src/test/java/org/elasticsearch/common/io/stream/BytesStreamsTests.java b/server/src/test/java/org/opensearch/common/io/stream/BytesStreamsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/io/stream/BytesStreamsTests.java rename to server/src/test/java/org/opensearch/common/io/stream/BytesStreamsTests.java index a89cde4bf6331..c22539b4d6150 100644 --- a/server/src/test/java/org/elasticsearch/common/io/stream/BytesStreamsTests.java +++ b/server/src/test/java/org/opensearch/common/io/stream/BytesStreamsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.io.stream; +package org.opensearch.common.io.stream; import org.apache.lucene.store.AlreadyClosedException; import org.apache.lucene.util.BytesRef; diff --git a/server/src/test/java/org/elasticsearch/common/io/stream/DelayableWriteableTests.java b/server/src/test/java/org/opensearch/common/io/stream/DelayableWriteableTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/io/stream/DelayableWriteableTests.java rename to server/src/test/java/org/opensearch/common/io/stream/DelayableWriteableTests.java index c3bc7c4a3b401..6e655de3d7040 100644 --- a/server/src/test/java/org/elasticsearch/common/io/stream/DelayableWriteableTests.java +++ b/server/src/test/java/org/opensearch/common/io/stream/DelayableWriteableTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.io.stream; +package org.opensearch.common.io.stream; import static java.util.Collections.singletonList; import static org.hamcrest.Matchers.equalTo; diff --git a/server/src/test/java/org/elasticsearch/common/io/stream/NamedWriteableRegistryTests.java b/server/src/test/java/org/opensearch/common/io/stream/NamedWriteableRegistryTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/io/stream/NamedWriteableRegistryTests.java rename to server/src/test/java/org/opensearch/common/io/stream/NamedWriteableRegistryTests.java index c5d059e134104..a7fa9df379afa 100644 --- a/server/src/test/java/org/elasticsearch/common/io/stream/NamedWriteableRegistryTests.java +++ b/server/src/test/java/org/opensearch/common/io/stream/NamedWriteableRegistryTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.io.stream; +package org.opensearch.common.io.stream; import java.io.IOException; import java.util.Arrays; diff --git a/server/src/test/java/org/elasticsearch/common/io/stream/ReleasableBytesStreamOutputTests.java b/server/src/test/java/org/opensearch/common/io/stream/ReleasableBytesStreamOutputTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/io/stream/ReleasableBytesStreamOutputTests.java rename to server/src/test/java/org/opensearch/common/io/stream/ReleasableBytesStreamOutputTests.java index 00c80741ea205..76b15ae961d14 100644 --- a/server/src/test/java/org/elasticsearch/common/io/stream/ReleasableBytesStreamOutputTests.java +++ b/server/src/test/java/org/opensearch/common/io/stream/ReleasableBytesStreamOutputTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.io.stream; +package org.opensearch.common.io.stream; import org.opensearch.common.settings.Settings; import org.elasticsearch.common.util.MockBigArrays; diff --git a/server/src/test/java/org/elasticsearch/common/io/stream/StreamTests.java b/server/src/test/java/org/opensearch/common/io/stream/StreamTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/io/stream/StreamTests.java rename to server/src/test/java/org/opensearch/common/io/stream/StreamTests.java index 95d96aebde79e..59f8b00737fce 100644 --- a/server/src/test/java/org/elasticsearch/common/io/stream/StreamTests.java +++ b/server/src/test/java/org/opensearch/common/io/stream/StreamTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.io.stream; +package org.opensearch.common.io.stream; import org.apache.lucene.util.BytesRef; import org.opensearch.common.CheckedBiConsumer; diff --git a/server/src/test/java/org/elasticsearch/common/joda/JavaJodaTimeDuellingTests.java b/server/src/test/java/org/opensearch/common/joda/JavaJodaTimeDuellingTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/joda/JavaJodaTimeDuellingTests.java rename to server/src/test/java/org/opensearch/common/joda/JavaJodaTimeDuellingTests.java index 032a1e53292e6..3d5566448fe9b 100644 --- a/server/src/test/java/org/elasticsearch/common/joda/JavaJodaTimeDuellingTests.java +++ b/server/src/test/java/org/opensearch/common/joda/JavaJodaTimeDuellingTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.joda; +package org.opensearch.common.joda; import org.opensearch.OpenSearchParseException; import org.opensearch.bootstrap.JavaVersion; diff --git a/server/src/test/java/org/elasticsearch/common/joda/JodaDateMathParserTests.java b/server/src/test/java/org/opensearch/common/joda/JodaDateMathParserTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/joda/JodaDateMathParserTests.java rename to server/src/test/java/org/opensearch/common/joda/JodaDateMathParserTests.java index 1c69fad9acb02..78bf31df8bb97 100644 --- a/server/src/test/java/org/elasticsearch/common/joda/JodaDateMathParserTests.java +++ b/server/src/test/java/org/opensearch/common/joda/JodaDateMathParserTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.joda; +package org.opensearch.common.joda; import org.opensearch.OpenSearchParseException; import org.opensearch.common.joda.Joda; diff --git a/server/src/test/java/org/elasticsearch/common/joda/JodaTests.java b/server/src/test/java/org/opensearch/common/joda/JodaTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/joda/JodaTests.java rename to server/src/test/java/org/opensearch/common/joda/JodaTests.java index 0338320123c2f..6e8992f9c9c70 100644 --- a/server/src/test/java/org/elasticsearch/common/joda/JodaTests.java +++ b/server/src/test/java/org/opensearch/common/joda/JodaTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.joda; +package org.opensearch.common.joda; import org.opensearch.common.joda.Joda; import org.opensearch.common.joda.JodaDateFormatter; diff --git a/server/src/test/java/org/elasticsearch/common/logging/DeprecationLoggerTests.java b/server/src/test/java/org/opensearch/common/logging/DeprecationLoggerTests.java similarity index 94% rename from server/src/test/java/org/elasticsearch/common/logging/DeprecationLoggerTests.java rename to server/src/test/java/org/opensearch/common/logging/DeprecationLoggerTests.java index 36ae38c66b847..fc8757ea55fe4 100644 --- a/server/src/test/java/org/elasticsearch/common/logging/DeprecationLoggerTests.java +++ b/server/src/test/java/org/opensearch/common/logging/DeprecationLoggerTests.java @@ -17,12 +17,11 @@ * under the License. */ -package org.elasticsearch.common.logging; +package org.opensearch.common.logging; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.core.LoggerContext; import org.elasticsearch.test.ESTestCase; -import org.opensearch.common.logging.DeprecationLogger; import static org.hamcrest.Matchers.equalTo; diff --git a/server/src/test/java/org/elasticsearch/common/logging/HeaderWarningTests.java b/server/src/test/java/org/opensearch/common/logging/HeaderWarningTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/logging/HeaderWarningTests.java rename to server/src/test/java/org/opensearch/common/logging/HeaderWarningTests.java index ab0171e21eb0d..fe0daa6303b7f 100644 --- a/server/src/test/java/org/elasticsearch/common/logging/HeaderWarningTests.java +++ b/server/src/test/java/org/opensearch/common/logging/HeaderWarningTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.logging; +package org.opensearch.common.logging; import com.carrotsearch.randomizedtesting.generators.CodepointSetGenerator; import org.opensearch.common.settings.Settings; diff --git a/server/src/test/java/org/elasticsearch/common/logging/JsonThrowablePatternConverterTests.java b/server/src/test/java/org/opensearch/common/logging/JsonThrowablePatternConverterTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/logging/JsonThrowablePatternConverterTests.java rename to server/src/test/java/org/opensearch/common/logging/JsonThrowablePatternConverterTests.java index 3ac4e03f7662d..0fdfc6fe40dc7 100644 --- a/server/src/test/java/org/elasticsearch/common/logging/JsonThrowablePatternConverterTests.java +++ b/server/src/test/java/org/opensearch/common/logging/JsonThrowablePatternConverterTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,12 +17,14 @@ * under the License. */ -package org.elasticsearch.common.logging; +package org.opensearch.common.logging; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.core.LogEvent; import org.apache.logging.log4j.core.impl.Log4jLogEvent; import org.apache.logging.log4j.message.SimpleMessage; +import org.elasticsearch.common.logging.JsonLogLine; +import org.elasticsearch.common.logging.JsonLogsStream; import org.elasticsearch.test.ESTestCase; import org.hamcrest.Matchers; import org.opensearch.common.logging.JsonThrowablePatternConverter; diff --git a/server/src/test/java/org/elasticsearch/common/logging/LoggersTests.java b/server/src/test/java/org/opensearch/common/logging/LoggersTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/logging/LoggersTests.java rename to server/src/test/java/org/opensearch/common/logging/LoggersTests.java index b347ede647299..c296fd0daa490 100644 --- a/server/src/test/java/org/elasticsearch/common/logging/LoggersTests.java +++ b/server/src/test/java/org/opensearch/common/logging/LoggersTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,14 +17,13 @@ * under the License. */ -package org.elasticsearch.common.logging; +package org.opensearch.common.logging; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.message.ParameterizedMessage; import org.elasticsearch.test.ESTestCase; -import org.opensearch.common.logging.Loggers; import java.io.IOException; import java.net.UnknownHostException; diff --git a/server/src/test/java/org/elasticsearch/common/logging/LoggingOutputStreamTests.java b/server/src/test/java/org/opensearch/common/logging/LoggingOutputStreamTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/logging/LoggingOutputStreamTests.java rename to server/src/test/java/org/opensearch/common/logging/LoggingOutputStreamTests.java index acf9c5c32a1c8..ab85b1b2c1093 100644 --- a/server/src/test/java/org/elasticsearch/common/logging/LoggingOutputStreamTests.java +++ b/server/src/test/java/org/opensearch/common/logging/LoggingOutputStreamTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.logging; +package org.opensearch.common.logging; import org.elasticsearch.test.ESTestCase; import org.junit.Before; diff --git a/server/src/test/java/org/elasticsearch/common/logging/MockAppender.java b/server/src/test/java/org/opensearch/common/logging/MockAppender.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/logging/MockAppender.java rename to server/src/test/java/org/opensearch/common/logging/MockAppender.java index 784010fdc94de..ee40bc67e7440 100644 --- a/server/src/test/java/org/elasticsearch/common/logging/MockAppender.java +++ b/server/src/test/java/org/opensearch/common/logging/MockAppender.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.logging; +package org.opensearch.common.logging; import org.apache.logging.log4j.core.LogEvent; import org.apache.logging.log4j.core.appender.AbstractAppender; diff --git a/server/src/test/java/org/elasticsearch/common/logging/PrefixLoggerTests.java b/server/src/test/java/org/opensearch/common/logging/PrefixLoggerTests.java similarity index 93% rename from server/src/test/java/org/elasticsearch/common/logging/PrefixLoggerTests.java rename to server/src/test/java/org/opensearch/common/logging/PrefixLoggerTests.java index 65d79afe02e03..03f4abcdea408 100644 --- a/server/src/test/java/org/elasticsearch/common/logging/PrefixLoggerTests.java +++ b/server/src/test/java/org/opensearch/common/logging/PrefixLoggerTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.logging; +package org.opensearch.common.logging; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.logging.PrefixLogger; diff --git a/server/src/test/java/org/elasticsearch/common/logging/RateLimitingFilterTests.java b/server/src/test/java/org/opensearch/common/logging/RateLimitingFilterTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/logging/RateLimitingFilterTests.java rename to server/src/test/java/org/opensearch/common/logging/RateLimitingFilterTests.java index b9edff069da9c..b4c476c113f39 100644 --- a/server/src/test/java/org/elasticsearch/common/logging/RateLimitingFilterTests.java +++ b/server/src/test/java/org/opensearch/common/logging/RateLimitingFilterTests.java @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.logging; +package org.opensearch.common.logging; import org.apache.logging.log4j.message.Message; import org.apache.logging.log4j.message.SimpleMessage; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/LuceneTests.java b/server/src/test/java/org/opensearch/common/lucene/LuceneTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/lucene/LuceneTests.java rename to server/src/test/java/org/opensearch/common/lucene/LuceneTests.java index 1dc1812340a3c..6c63030a22912 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/LuceneTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/LuceneTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.lucene; +package org.opensearch.common.lucene; import org.apache.lucene.analysis.MockAnalyzer; import org.apache.lucene.analysis.core.KeywordAnalyzer; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/ShardCoreKeyMapTests.java b/server/src/test/java/org/opensearch/common/lucene/ShardCoreKeyMapTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/lucene/ShardCoreKeyMapTests.java rename to server/src/test/java/org/opensearch/common/lucene/ShardCoreKeyMapTests.java index 385a7cbd703e2..f26548b706333 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/ShardCoreKeyMapTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/ShardCoreKeyMapTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene; +package org.opensearch.common.lucene; import org.apache.lucene.document.Document; import org.apache.lucene.index.DirectoryReader; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/index/ESDirectoryReaderTests.java b/server/src/test/java/org/opensearch/common/lucene/index/ESDirectoryReaderTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/lucene/index/ESDirectoryReaderTests.java rename to server/src/test/java/org/opensearch/common/lucene/index/ESDirectoryReaderTests.java index 9053d8d7571b4..0a0949fe62d09 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/index/ESDirectoryReaderTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/index/ESDirectoryReaderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.index; +package org.opensearch.common.lucene.index; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/index/FreqTermsEnumTests.java b/server/src/test/java/org/opensearch/common/lucene/index/FreqTermsEnumTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/lucene/index/FreqTermsEnumTests.java rename to server/src/test/java/org/opensearch/common/lucene/index/FreqTermsEnumTests.java index 4ccec6e449b1e..6f007860e5c72 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/index/FreqTermsEnumTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/index/FreqTermsEnumTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.index; +package org.opensearch.common.lucene.index; import org.apache.lucene.analysis.core.KeywordAnalyzer; import org.apache.lucene.document.Document; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/search/MultiPhrasePrefixQueryTests.java b/server/src/test/java/org/opensearch/common/lucene/search/MultiPhrasePrefixQueryTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/lucene/search/MultiPhrasePrefixQueryTests.java rename to server/src/test/java/org/opensearch/common/lucene/search/MultiPhrasePrefixQueryTests.java index 91f512cc98a09..d99e225ae992d 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/search/MultiPhrasePrefixQueryTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/search/MultiPhrasePrefixQueryTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.search; +package org.opensearch.common.lucene.search; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/search/QueriesTests.java b/server/src/test/java/org/opensearch/common/lucene/search/QueriesTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/lucene/search/QueriesTests.java rename to server/src/test/java/org/opensearch/common/lucene/search/QueriesTests.java index cfdf124eff850..85d45367fcbb3 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/search/QueriesTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/search/QueriesTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.search; +package org.opensearch.common.lucene.search; import org.apache.lucene.index.Term; import org.apache.lucene.search.BooleanClause; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/search/function/MinScoreScorerTests.java b/server/src/test/java/org/opensearch/common/lucene/search/function/MinScoreScorerTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/lucene/search/function/MinScoreScorerTests.java rename to server/src/test/java/org/opensearch/common/lucene/search/function/MinScoreScorerTests.java index 89d8295baa9dc..595fdd00cb9e6 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/search/function/MinScoreScorerTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/search/function/MinScoreScorerTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.search.function; +package org.opensearch.common.lucene.search.function; import org.apache.lucene.index.LeafReaderContext; import org.apache.lucene.index.Term; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/search/morelikethis/MoreLikeThisQueryTests.java b/server/src/test/java/org/opensearch/common/lucene/search/morelikethis/MoreLikeThisQueryTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/lucene/search/morelikethis/MoreLikeThisQueryTests.java rename to server/src/test/java/org/opensearch/common/lucene/search/morelikethis/MoreLikeThisQueryTests.java index e928b2f2fa977..de610a5da77ac 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/search/morelikethis/MoreLikeThisQueryTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/search/morelikethis/MoreLikeThisQueryTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.search.morelikethis; +package org.opensearch.common.lucene.search.morelikethis; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/search/morelikethis/XMoreLikeThisTests.java b/server/src/test/java/org/opensearch/common/lucene/search/morelikethis/XMoreLikeThisTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/lucene/search/morelikethis/XMoreLikeThisTests.java rename to server/src/test/java/org/opensearch/common/lucene/search/morelikethis/XMoreLikeThisTests.java index e1c71b0f62865..bcc3efe6c375d 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/search/morelikethis/XMoreLikeThisTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/search/morelikethis/XMoreLikeThisTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.search.morelikethis; +package org.opensearch.common.lucene.search.morelikethis; import org.apache.lucene.analysis.MockAnalyzer; import org.apache.lucene.analysis.MockTokenizer; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/store/ByteArrayIndexInputTests.java b/server/src/test/java/org/opensearch/common/lucene/store/ByteArrayIndexInputTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/lucene/store/ByteArrayIndexInputTests.java rename to server/src/test/java/org/opensearch/common/lucene/store/ByteArrayIndexInputTests.java index 0720d42c697dd..fa9120fcd92a3 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/store/ByteArrayIndexInputTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/store/ByteArrayIndexInputTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,9 @@ * under the License. */ -package org.elasticsearch.common.lucene.store; +package org.opensearch.common.lucene.store; +import org.elasticsearch.common.lucene.store.ESIndexInputTestCase; import org.opensearch.common.lucene.store.ByteArrayIndexInput; import java.io.IOException; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/store/InputStreamIndexInputTests.java b/server/src/test/java/org/opensearch/common/lucene/store/InputStreamIndexInputTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/lucene/store/InputStreamIndexInputTests.java rename to server/src/test/java/org/opensearch/common/lucene/store/InputStreamIndexInputTests.java index 7b4dad794c88b..ea24256f4ba0d 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/store/InputStreamIndexInputTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/store/InputStreamIndexInputTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.store; +package org.opensearch.common.lucene.store; import org.apache.lucene.store.ByteBuffersDirectory; import org.apache.lucene.store.Directory; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/uid/VersionLookupTests.java b/server/src/test/java/org/opensearch/common/lucene/uid/VersionLookupTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/lucene/uid/VersionLookupTests.java rename to server/src/test/java/org/opensearch/common/lucene/uid/VersionLookupTests.java index 9968ea3fa0df9..5b306fdd4f921 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/uid/VersionLookupTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/uid/VersionLookupTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.lucene.uid; +package org.opensearch.common.lucene.uid; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; diff --git a/server/src/test/java/org/elasticsearch/common/lucene/uid/VersionsTests.java b/server/src/test/java/org/opensearch/common/lucene/uid/VersionsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/lucene/uid/VersionsTests.java rename to server/src/test/java/org/opensearch/common/lucene/uid/VersionsTests.java index 2c62fcc9b480d..616eae18785fe 100644 --- a/server/src/test/java/org/elasticsearch/common/lucene/uid/VersionsTests.java +++ b/server/src/test/java/org/opensearch/common/lucene/uid/VersionsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.lucene.uid; +package org.opensearch.common.lucene.uid; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; diff --git a/server/src/test/java/org/elasticsearch/common/network/CidrsTests.java b/server/src/test/java/org/opensearch/common/network/CidrsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/network/CidrsTests.java rename to server/src/test/java/org/opensearch/common/network/CidrsTests.java index 002ad4d8ecc1e..db71a4997ad1c 100644 --- a/server/src/test/java/org/elasticsearch/common/network/CidrsTests.java +++ b/server/src/test/java/org/opensearch/common/network/CidrsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.network; +package org.opensearch.common.network; import org.opensearch.common.collect.Tuple; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/network/InetAddressesTests.java b/server/src/test/java/org/opensearch/common/network/InetAddressesTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/network/InetAddressesTests.java rename to server/src/test/java/org/opensearch/common/network/InetAddressesTests.java index b2be50b899aca..c988e39128cfb 100644 --- a/server/src/test/java/org/elasticsearch/common/network/InetAddressesTests.java +++ b/server/src/test/java/org/opensearch/common/network/InetAddressesTests.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.elasticsearch.common.network; +package org.opensearch.common.network; import org.opensearch.common.collect.Tuple; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/network/NetworkAddressTests.java b/server/src/test/java/org/opensearch/common/network/NetworkAddressTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/network/NetworkAddressTests.java rename to server/src/test/java/org/opensearch/common/network/NetworkAddressTests.java index 4fc7399cccbdd..34bd62e582884 100644 --- a/server/src/test/java/org/elasticsearch/common/network/NetworkAddressTests.java +++ b/server/src/test/java/org/opensearch/common/network/NetworkAddressTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.network; +package org.opensearch.common.network; import org.opensearch.common.network.NetworkAddress; import org.opensearch.common.transport.PortsRange; diff --git a/server/src/test/java/org/elasticsearch/common/network/NetworkModuleTests.java b/server/src/test/java/org/opensearch/common/network/NetworkModuleTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/network/NetworkModuleTests.java rename to server/src/test/java/org/opensearch/common/network/NetworkModuleTests.java index ccbf6fb7b590e..26edce920169f 100644 --- a/server/src/test/java/org/elasticsearch/common/network/NetworkModuleTests.java +++ b/server/src/test/java/org/opensearch/common/network/NetworkModuleTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,14 +17,12 @@ * under the License. */ -package org.elasticsearch.common.network; +package org.opensearch.common.network; import org.opensearch.common.component.AbstractLifecycleComponent; import org.opensearch.common.io.stream.NamedWriteableRegistry; import org.opensearch.common.settings.ClusterSettings; import org.opensearch.common.settings.Settings; -import org.opensearch.common.network.NetworkModule; -import org.opensearch.common.network.NetworkService; import org.opensearch.common.transport.BoundTransportAddress; import org.opensearch.common.util.BigArrays; import org.opensearch.common.util.PageCacheRecycler; diff --git a/server/src/test/java/org/elasticsearch/common/network/NetworkServiceTests.java b/server/src/test/java/org/opensearch/common/network/NetworkServiceTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/network/NetworkServiceTests.java rename to server/src/test/java/org/opensearch/common/network/NetworkServiceTests.java index 0d8d4518a1327..5e93d0aa29314 100644 --- a/server/src/test/java/org/elasticsearch/common/network/NetworkServiceTests.java +++ b/server/src/test/java/org/opensearch/common/network/NetworkServiceTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.network; +package org.opensearch.common.network; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.network.NetworkService; diff --git a/server/src/test/java/org/elasticsearch/common/network/NetworkUtilsTests.java b/server/src/test/java/org/opensearch/common/network/NetworkUtilsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/network/NetworkUtilsTests.java rename to server/src/test/java/org/opensearch/common/network/NetworkUtilsTests.java index effc3ab67f35e..2ede6b9141213 100644 --- a/server/src/test/java/org/elasticsearch/common/network/NetworkUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/network/NetworkUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.network; +package org.opensearch.common.network; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.hamcrest.OptionalMatchers; diff --git a/server/src/test/java/org/elasticsearch/common/path/PathTrieTests.java b/server/src/test/java/org/opensearch/common/path/PathTrieTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/path/PathTrieTests.java rename to server/src/test/java/org/opensearch/common/path/PathTrieTests.java index b6687203acc30..85bd99172e2af 100644 --- a/server/src/test/java/org/elasticsearch/common/path/PathTrieTests.java +++ b/server/src/test/java/org/opensearch/common/path/PathTrieTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.path; +package org.opensearch.common.path; import org.opensearch.common.path.PathTrie; import org.opensearch.common.path.PathTrie.TrieMatchingMode; diff --git a/server/src/test/java/org/elasticsearch/common/recycler/AbstractRecyclerTestCase.java b/server/src/test/java/org/opensearch/common/recycler/AbstractRecyclerTestCase.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/recycler/AbstractRecyclerTestCase.java rename to server/src/test/java/org/opensearch/common/recycler/AbstractRecyclerTestCase.java index 3d371b67c8ca6..9dabf39e9f8dc 100644 --- a/server/src/test/java/org/elasticsearch/common/recycler/AbstractRecyclerTestCase.java +++ b/server/src/test/java/org/opensearch/common/recycler/AbstractRecyclerTestCase.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.recycler; +package org.opensearch.common.recycler; import org.opensearch.common.recycler.AbstractRecyclerC; import org.opensearch.common.recycler.Recycler; diff --git a/server/src/test/java/org/elasticsearch/common/recycler/ConcurrentRecyclerTests.java b/server/src/test/java/org/opensearch/common/recycler/ConcurrentRecyclerTests.java similarity index 83% rename from server/src/test/java/org/elasticsearch/common/recycler/ConcurrentRecyclerTests.java rename to server/src/test/java/org/opensearch/common/recycler/ConcurrentRecyclerTests.java index 61133a7cc9ae6..7d98eeb52343b 100644 --- a/server/src/test/java/org/elasticsearch/common/recycler/ConcurrentRecyclerTests.java +++ b/server/src/test/java/org/opensearch/common/recycler/ConcurrentRecyclerTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,10 +17,7 @@ * under the License. */ -package org.elasticsearch.common.recycler; - -import org.opensearch.common.recycler.Recycler; -import org.opensearch.common.recycler.Recyclers; +package org.opensearch.common.recycler; public class ConcurrentRecyclerTests extends AbstractRecyclerTestCase { diff --git a/server/src/test/java/org/elasticsearch/common/recycler/LockedRecyclerTests.java b/server/src/test/java/org/opensearch/common/recycler/LockedRecyclerTests.java similarity index 83% rename from server/src/test/java/org/elasticsearch/common/recycler/LockedRecyclerTests.java rename to server/src/test/java/org/opensearch/common/recycler/LockedRecyclerTests.java index 7c4c94fee6833..3e1b6d1768003 100644 --- a/server/src/test/java/org/elasticsearch/common/recycler/LockedRecyclerTests.java +++ b/server/src/test/java/org/opensearch/common/recycler/LockedRecyclerTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,10 +17,7 @@ * under the License. */ -package org.elasticsearch.common.recycler; - -import org.opensearch.common.recycler.Recycler; -import org.opensearch.common.recycler.Recyclers; +package org.opensearch.common.recycler; public class LockedRecyclerTests extends AbstractRecyclerTestCase { diff --git a/server/src/test/java/org/elasticsearch/common/recycler/NoneRecyclerTests.java b/server/src/test/java/org/opensearch/common/recycler/NoneRecyclerTests.java similarity index 85% rename from server/src/test/java/org/elasticsearch/common/recycler/NoneRecyclerTests.java rename to server/src/test/java/org/opensearch/common/recycler/NoneRecyclerTests.java index 4203efb6bf70c..220fa0a4902e4 100644 --- a/server/src/test/java/org/elasticsearch/common/recycler/NoneRecyclerTests.java +++ b/server/src/test/java/org/opensearch/common/recycler/NoneRecyclerTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,10 +17,7 @@ * under the License. */ -package org.elasticsearch.common.recycler; - -import org.opensearch.common.recycler.Recycler; -import org.opensearch.common.recycler.Recyclers; +package org.opensearch.common.recycler; public class NoneRecyclerTests extends AbstractRecyclerTestCase { diff --git a/server/src/test/java/org/elasticsearch/common/recycler/QueueRecyclerTests.java b/server/src/test/java/org/opensearch/common/recycler/QueueRecyclerTests.java similarity index 83% rename from server/src/test/java/org/elasticsearch/common/recycler/QueueRecyclerTests.java rename to server/src/test/java/org/opensearch/common/recycler/QueueRecyclerTests.java index eea75c15e30a2..091099d6f3ed8 100644 --- a/server/src/test/java/org/elasticsearch/common/recycler/QueueRecyclerTests.java +++ b/server/src/test/java/org/opensearch/common/recycler/QueueRecyclerTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,10 +17,7 @@ * under the License. */ -package org.elasticsearch.common.recycler; - -import org.opensearch.common.recycler.Recycler; -import org.opensearch.common.recycler.Recyclers; +package org.opensearch.common.recycler; public class QueueRecyclerTests extends AbstractRecyclerTestCase { diff --git a/server/src/test/java/org/elasticsearch/common/regex/RegexTests.java b/server/src/test/java/org/opensearch/common/regex/RegexTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/regex/RegexTests.java rename to server/src/test/java/org/opensearch/common/regex/RegexTests.java index 048d4371e044d..50bc5df42dc83 100644 --- a/server/src/test/java/org/elasticsearch/common/regex/RegexTests.java +++ b/server/src/test/java/org/opensearch/common/regex/RegexTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.regex; +package org.opensearch.common.regex; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.regex.Regex; diff --git a/server/src/test/java/org/elasticsearch/common/rounding/DateTimeUnitTests.java b/server/src/test/java/org/opensearch/common/rounding/DateTimeUnitTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/rounding/DateTimeUnitTests.java rename to server/src/test/java/org/opensearch/common/rounding/DateTimeUnitTests.java index 4c417e6dbcc8b..c253c3d673d82 100644 --- a/server/src/test/java/org/elasticsearch/common/rounding/DateTimeUnitTests.java +++ b/server/src/test/java/org/opensearch/common/rounding/DateTimeUnitTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.rounding; +package org.opensearch.common.rounding; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.rounding.DateTimeUnit; diff --git a/server/src/test/java/org/elasticsearch/common/rounding/RoundingDuelTests.java b/server/src/test/java/org/opensearch/common/rounding/RoundingDuelTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/rounding/RoundingDuelTests.java rename to server/src/test/java/org/opensearch/common/rounding/RoundingDuelTests.java index 4a20d983d9439..8b5a3f1fcdc35 100644 --- a/server/src/test/java/org/elasticsearch/common/rounding/RoundingDuelTests.java +++ b/server/src/test/java/org/opensearch/common/rounding/RoundingDuelTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.rounding; +package org.opensearch.common.rounding; import org.opensearch.Version; import org.opensearch.common.io.stream.BytesStreamOutput; diff --git a/server/src/test/java/org/elasticsearch/common/rounding/TimeZoneRoundingTests.java b/server/src/test/java/org/opensearch/common/rounding/TimeZoneRoundingTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/rounding/TimeZoneRoundingTests.java rename to server/src/test/java/org/opensearch/common/rounding/TimeZoneRoundingTests.java index a689d9e2f53a8..d432398db1a59 100644 --- a/server/src/test/java/org/elasticsearch/common/rounding/TimeZoneRoundingTests.java +++ b/server/src/test/java/org/opensearch/common/rounding/TimeZoneRoundingTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.rounding; +package org.opensearch.common.rounding; import org.opensearch.common.collect.Tuple; import org.opensearch.common.rounding.DateTimeUnit; diff --git a/server/src/test/java/org/elasticsearch/common/settings/ConsistentSettingsServiceTests.java b/server/src/test/java/org/opensearch/common/settings/ConsistentSettingsServiceTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/settings/ConsistentSettingsServiceTests.java rename to server/src/test/java/org/opensearch/common/settings/ConsistentSettingsServiceTests.java index 5fa29a296cb88..4dd3e684b237c 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/ConsistentSettingsServiceTests.java +++ b/server/src/test/java/org/opensearch/common/settings/ConsistentSettingsServiceTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,9 @@ * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; +import org.elasticsearch.common.settings.MockSecureSettings; import org.opensearch.cluster.ClusterState; import org.opensearch.cluster.ClusterStateUpdateTask; import org.opensearch.cluster.service.ClusterService; diff --git a/server/src/test/java/org/elasticsearch/common/settings/MemorySizeSettingsTests.java b/server/src/test/java/org/opensearch/common/settings/MemorySizeSettingsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/settings/MemorySizeSettingsTests.java rename to server/src/test/java/org/opensearch/common/settings/MemorySizeSettingsTests.java index ab2773f30650b..27850eb2f8b8e 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/MemorySizeSettingsTests.java +++ b/server/src/test/java/org/opensearch/common/settings/MemorySizeSettingsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; import org.opensearch.common.settings.Setting; import org.opensearch.common.settings.Setting.Property; diff --git a/server/src/test/java/org/elasticsearch/common/settings/PropertyPlaceholderTests.java b/server/src/test/java/org/opensearch/common/settings/PropertyPlaceholderTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/settings/PropertyPlaceholderTests.java rename to server/src/test/java/org/opensearch/common/settings/PropertyPlaceholderTests.java index 833c0f043a00c..4ea5e73bf092d 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/PropertyPlaceholderTests.java +++ b/server/src/test/java/org/opensearch/common/settings/PropertyPlaceholderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; import java.util.LinkedHashMap; import java.util.Map; diff --git a/server/src/test/java/org/elasticsearch/common/settings/ScopedSettingsTests.java b/server/src/test/java/org/opensearch/common/settings/ScopedSettingsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/settings/ScopedSettingsTests.java rename to server/src/test/java/org/opensearch/common/settings/ScopedSettingsTests.java index 8c18bf6b1540c..b6a068cdbb4e3 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/ScopedSettingsTests.java +++ b/server/src/test/java/org/opensearch/common/settings/ScopedSettingsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,10 +16,11 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; +import org.elasticsearch.common.settings.MockSecureSettings; import org.opensearch.Version; import org.opensearch.cluster.metadata.IndexMetadata; import org.opensearch.cluster.routing.allocation.decider.FilterAllocationDecider; diff --git a/server/src/test/java/org/elasticsearch/common/settings/SecureStringTests.java b/server/src/test/java/org/opensearch/common/settings/SecureStringTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/settings/SecureStringTests.java rename to server/src/test/java/org/opensearch/common/settings/SecureStringTests.java index 7f5536885e32b..de9698ee9a983 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/SecureStringTests.java +++ b/server/src/test/java/org/opensearch/common/settings/SecureStringTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.settings.SecureString; diff --git a/server/src/test/java/org/elasticsearch/common/settings/SettingTests.java b/server/src/test/java/org/opensearch/common/settings/SettingTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/settings/SettingTests.java rename to server/src/test/java/org/opensearch/common/settings/SettingTests.java index 592493c1ce4ec..d3f61d1beb772 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/SettingTests.java +++ b/server/src/test/java/org/opensearch/common/settings/SettingTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,12 +16,13 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.core.LogEvent; +import org.elasticsearch.common.settings.MockSecureSettings; import org.opensearch.cluster.metadata.IndexMetadata; import org.opensearch.common.collect.Tuple; import org.opensearch.common.logging.Loggers; diff --git a/server/src/test/java/org/elasticsearch/common/settings/SettingsFilterTests.java b/server/src/test/java/org/opensearch/common/settings/SettingsFilterTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/settings/SettingsFilterTests.java rename to server/src/test/java/org/opensearch/common/settings/SettingsFilterTests.java index fc5576b0b0968..439a13d266594 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/SettingsFilterTests.java +++ b/server/src/test/java/org/opensearch/common/settings/SettingsFilterTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.Logger; diff --git a/server/src/test/java/org/elasticsearch/common/settings/SettingsModuleTests.java b/server/src/test/java/org/opensearch/common/settings/SettingsModuleTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/settings/SettingsModuleTests.java rename to server/src/test/java/org/opensearch/common/settings/SettingsModuleTests.java index 09731a2b7586e..a49c338e0c262 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/SettingsModuleTests.java +++ b/server/src/test/java/org/opensearch/common/settings/SettingsModuleTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,9 +17,10 @@ * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; import org.elasticsearch.common.inject.ModuleTestCase; +import org.elasticsearch.common.settings.MockSecureSettings; import org.opensearch.common.settings.SecureSetting; import org.opensearch.common.settings.Setting; import org.opensearch.common.settings.Setting.Property; diff --git a/server/src/test/java/org/elasticsearch/common/settings/SettingsTests.java b/server/src/test/java/org/opensearch/common/settings/SettingsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/settings/SettingsTests.java rename to server/src/test/java/org/opensearch/common/settings/SettingsTests.java index 2eb7fd5a53579..eb4a4474e81a9 100644 --- a/server/src/test/java/org/elasticsearch/common/settings/SettingsTests.java +++ b/server/src/test/java/org/opensearch/common/settings/SettingsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,9 @@ * under the License. */ -package org.elasticsearch.common.settings; +package org.opensearch.common.settings; +import org.elasticsearch.common.settings.MockSecureSettings; import org.opensearch.OpenSearchParseException; import org.opensearch.Version; import org.opensearch.common.Strings; diff --git a/server/src/test/java/org/elasticsearch/common/time/DateFormattersTests.java b/server/src/test/java/org/opensearch/common/time/DateFormattersTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/time/DateFormattersTests.java rename to server/src/test/java/org/opensearch/common/time/DateFormattersTests.java index 48ca4e4153510..596fe081de441 100644 --- a/server/src/test/java/org/elasticsearch/common/time/DateFormattersTests.java +++ b/server/src/test/java/org/opensearch/common/time/DateFormattersTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.time; +package org.opensearch.common.time; import org.opensearch.bootstrap.JavaVersion; import org.opensearch.common.joda.Joda; diff --git a/server/src/test/java/org/elasticsearch/common/time/DateUtilsRoundingTests.java b/server/src/test/java/org/opensearch/common/time/DateUtilsRoundingTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/time/DateUtilsRoundingTests.java rename to server/src/test/java/org/opensearch/common/time/DateUtilsRoundingTests.java index 8bf2412e455d4..c782512a04a6c 100644 --- a/server/src/test/java/org/elasticsearch/common/time/DateUtilsRoundingTests.java +++ b/server/src/test/java/org/opensearch/common/time/DateUtilsRoundingTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.time; +package org.opensearch.common.time; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.time.DateUtilsRounding; diff --git a/server/src/test/java/org/elasticsearch/common/time/DateUtilsTests.java b/server/src/test/java/org/opensearch/common/time/DateUtilsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/time/DateUtilsTests.java rename to server/src/test/java/org/opensearch/common/time/DateUtilsTests.java index 37a94c29f3adc..c336600b615da 100644 --- a/server/src/test/java/org/elasticsearch/common/time/DateUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/time/DateUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.time; +package org.opensearch.common.time; import org.elasticsearch.test.ESTestCase; import org.joda.time.DateTimeZone; diff --git a/server/src/test/java/org/elasticsearch/common/time/JavaDateMathParserTests.java b/server/src/test/java/org/opensearch/common/time/JavaDateMathParserTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/time/JavaDateMathParserTests.java rename to server/src/test/java/org/opensearch/common/time/JavaDateMathParserTests.java index c4fe9daffdc57..7f6c032739fa7 100644 --- a/server/src/test/java/org/elasticsearch/common/time/JavaDateMathParserTests.java +++ b/server/src/test/java/org/opensearch/common/time/JavaDateMathParserTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.time; +package org.opensearch.common.time; import org.opensearch.OpenSearchParseException; import org.opensearch.bootstrap.JavaVersion; diff --git a/server/src/test/java/org/elasticsearch/common/transport/BoundTransportAddressTests.java b/server/src/test/java/org/opensearch/common/transport/BoundTransportAddressTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/transport/BoundTransportAddressTests.java rename to server/src/test/java/org/opensearch/common/transport/BoundTransportAddressTests.java index 9f3987740b054..916486af36892 100644 --- a/server/src/test/java/org/elasticsearch/common/transport/BoundTransportAddressTests.java +++ b/server/src/test/java/org/opensearch/common/transport/BoundTransportAddressTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.transport; +package org.opensearch.common.transport; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.StreamInput; diff --git a/server/src/test/java/org/elasticsearch/common/unit/ByteSizeUnitTests.java b/server/src/test/java/org/opensearch/common/unit/ByteSizeUnitTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/unit/ByteSizeUnitTests.java rename to server/src/test/java/org/opensearch/common/unit/ByteSizeUnitTests.java index cb2c9f187a3e8..79875d44c17f9 100644 --- a/server/src/test/java/org/elasticsearch/common/unit/ByteSizeUnitTests.java +++ b/server/src/test/java/org/opensearch/common/unit/ByteSizeUnitTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.unit; +package org.opensearch.common.unit; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.StreamInput; diff --git a/server/src/test/java/org/elasticsearch/common/unit/ByteSizeValueTests.java b/server/src/test/java/org/opensearch/common/unit/ByteSizeValueTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/unit/ByteSizeValueTests.java rename to server/src/test/java/org/opensearch/common/unit/ByteSizeValueTests.java index bc0e62c60be40..b99eff686f85f 100644 --- a/server/src/test/java/org/elasticsearch/common/unit/ByteSizeValueTests.java +++ b/server/src/test/java/org/opensearch/common/unit/ByteSizeValueTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.unit; +package org.opensearch.common.unit; import org.opensearch.OpenSearchParseException; import org.opensearch.common.io.stream.Writeable.Reader; diff --git a/server/src/test/java/org/elasticsearch/common/unit/DistanceUnitTests.java b/server/src/test/java/org/opensearch/common/unit/DistanceUnitTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/unit/DistanceUnitTests.java rename to server/src/test/java/org/opensearch/common/unit/DistanceUnitTests.java index 9ac63cc83c121..788f1fff3a1ed 100644 --- a/server/src/test/java/org/elasticsearch/common/unit/DistanceUnitTests.java +++ b/server/src/test/java/org/opensearch/common/unit/DistanceUnitTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.unit; +package org.opensearch.common.unit; import org.opensearch.common.io.stream.BytesStreamOutput; diff --git a/server/src/test/java/org/elasticsearch/common/unit/FuzzinessTests.java b/server/src/test/java/org/opensearch/common/unit/FuzzinessTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/unit/FuzzinessTests.java rename to server/src/test/java/org/opensearch/common/unit/FuzzinessTests.java index ba9ef0db5b4de..4cd240131dd4a 100644 --- a/server/src/test/java/org/elasticsearch/common/unit/FuzzinessTests.java +++ b/server/src/test/java/org/opensearch/common/unit/FuzzinessTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.unit; +package org.opensearch.common.unit; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.StreamInput; diff --git a/server/src/test/java/org/elasticsearch/common/unit/RatioValueTests.java b/server/src/test/java/org/opensearch/common/unit/RatioValueTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/unit/RatioValueTests.java rename to server/src/test/java/org/opensearch/common/unit/RatioValueTests.java index c5a4788cabab2..cd2ee40fe6444 100644 --- a/server/src/test/java/org/elasticsearch/common/unit/RatioValueTests.java +++ b/server/src/test/java/org/opensearch/common/unit/RatioValueTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.unit; +package org.opensearch.common.unit; import org.opensearch.OpenSearchParseException; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/unit/SizeValueTests.java b/server/src/test/java/org/opensearch/common/unit/SizeValueTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/unit/SizeValueTests.java rename to server/src/test/java/org/opensearch/common/unit/SizeValueTests.java index 8d15f4f05025a..af99a9a31cfaa 100644 --- a/server/src/test/java/org/elasticsearch/common/unit/SizeValueTests.java +++ b/server/src/test/java/org/opensearch/common/unit/SizeValueTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.unit; +package org.opensearch.common.unit; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.unit.SizeUnit; diff --git a/server/src/test/java/org/elasticsearch/common/util/ArrayUtilsTests.java b/server/src/test/java/org/opensearch/common/util/ArrayUtilsTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/ArrayUtilsTests.java rename to server/src/test/java/org/opensearch/common/util/ArrayUtilsTests.java index 3858b17a238c4..6172efce7381e 100644 --- a/server/src/test/java/org/elasticsearch/common/util/ArrayUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/util/ArrayUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.util.ArrayUtils; diff --git a/server/src/test/java/org/elasticsearch/common/util/BigArraysTests.java b/server/src/test/java/org/opensearch/common/util/BigArraysTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/util/BigArraysTests.java rename to server/src/test/java/org/opensearch/common/util/BigArraysTests.java index 709dc072951b5..98145c0970ea9 100644 --- a/server/src/test/java/org/elasticsearch/common/util/BigArraysTests.java +++ b/server/src/test/java/org/opensearch/common/util/BigArraysTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,9 +17,11 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.apache.lucene.util.BytesRef; +import org.elasticsearch.common.util.MockBigArrays; +import org.elasticsearch.common.util.MockPageCacheRecycler; import org.opensearch.common.breaker.CircuitBreaker; import org.opensearch.common.breaker.CircuitBreakingException; import org.opensearch.common.settings.ClusterSettings; diff --git a/server/src/test/java/org/elasticsearch/common/util/BinarySearcherTests.java b/server/src/test/java/org/opensearch/common/util/BinarySearcherTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/BinarySearcherTests.java rename to server/src/test/java/org/opensearch/common/util/BinarySearcherTests.java index d90d141928fd0..ed972773112e7 100644 --- a/server/src/test/java/org/elasticsearch/common/util/BinarySearcherTests.java +++ b/server/src/test/java/org/opensearch/common/util/BinarySearcherTests.java @@ -17,8 +17,10 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; +import org.elasticsearch.common.util.MockBigArrays; +import org.elasticsearch.common.util.MockPageCacheRecycler; import org.opensearch.common.lease.Releasables; import org.opensearch.common.settings.Settings; import org.elasticsearch.indices.breaker.NoneCircuitBreakerService; diff --git a/server/src/test/java/org/elasticsearch/common/util/BitArrayTests.java b/server/src/test/java/org/opensearch/common/util/BitArrayTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/BitArrayTests.java rename to server/src/test/java/org/opensearch/common/util/BitArrayTests.java index e9c648837bf87..2675ff03e79dc 100644 --- a/server/src/test/java/org/elasticsearch/common/util/BitArrayTests.java +++ b/server/src/test/java/org/opensearch/common/util/BitArrayTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.opensearch.common.breaker.CircuitBreaker; import org.opensearch.common.breaker.CircuitBreakingException; diff --git a/server/src/test/java/org/elasticsearch/common/util/ByteUtilsTests.java b/server/src/test/java/org/opensearch/common/util/ByteUtilsTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/ByteUtilsTests.java rename to server/src/test/java/org/opensearch/common/util/ByteUtilsTests.java index de701105b9b76..21991fb43a5ab 100644 --- a/server/src/test/java/org/elasticsearch/common/util/ByteUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/util/ByteUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.apache.lucene.store.ByteArrayDataInput; import org.apache.lucene.store.ByteArrayDataOutput; diff --git a/server/src/test/java/org/elasticsearch/common/util/BytesRefHashTests.java b/server/src/test/java/org/opensearch/common/util/BytesRefHashTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/BytesRefHashTests.java rename to server/src/test/java/org/opensearch/common/util/BytesRefHashTests.java index 0ee3b58bfaa1c..c4f514e376a98 100644 --- a/server/src/test/java/org/elasticsearch/common/util/BytesRefHashTests.java +++ b/server/src/test/java/org/opensearch/common/util/BytesRefHashTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import com.carrotsearch.hppc.ObjectLongHashMap; import com.carrotsearch.hppc.ObjectLongMap; @@ -25,6 +25,8 @@ import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefBuilder; import org.apache.lucene.util.TestUtil; +import org.elasticsearch.common.util.MockBigArrays; +import org.elasticsearch.common.util.MockPageCacheRecycler; import org.opensearch.common.settings.Settings; import org.elasticsearch.indices.breaker.NoneCircuitBreakerService; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/CancellableThreadsTests.java b/server/src/test/java/org/opensearch/common/util/CancellableThreadsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/util/CancellableThreadsTests.java rename to server/src/test/java/org/opensearch/common/util/CancellableThreadsTests.java index 90b9a05f49b80..68fe786ab38fb 100644 --- a/server/src/test/java/org/elasticsearch/common/util/CancellableThreadsTests.java +++ b/server/src/test/java/org/opensearch/common/util/CancellableThreadsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.opensearch.common.util.CancellableThreads; import org.opensearch.common.util.CancellableThreads.IOInterruptible; diff --git a/server/src/test/java/org/elasticsearch/common/util/CollectionUtilsTests.java b/server/src/test/java/org/opensearch/common/util/CollectionUtilsTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/CollectionUtilsTests.java rename to server/src/test/java/org/opensearch/common/util/CollectionUtilsTests.java index 2a2d4da837bee..3c5652e8ae1b9 100644 --- a/server/src/test/java/org/elasticsearch/common/util/CollectionUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/util/CollectionUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.BytesRefArray; diff --git a/server/src/test/java/org/elasticsearch/common/util/CuckooFilterTests.java b/server/src/test/java/org/opensearch/common/util/CuckooFilterTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/CuckooFilterTests.java rename to server/src/test/java/org/opensearch/common/util/CuckooFilterTests.java index f93adf7570956..0f1259f3c9e41 100644 --- a/server/src/test/java/org/elasticsearch/common/util/CuckooFilterTests.java +++ b/server/src/test/java/org/opensearch/common/util/CuckooFilterTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.opensearch.common.Randomness; import org.opensearch.common.hash.MurmurHash3; diff --git a/server/src/test/java/org/elasticsearch/common/util/LocaleUtilsTests.java b/server/src/test/java/org/opensearch/common/util/LocaleUtilsTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/util/LocaleUtilsTests.java rename to server/src/test/java/org/opensearch/common/util/LocaleUtilsTests.java index 6dfa2c4f68aa4..ba1152199358c 100644 --- a/server/src/test/java/org/elasticsearch/common/util/LocaleUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/util/LocaleUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.elasticsearch.test.ESTestCase; import org.hamcrest.Matchers; diff --git a/server/src/test/java/org/elasticsearch/common/util/LongHashTests.java b/server/src/test/java/org/opensearch/common/util/LongHashTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/LongHashTests.java rename to server/src/test/java/org/opensearch/common/util/LongHashTests.java index 44a0528a30478..5cf73648e967c 100644 --- a/server/src/test/java/org/elasticsearch/common/util/LongHashTests.java +++ b/server/src/test/java/org/opensearch/common/util/LongHashTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,12 +17,14 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import com.carrotsearch.hppc.LongLongHashMap; import com.carrotsearch.hppc.LongLongMap; import com.carrotsearch.hppc.cursors.LongLongCursor; +import org.elasticsearch.common.util.MockBigArrays; +import org.elasticsearch.common.util.MockPageCacheRecycler; import org.opensearch.common.settings.Settings; import org.elasticsearch.indices.breaker.NoneCircuitBreakerService; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/LongLongHashTests.java b/server/src/test/java/org/opensearch/common/util/LongLongHashTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/util/LongLongHashTests.java rename to server/src/test/java/org/opensearch/common/util/LongLongHashTests.java index d165fdf416bb9..26bbd6cf2bd5e 100644 --- a/server/src/test/java/org/elasticsearch/common/util/LongLongHashTests.java +++ b/server/src/test/java/org/opensearch/common/util/LongLongHashTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,10 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; +import org.elasticsearch.common.util.MockBigArrays; +import org.elasticsearch.common.util.MockPageCacheRecycler; import org.opensearch.common.settings.Settings; import org.elasticsearch.indices.breaker.NoneCircuitBreakerService; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/LongObjectHashMapTests.java b/server/src/test/java/org/opensearch/common/util/LongObjectHashMapTests.java similarity index 92% rename from server/src/test/java/org/elasticsearch/common/util/LongObjectHashMapTests.java rename to server/src/test/java/org/opensearch/common/util/LongObjectHashMapTests.java index b77dfdb312146..74c18b7290519 100644 --- a/server/src/test/java/org/elasticsearch/common/util/LongObjectHashMapTests.java +++ b/server/src/test/java/org/opensearch/common/util/LongObjectHashMapTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,9 +17,11 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import com.carrotsearch.hppc.LongObjectHashMap; +import org.elasticsearch.common.util.MockBigArrays; +import org.elasticsearch.common.util.MockPageCacheRecycler; import org.opensearch.common.settings.Settings; import org.elasticsearch.indices.breaker.NoneCircuitBreakerService; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/MapsTests.java b/server/src/test/java/org/opensearch/common/util/MapsTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/util/MapsTests.java rename to server/src/test/java/org/opensearch/common/util/MapsTests.java index 961c607fd795c..8b9ac8f3b25ba 100644 --- a/server/src/test/java/org/elasticsearch/common/util/MapsTests.java +++ b/server/src/test/java/org/opensearch/common/util/MapsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.util.Maps; diff --git a/server/src/test/java/org/elasticsearch/common/util/SetBackedScalingCuckooFilterTests.java b/server/src/test/java/org/opensearch/common/util/SetBackedScalingCuckooFilterTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/util/SetBackedScalingCuckooFilterTests.java rename to server/src/test/java/org/opensearch/common/util/SetBackedScalingCuckooFilterTests.java index 2430a6e22484c..0da103c0e524c 100644 --- a/server/src/test/java/org/elasticsearch/common/util/SetBackedScalingCuckooFilterTests.java +++ b/server/src/test/java/org/opensearch/common/util/SetBackedScalingCuckooFilterTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.opensearch.common.Randomness; import org.opensearch.common.hash.MurmurHash3; diff --git a/server/src/test/java/org/elasticsearch/common/util/SingleObjectCacheTests.java b/server/src/test/java/org/opensearch/common/util/SingleObjectCacheTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/SingleObjectCacheTests.java rename to server/src/test/java/org/opensearch/common/util/SingleObjectCacheTests.java index b0b81755ce648..23401d0599ddc 100644 --- a/server/src/test/java/org/elasticsearch/common/util/SingleObjectCacheTests.java +++ b/server/src/test/java/org/opensearch/common/util/SingleObjectCacheTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.opensearch.common.unit.TimeValue; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/URIPatternTests.java b/server/src/test/java/org/opensearch/common/util/URIPatternTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/URIPatternTests.java rename to server/src/test/java/org/opensearch/common/util/URIPatternTests.java index f6f4d6a532a11..2473f0ed63699 100644 --- a/server/src/test/java/org/elasticsearch/common/util/URIPatternTests.java +++ b/server/src/test/java/org/opensearch/common/util/URIPatternTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util; +package org.opensearch.common.util; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.util.URIPattern; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/AbstractAsyncTaskTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/AbstractAsyncTaskTests.java index dceadb3f83692..723433d61b7b7 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/AbstractAsyncTaskTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,13 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.Randomness; import org.opensearch.common.unit.TimeValue; import org.opensearch.core.internal.io.IOUtils; import org.elasticsearch.test.ESTestCase; -import org.opensearch.common.util.concurrent.AbstractAsyncTask; import org.opensearch.threadpool.TestThreadPool; import org.opensearch.threadpool.ThreadPool; import org.junit.AfterClass; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractLifecycleRunnableTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/AbstractLifecycleRunnableTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractLifecycleRunnableTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/AbstractLifecycleRunnableTests.java index 8ef57a4d102e9..1bcff55369a5c 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractLifecycleRunnableTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/AbstractLifecycleRunnableTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.apache.logging.log4j.Logger; import org.opensearch.common.SuppressLoggerChecks; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractRunnableTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/AbstractRunnableTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractRunnableTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/AbstractRunnableTests.java index da181cf582de1..e9fc8ccc9d614 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractRunnableTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/AbstractRunnableTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/AsyncIOProcessorTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/AsyncIOProcessorTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/AsyncIOProcessorTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/AsyncIOProcessorTests.java index a23145a3517cb..1c44230ab6f75 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/AsyncIOProcessorTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/AsyncIOProcessorTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.collect.Tuple; import org.opensearch.common.settings.Settings; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/CountDownTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/CountDownTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/CountDownTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/CountDownTests.java index c243b54e8a598..afcc8b2d8acee 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/CountDownTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/CountDownTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.elasticsearch.test.ESTestCase; import org.hamcrest.Matchers; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/FutureUtilsTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/FutureUtilsTests.java similarity index 92% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/FutureUtilsTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/FutureUtilsTests.java index 194b143037edb..340df6eb86cb5 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/FutureUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/FutureUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.util.concurrent.FutureUtils; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/KeyedLockTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/KeyedLockTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/KeyedLockTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/KeyedLockTests.java index 1c7c883c4f327..6a0053abf2745 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/KeyedLockTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/KeyedLockTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.lease.Releasable; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/ListenableFutureTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/ListenableFutureTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/ListenableFutureTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/ListenableFutureTests.java index f339b9ef50305..84a03623c5263 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/ListenableFutureTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/ListenableFutureTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.apache.logging.log4j.message.ParameterizedMessage; import org.opensearch.action.ActionListener; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/EsExecutorsTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/OpenSearchExecutorsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/EsExecutorsTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/OpenSearchExecutorsTests.java index ea61eb5190c52..3a265ce9a4da9 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/EsExecutorsTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/OpenSearchExecutorsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.settings.Setting; import org.opensearch.common.settings.Settings; @@ -44,7 +44,7 @@ /** * Tests for EsExecutors and its components like EsAbortPolicy. */ -public class EsExecutorsTests extends ESTestCase { +public class OpenSearchExecutorsTests extends ESTestCase { private final ThreadContext threadContext = new ThreadContext(Settings.EMPTY); private TimeUnit randomTimeUnit() { diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/EsThreadPoolExecutorTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/OpenSearchThreadPoolExecutorTests.java similarity index 94% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/EsThreadPoolExecutorTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/OpenSearchThreadPoolExecutorTests.java index b64e7e4fe15c0..f402a3afff184 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/EsThreadPoolExecutorTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/OpenSearchThreadPoolExecutorTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.settings.Settings; import org.elasticsearch.test.ESSingleNodeTestCase; @@ -30,7 +30,7 @@ import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.hasToString; -public class EsThreadPoolExecutorTests extends ESSingleNodeTestCase { +public class OpenSearchThreadPoolExecutorTests extends ESSingleNodeTestCase { @Override protected Settings nodeSettings() { diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/PrioritizedExecutorsTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/PrioritizedExecutorsTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/PrioritizedExecutorsTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/PrioritizedExecutorsTests.java index ec1a704ea92de..fddd1f1d2d057 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/PrioritizedExecutorsTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/PrioritizedExecutorsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.Priority; import org.opensearch.common.settings.Settings; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/PrioritizedRunnableTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/PrioritizedRunnableTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/PrioritizedRunnableTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/PrioritizedRunnableTests.java index eed226f6d62fa..d37b914d9af7e 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/PrioritizedRunnableTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/PrioritizedRunnableTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.Priority; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/QueueResizingEsThreadPoolExecutorTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/QueueResizingOpenSearchThreadPoolExecutorTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/QueueResizingEsThreadPoolExecutorTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/QueueResizingOpenSearchThreadPoolExecutorTests.java index 03bf838202683..ef8526a87e45f 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/QueueResizingEsThreadPoolExecutorTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/QueueResizingOpenSearchThreadPoolExecutorTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.settings.Settings; import org.opensearch.common.unit.TimeValue; @@ -39,10 +39,10 @@ import static org.hamcrest.Matchers.lessThan; /** - * Tests for the automatic queue resizing of the {@code QueueResizingEsThreadPoolExecutorTests} + * Tests for the automatic queue resizing of the {@code QueueResizingOpenSearchThreadPoolExecutorTests} * based on the time taken for each event. */ -public class QueueResizingEsThreadPoolExecutorTests extends ESTestCase { +public class QueueResizingOpenSearchThreadPoolExecutorTests extends ESTestCase { public void testExactWindowSizeAdjustment() throws Exception { ThreadContext context = new ThreadContext(Settings.EMPTY); diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/ReleasableLockTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/ReleasableLockTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/ReleasableLockTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/ReleasableLockTests.java index 6820331923bba..557f0889276f1 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/ReleasableLockTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/ReleasableLockTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.lease.Releasable; import org.opensearch.common.unit.TimeValue; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/ResizableBlockingQueueTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/ResizableBlockingQueueTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/ResizableBlockingQueueTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/ResizableBlockingQueueTests.java index dde9e024f69bd..41171895daacc 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/ResizableBlockingQueueTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/ResizableBlockingQueueTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.util.concurrent.ConcurrentCollections; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/RunOnceTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/RunOnceTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/RunOnceTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/RunOnceTests.java index 2c67bea44050a..6b8355d61b26d 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/RunOnceTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/RunOnceTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.util.concurrent.AbstractRunnable; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/SizeBlockingQueueTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/SizeBlockingQueueTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/SizeBlockingQueueTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/SizeBlockingQueueTests.java index f5026e6b21e1a..e45487157dc6b 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/SizeBlockingQueueTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/SizeBlockingQueueTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.util.concurrent.SizeBlockingQueue; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/ThreadContextTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/ThreadContextTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/ThreadContextTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/ThreadContextTests.java index 1d47b536c2878..590adb82e9d59 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/ThreadContextTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/ThreadContextTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.logging.HeaderWarning; diff --git a/server/src/test/java/org/elasticsearch/common/util/concurrent/TimedRunnableTests.java b/server/src/test/java/org/opensearch/common/util/concurrent/TimedRunnableTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/util/concurrent/TimedRunnableTests.java rename to server/src/test/java/org/opensearch/common/util/concurrent/TimedRunnableTests.java index b7e1ef8c28c50..9076736f06aee 100644 --- a/server/src/test/java/org/elasticsearch/common/util/concurrent/TimedRunnableTests.java +++ b/server/src/test/java/org/opensearch/common/util/concurrent/TimedRunnableTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.concurrent; +package org.opensearch.common.util.concurrent; import org.opensearch.ExceptionsHelper; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/util/iterable/IterablesTests.java b/server/src/test/java/org/opensearch/common/util/iterable/IterablesTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/iterable/IterablesTests.java rename to server/src/test/java/org/opensearch/common/util/iterable/IterablesTests.java index c0bf1049c382d..8c664601406cb 100644 --- a/server/src/test/java/org/elasticsearch/common/util/iterable/IterablesTests.java +++ b/server/src/test/java/org/opensearch/common/util/iterable/IterablesTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.iterable; +package org.opensearch.common.util.iterable; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.util.iterable.Iterables; diff --git a/server/src/test/java/org/elasticsearch/common/util/set/SetsTests.java b/server/src/test/java/org/opensearch/common/util/set/SetsTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/util/set/SetsTests.java rename to server/src/test/java/org/opensearch/common/util/set/SetsTests.java index 7cea118b36661..f8f7942c4e908 100644 --- a/server/src/test/java/org/elasticsearch/common/util/set/SetsTests.java +++ b/server/src/test/java/org/opensearch/common/util/set/SetsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.util.set; +package org.opensearch.common.util.set; import org.opensearch.common.collect.Tuple; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/BaseXContentTestCase.java b/server/src/test/java/org/opensearch/common/xcontent/BaseXContentTestCase.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/xcontent/BaseXContentTestCase.java rename to server/src/test/java/org/opensearch/common/xcontent/BaseXContentTestCase.java index 0dd155216f2e7..15af4e01d754d 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/BaseXContentTestCase.java +++ b/server/src/test/java/org/opensearch/common/xcontent/BaseXContentTestCase.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent; +package org.opensearch.common.xcontent; import com.fasterxml.jackson.core.JsonGenerationException; import com.fasterxml.jackson.core.JsonGenerator; @@ -25,6 +25,18 @@ import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.Constants; +import org.elasticsearch.common.xcontent.DeprecationHandler; +import org.elasticsearch.common.xcontent.NamedObjectNotFoundException; +import org.elasticsearch.common.xcontent.NamedXContentRegistry; +import org.elasticsearch.common.xcontent.ToXContent; +import org.elasticsearch.common.xcontent.ToXContentObject; +import org.elasticsearch.common.xcontent.XContent; +import org.elasticsearch.common.xcontent.XContentBuilder; +import org.elasticsearch.common.xcontent.XContentFactory; +import org.elasticsearch.common.xcontent.XContentGenerator; +import org.elasticsearch.common.xcontent.XContentParseException; +import org.elasticsearch.common.xcontent.XContentParser; +import org.elasticsearch.common.xcontent.XContentType; import org.opensearch.cluster.metadata.IndexMetadata; import org.elasticsearch.common.ParseField; import org.opensearch.common.Strings; @@ -45,9 +57,6 @@ import org.joda.time.ReadableInstant; import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.ISODateTimeFormat; -import org.opensearch.common.xcontent.LoggingDeprecationHandler; -import org.opensearch.common.xcontent.XContentHelper; -import org.opensearch.common.xcontent.XContentOpenSearchExtension; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; @@ -834,7 +843,7 @@ public void testUnknownObject() throws Exception { Map objects = new HashMap<>(); objects.put("{'obj':50.63}", DistanceUnit.METERS.fromMeters(50.63)); objects.put("{'obj':'MINUTES'}", TimeUnit.MINUTES); - objects.put("{'obj':'class org.elasticsearch.common.xcontent.BaseXContentTestCase'}", BaseXContentTestCase.class); + objects.put("{'obj':'class BaseXContentTestCase'}", BaseXContentTestCase.class); for (Map.Entry o : objects.entrySet()) { final String expected = o.getKey(); diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/SuggestingErrorOnUnknownTests.java b/server/src/test/java/org/opensearch/common/xcontent/SuggestingErrorOnUnknownTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/xcontent/SuggestingErrorOnUnknownTests.java rename to server/src/test/java/org/opensearch/common/xcontent/SuggestingErrorOnUnknownTests.java index 6dc7bcce6b493..026e1a7596385 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/SuggestingErrorOnUnknownTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/SuggestingErrorOnUnknownTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent; +package org.opensearch.common.xcontent; import org.elasticsearch.test.ESTestCase; import org.opensearch.common.xcontent.SuggestingErrorOnUnknown; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/XContentFactoryTests.java b/server/src/test/java/org/opensearch/common/xcontent/XContentFactoryTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/xcontent/XContentFactoryTests.java rename to server/src/test/java/org/opensearch/common/xcontent/XContentFactoryTests.java index 0da9f25bb76a8..af1f0a206cfd1 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/XContentFactoryTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/XContentFactoryTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,10 +17,13 @@ * under the License. */ -package org.elasticsearch.common.xcontent; +package org.opensearch.common.xcontent; import com.fasterxml.jackson.dataformat.cbor.CBORConstants; import com.fasterxml.jackson.dataformat.smile.SmileConstants; +import org.elasticsearch.common.xcontent.XContentBuilder; +import org.elasticsearch.common.xcontent.XContentFactory; +import org.elasticsearch.common.xcontent.XContentType; import org.opensearch.common.Strings; import org.opensearch.common.bytes.BytesArray; import org.opensearch.common.bytes.BytesReference; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/XContentParserUtilsTests.java b/server/src/test/java/org/opensearch/common/xcontent/XContentParserUtilsTests.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/xcontent/XContentParserUtilsTests.java rename to server/src/test/java/org/opensearch/common/xcontent/XContentParserUtilsTests.java index 9f9529106d15d..9ef543c22b658 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/XContentParserUtilsTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/XContentParserUtilsTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,9 +17,16 @@ * under the License. */ -package org.elasticsearch.common.xcontent; +package org.opensearch.common.xcontent; import org.apache.lucene.util.SetOnce; +import org.elasticsearch.common.xcontent.DeprecationHandler; +import org.elasticsearch.common.xcontent.NamedObjectNotFoundException; +import org.elasticsearch.common.xcontent.NamedXContentRegistry; +import org.elasticsearch.common.xcontent.ObjectParser; +import org.elasticsearch.common.xcontent.XContentBuilder; +import org.elasticsearch.common.xcontent.XContentParser; +import org.elasticsearch.common.xcontent.XContentType; import org.opensearch.common.CheckedBiConsumer; import org.opensearch.common.CheckedConsumer; import org.elasticsearch.common.ParseField; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/XContentTypeTests.java b/server/src/test/java/org/opensearch/common/xcontent/XContentTypeTests.java similarity index 97% rename from server/src/test/java/org/elasticsearch/common/xcontent/XContentTypeTests.java rename to server/src/test/java/org/opensearch/common/xcontent/XContentTypeTests.java index 0dc2be69348bd..8d4b73ca55d28 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/XContentTypeTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/XContentTypeTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -16,8 +16,9 @@ * specific language governing permissions and limitations * under the License. */ -package org.elasticsearch.common.xcontent; +package org.opensearch.common.xcontent; +import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.test.ESTestCase; import java.util.Locale; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/builder/XContentBuilderTests.java b/server/src/test/java/org/opensearch/common/xcontent/builder/XContentBuilderTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/xcontent/builder/XContentBuilderTests.java rename to server/src/test/java/org/opensearch/common/xcontent/builder/XContentBuilderTests.java index f7d71475645ac..1046a0f63f8a8 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/builder/XContentBuilderTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/builder/XContentBuilderTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.builder; +package org.opensearch.common.xcontent.builder; import org.apache.lucene.util.BytesRef; import org.opensearch.common.Strings; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/cbor/CborXContentParserTests.java b/server/src/test/java/org/opensearch/common/xcontent/cbor/CborXContentParserTests.java similarity index 91% rename from server/src/test/java/org/elasticsearch/common/xcontent/cbor/CborXContentParserTests.java rename to server/src/test/java/org/opensearch/common/xcontent/cbor/CborXContentParserTests.java index 192667b42ef45..38803dfc8d785 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/cbor/CborXContentParserTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/cbor/CborXContentParserTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,9 @@ * under the License. */ -package org.elasticsearch.common.xcontent.cbor; +package org.opensearch.common.xcontent.cbor; +import org.elasticsearch.common.xcontent.cbor.CborXContent; import org.opensearch.common.bytes.BytesReference; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentParser; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/cbor/CborXContentTests.java b/server/src/test/java/org/opensearch/common/xcontent/cbor/CborXContentTests.java similarity index 89% rename from server/src/test/java/org/elasticsearch/common/xcontent/cbor/CborXContentTests.java rename to server/src/test/java/org/opensearch/common/xcontent/cbor/CborXContentTests.java index 4b2e7a9695a35..d3c4353b9c691 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/cbor/CborXContentTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/cbor/CborXContentTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,12 +17,12 @@ * under the License. */ -package org.elasticsearch.common.xcontent.cbor; +package org.opensearch.common.xcontent.cbor; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.dataformat.cbor.CBORFactory; -import org.elasticsearch.common.xcontent.BaseXContentTestCase; +import org.opensearch.common.xcontent.BaseXContentTestCase; import org.elasticsearch.common.xcontent.XContentType; import java.io.ByteArrayOutputStream; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/cbor/JsonVsCborTests.java b/server/src/test/java/org/opensearch/common/xcontent/cbor/JsonVsCborTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/xcontent/cbor/JsonVsCborTests.java rename to server/src/test/java/org/opensearch/common/xcontent/cbor/JsonVsCborTests.java index 22f588d5b9713..aebbb6773baa6 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/cbor/JsonVsCborTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/cbor/JsonVsCborTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,9 @@ * under the License. */ -package org.elasticsearch.common.xcontent.cbor; +package org.opensearch.common.xcontent.cbor; +import org.elasticsearch.common.xcontent.cbor.CborXContent; import org.opensearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentGenerator; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/json/JsonXContentTests.java b/server/src/test/java/org/opensearch/common/xcontent/json/JsonXContentTests.java similarity index 89% rename from server/src/test/java/org/elasticsearch/common/xcontent/json/JsonXContentTests.java rename to server/src/test/java/org/opensearch/common/xcontent/json/JsonXContentTests.java index 4a79ddb4ec6a7..43d356cc60952 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/json/JsonXContentTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/json/JsonXContentTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,12 +17,12 @@ * under the License. */ -package org.elasticsearch.common.xcontent.json; +package org.opensearch.common.xcontent.json; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonGenerator; -import org.elasticsearch.common.xcontent.BaseXContentTestCase; +import org.opensearch.common.xcontent.BaseXContentTestCase; import org.elasticsearch.common.xcontent.XContentType; import java.io.ByteArrayOutputStream; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/smile/JsonVsSmileTests.java b/server/src/test/java/org/opensearch/common/xcontent/smile/JsonVsSmileTests.java similarity index 95% rename from server/src/test/java/org/elasticsearch/common/xcontent/smile/JsonVsSmileTests.java rename to server/src/test/java/org/opensearch/common/xcontent/smile/JsonVsSmileTests.java index 027649b625ab7..4b1e8d4773b69 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/smile/JsonVsSmileTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/smile/JsonVsSmileTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,9 @@ * under the License. */ -package org.elasticsearch.common.xcontent.smile; +package org.opensearch.common.xcontent.smile; +import org.elasticsearch.common.xcontent.smile.SmileXContent; import org.opensearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentGenerator; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/smile/SmileXContentTests.java b/server/src/test/java/org/opensearch/common/xcontent/smile/SmileXContentTests.java similarity index 89% rename from server/src/test/java/org/elasticsearch/common/xcontent/smile/SmileXContentTests.java rename to server/src/test/java/org/opensearch/common/xcontent/smile/SmileXContentTests.java index 71f64ab502864..0fd1a0b642142 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/smile/SmileXContentTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/smile/SmileXContentTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,12 +17,12 @@ * under the License. */ -package org.elasticsearch.common.xcontent.smile; +package org.opensearch.common.xcontent.smile; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.dataformat.smile.SmileFactory; -import org.elasticsearch.common.xcontent.BaseXContentTestCase; +import org.opensearch.common.xcontent.BaseXContentTestCase; import org.elasticsearch.common.xcontent.XContentType; import java.io.ByteArrayOutputStream; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/AbstractFilteringTestCase.java b/server/src/test/java/org/opensearch/common/xcontent/support/AbstractFilteringTestCase.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/AbstractFilteringTestCase.java rename to server/src/test/java/org/opensearch/common/xcontent/support/AbstractFilteringTestCase.java index e8830d7d83d3f..612733cc4fae9 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/AbstractFilteringTestCase.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/AbstractFilteringTestCase.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support; +package org.opensearch.common.xcontent.support; import org.opensearch.common.CheckedFunction; import org.opensearch.common.bytes.BytesReference; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/XContentHelperTests.java b/server/src/test/java/org/opensearch/common/xcontent/support/XContentHelperTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/XContentHelperTests.java rename to server/src/test/java/org/opensearch/common/xcontent/support/XContentHelperTests.java index fe10effa3d9ac..a368da985193e 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/XContentHelperTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/XContentHelperTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support; +package org.opensearch.common.xcontent.support; import org.opensearch.common.bytes.BytesReference; import org.opensearch.common.compress.CompressedXContent; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/XContentMapValuesTests.java b/server/src/test/java/org/opensearch/common/xcontent/support/XContentMapValuesTests.java similarity index 99% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/XContentMapValuesTests.java rename to server/src/test/java/org/opensearch/common/xcontent/support/XContentMapValuesTests.java index ce793eac7f222..766a25fd58d4a 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/XContentMapValuesTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/XContentMapValuesTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support; +package org.opensearch.common.xcontent.support; import org.opensearch.common.Strings; import org.opensearch.common.bytes.BytesReference; @@ -28,7 +28,6 @@ import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; import org.elasticsearch.common.xcontent.json.JsonXContent; -import org.opensearch.common.xcontent.support.XContentMapValues; import java.io.IOException; import java.util.ArrayList; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/AbstractXContentFilteringTestCase.java b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/AbstractXContentFilteringTestCase.java similarity index 96% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/AbstractXContentFilteringTestCase.java rename to server/src/test/java/org/opensearch/common/xcontent/support/filtering/AbstractXContentFilteringTestCase.java index 7e0bd3e43fd0e..f40d1318adf0c 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/AbstractXContentFilteringTestCase.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/AbstractXContentFilteringTestCase.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support.filtering; +package org.opensearch.common.xcontent.support.filtering; import org.opensearch.common.Strings; import org.opensearch.common.bytes.BytesReference; @@ -28,7 +28,7 @@ import org.elasticsearch.common.xcontent.XContentFactory; import org.elasticsearch.common.xcontent.XContentParser; import org.elasticsearch.common.xcontent.XContentType; -import org.elasticsearch.common.xcontent.support.AbstractFilteringTestCase; +import org.opensearch.common.xcontent.support.AbstractFilteringTestCase; import java.io.IOException; import java.util.Set; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/CborXContentFilteringTests.java b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/CborXContentFilteringTests.java similarity index 91% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/CborXContentFilteringTests.java rename to server/src/test/java/org/opensearch/common/xcontent/support/filtering/CborXContentFilteringTests.java index db63987c17d36..56b602c340aca 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/CborXContentFilteringTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/CborXContentFilteringTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support.filtering; +package org.opensearch.common.xcontent.support.filtering; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentType; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/FilterPathGeneratorFilteringTests.java b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/FilterPathGeneratorFilteringTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/FilterPathGeneratorFilteringTests.java rename to server/src/test/java/org/opensearch/common/xcontent/support/filtering/FilterPathGeneratorFilteringTests.java index 1736b01bcd32e..1886c60c1cee0 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/FilterPathGeneratorFilteringTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/FilterPathGeneratorFilteringTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,11 +17,12 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support.filtering; +package org.opensearch.common.xcontent.support.filtering; import com.fasterxml.jackson.core.JsonFactory; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.filter.FilteringGeneratorDelegate; +import org.elasticsearch.common.xcontent.support.filtering.FilterPathBasedFilter; import org.opensearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/FilterPathTests.java b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/FilterPathTests.java similarity index 98% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/FilterPathTests.java rename to server/src/test/java/org/opensearch/common/xcontent/support/filtering/FilterPathTests.java index cb7b5d8fbc514..56738784ebe59 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/FilterPathTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/FilterPathTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,8 +17,9 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support.filtering; +package org.opensearch.common.xcontent.support.filtering; +import org.elasticsearch.common.xcontent.support.filtering.FilterPath; import org.opensearch.common.util.set.Sets; import org.elasticsearch.test.ESTestCase; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/JsonXContentFilteringTests.java b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/JsonXContentFilteringTests.java similarity index 92% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/JsonXContentFilteringTests.java rename to server/src/test/java/org/opensearch/common/xcontent/support/filtering/JsonXContentFilteringTests.java index 2a473029aaacb..4a0cadad9c897 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/JsonXContentFilteringTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/JsonXContentFilteringTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support.filtering; +package org.opensearch.common.xcontent.support.filtering; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentType; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/SmileFilteringGeneratorTests.java b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/SmileFilteringGeneratorTests.java similarity index 91% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/SmileFilteringGeneratorTests.java rename to server/src/test/java/org/opensearch/common/xcontent/support/filtering/SmileFilteringGeneratorTests.java index b4f35350d69b9..576b29baabcd6 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/SmileFilteringGeneratorTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/SmileFilteringGeneratorTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support.filtering; +package org.opensearch.common.xcontent.support.filtering; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentType; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/YamlFilteringGeneratorTests.java b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/YamlFilteringGeneratorTests.java similarity index 92% rename from server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/YamlFilteringGeneratorTests.java rename to server/src/test/java/org/opensearch/common/xcontent/support/filtering/YamlFilteringGeneratorTests.java index a101da0e4b1b0..3cb14d6a8946b 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/support/filtering/YamlFilteringGeneratorTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/support/filtering/YamlFilteringGeneratorTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,7 +17,7 @@ * under the License. */ -package org.elasticsearch.common.xcontent.support.filtering; +package org.opensearch.common.xcontent.support.filtering; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentType; diff --git a/server/src/test/java/org/elasticsearch/common/xcontent/yaml/YamlXContentTests.java b/server/src/test/java/org/opensearch/common/xcontent/yaml/YamlXContentTests.java similarity index 89% rename from server/src/test/java/org/elasticsearch/common/xcontent/yaml/YamlXContentTests.java rename to server/src/test/java/org/opensearch/common/xcontent/yaml/YamlXContentTests.java index 3bfaa42188281..0d19924363ec8 100644 --- a/server/src/test/java/org/elasticsearch/common/xcontent/yaml/YamlXContentTests.java +++ b/server/src/test/java/org/opensearch/common/xcontent/yaml/YamlXContentTests.java @@ -7,7 +7,7 @@ * 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 + * 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 @@ -17,12 +17,12 @@ * under the License. */ -package org.elasticsearch.common.xcontent.yaml; +package org.opensearch.common.xcontent.yaml; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; -import org.elasticsearch.common.xcontent.BaseXContentTestCase; +import org.opensearch.common.xcontent.BaseXContentTestCase; import org.elasticsearch.common.xcontent.XContentType; import java.io.ByteArrayOutputStream; diff --git a/server/src/test/java/org/opensearch/search/SearchHitsTests.java b/server/src/test/java/org/opensearch/search/SearchHitsTests.java index 865b15ec314e4..6d504ae0ccaee 100644 --- a/server/src/test/java/org/opensearch/search/SearchHitsTests.java +++ b/server/src/test/java/org/opensearch/search/SearchHitsTests.java @@ -26,7 +26,7 @@ import org.opensearch.common.Strings; import org.opensearch.common.bytes.BytesReference; import org.opensearch.common.io.stream.Writeable; -import org.elasticsearch.common.lucene.LuceneTests; +import org.opensearch.common.lucene.LuceneTests; import org.opensearch.common.text.Text; import org.opensearch.common.xcontent.LoggingDeprecationHandler; import org.elasticsearch.common.xcontent.ToXContent; diff --git a/server/src/test/java/org/opensearch/search/SearchSortValuesTests.java b/server/src/test/java/org/opensearch/search/SearchSortValuesTests.java index 82f7583328051..66a841c4a26dc 100644 --- a/server/src/test/java/org/opensearch/search/SearchSortValuesTests.java +++ b/server/src/test/java/org/opensearch/search/SearchSortValuesTests.java @@ -22,7 +22,7 @@ import org.apache.lucene.util.BytesRef; import org.opensearch.common.Strings; import org.opensearch.common.io.stream.Writeable; -import org.elasticsearch.common.lucene.LuceneTests; +import org.opensearch.common.lucene.LuceneTests; import org.elasticsearch.common.xcontent.ToXContent; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentParser; diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoHashGridTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoHashGridTests.java index 1c6aa11429e1f..0ad7e2c5c2d3b 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoHashGridTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoHashGridTests.java @@ -21,7 +21,7 @@ import org.opensearch.Version; import org.opensearch.common.geo.GeoBoundingBox; -import org.elasticsearch.common.geo.GeoBoundingBoxTests; +import org.opensearch.common.geo.GeoBoundingBoxTests; import org.opensearch.common.geo.GeoPoint; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.NamedWriteableAwareStreamInput; diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoTileGridTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoTileGridTests.java index b5a0b13e04be2..58aefa22caf74 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoTileGridTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/GeoTileGridTests.java @@ -21,7 +21,7 @@ import org.opensearch.Version; import org.opensearch.common.geo.GeoBoundingBox; -import org.elasticsearch.common.geo.GeoBoundingBoxTests; +import org.opensearch.common.geo.GeoBoundingBoxTests; import org.opensearch.common.geo.GeoPoint; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.NamedWriteableAwareStreamInput; diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationBuilderTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationBuilderTests.java index ead1b648902f9..496012593933d 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/CompositeAggregationBuilderTests.java @@ -19,7 +19,7 @@ package org.opensearch.search.aggregations.bucket.composite; -import org.elasticsearch.common.geo.GeoBoundingBoxTests; +import org.opensearch.common.geo.GeoBoundingBoxTests; import org.opensearch.script.Script; import org.opensearch.search.aggregations.BaseAggregationTestCase; import org.opensearch.search.aggregations.bucket.geogrid.GeoTileUtils; diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilderTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilderTests.java index 1a2965cee770f..405144e91836f 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilderTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/composite/GeoTileGridValuesSourceBuilderTests.java @@ -21,7 +21,7 @@ import org.opensearch.Version; import org.opensearch.common.geo.GeoBoundingBox; -import org.elasticsearch.common.geo.GeoBoundingBoxTests; +import org.opensearch.common.geo.GeoBoundingBoxTests; import org.opensearch.common.geo.GeoPoint; import org.opensearch.common.io.stream.BytesStreamOutput; import org.opensearch.common.io.stream.NamedWriteableAwareStreamInput; diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregatorTestCase.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregatorTestCase.java index 16d6a14af8511..1ba584fc6c22a 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregatorTestCase.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/geogrid/GeoGridAggregatorTestCase.java @@ -32,7 +32,7 @@ import org.apache.lucene.util.BytesRef; import org.opensearch.common.CheckedConsumer; import org.opensearch.common.geo.GeoBoundingBox; -import org.elasticsearch.common.geo.GeoBoundingBoxTests; +import org.opensearch.common.geo.GeoBoundingBoxTests; import org.opensearch.common.geo.GeoUtils; import org.elasticsearch.index.mapper.GeoPointFieldMapper; import org.elasticsearch.index.mapper.MappedFieldType; diff --git a/server/src/test/java/org/opensearch/search/aggregations/pipeline/GapPolicyTests.java b/server/src/test/java/org/opensearch/search/aggregations/pipeline/GapPolicyTests.java index d324e2dcc94fc..6d769dfa030f5 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/pipeline/GapPolicyTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/pipeline/GapPolicyTests.java @@ -20,7 +20,7 @@ package org.opensearch.search.aggregations.pipeline; import org.opensearch.common.ParsingException; -import org.elasticsearch.common.io.stream.AbstractWriteableEnumTestCase; +import org.opensearch.common.io.stream.AbstractWriteableEnumTestCase; import java.io.IOException; diff --git a/server/src/test/java/org/opensearch/search/suggest/term/SortByTests.java b/server/src/test/java/org/opensearch/search/suggest/term/SortByTests.java index e563bc8f099af..fe6bc5eb435f1 100644 --- a/server/src/test/java/org/opensearch/search/suggest/term/SortByTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/term/SortByTests.java @@ -19,7 +19,7 @@ package org.opensearch.search.suggest.term; -import org.elasticsearch.common.io.stream.AbstractWriteableEnumTestCase; +import org.opensearch.common.io.stream.AbstractWriteableEnumTestCase; import org.opensearch.search.suggest.SortBy; import java.io.IOException; diff --git a/server/src/test/java/org/opensearch/search/suggest/term/StringDistanceImplTests.java b/server/src/test/java/org/opensearch/search/suggest/term/StringDistanceImplTests.java index 3424784c67184..1052f95cf351d 100644 --- a/server/src/test/java/org/opensearch/search/suggest/term/StringDistanceImplTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/term/StringDistanceImplTests.java @@ -19,7 +19,7 @@ package org.opensearch.search.suggest.term; -import org.elasticsearch.common.io.stream.AbstractWriteableEnumTestCase; +import org.opensearch.common.io.stream.AbstractWriteableEnumTestCase; import org.opensearch.search.suggest.term.TermSuggestionBuilder.StringDistanceImpl; import java.io.IOException; diff --git a/server/src/test/java/org/opensearch/search/suggest/term/SuggestModeTests.java b/server/src/test/java/org/opensearch/search/suggest/term/SuggestModeTests.java index f48192a3bb462..4ba39471fff46 100644 --- a/server/src/test/java/org/opensearch/search/suggest/term/SuggestModeTests.java +++ b/server/src/test/java/org/opensearch/search/suggest/term/SuggestModeTests.java @@ -19,7 +19,7 @@ package org.opensearch.search.suggest.term; -import org.elasticsearch.common.io.stream.AbstractWriteableEnumTestCase; +import org.opensearch.common.io.stream.AbstractWriteableEnumTestCase; import java.io.IOException;