[TEST] move FakeRestRequest to org.elasticsearch.test.rest

FakeRestRequest is used by a few tests and can also be leveraged by
tests outside of elasticsearch. Moving the package will mean the class
gets exported as part of the test jar.
This commit is contained in:
jaymode 2015-03-30 10:02:18 -04:00
parent 87aa39a0d2
commit 77418ecdbd
5 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,7 @@ package org.elasticsearch.common.settings;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.common.xcontent.json.JsonXContent;
import org.elasticsearch.rest.FakeRestRequest;
import org.elasticsearch.test.rest.FakeRestRequest;
import org.elasticsearch.rest.RestRequest;
import org.elasticsearch.test.ElasticsearchTestCase;
import org.junit.Test;

View File

@ -21,6 +21,7 @@ package org.elasticsearch.rest;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.test.ElasticsearchTestCase;
import org.elasticsearch.test.rest.FakeRestRequest;
import org.junit.Test;
import java.io.FileNotFoundException;

View File

@ -39,6 +39,7 @@ import org.elasticsearch.common.collect.ImmutableOpenMap;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.test.ElasticsearchTestCase;
import org.elasticsearch.test.rest.FakeRestRequest;
import org.elasticsearch.threadpool.ThreadPool;
import org.junit.Test;

View File

@ -26,6 +26,7 @@ import org.elasticsearch.common.io.stream.BytesStreamOutput;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.test.ElasticsearchTestCase;
import org.elasticsearch.test.rest.FakeRestRequest;
import org.junit.Test;
import java.io.IOException;

View File

@ -17,9 +17,10 @@
* under the License.
*/
package org.elasticsearch.rest;
package org.elasticsearch.test.rest;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.rest.RestRequest;
import java.util.HashMap;
import java.util.Map;