Move resources in /src/test/resources
This commit is contained in:
parent
15248a9d52
commit
17ae816a6a
13
pom.xml
13
pom.xml
|
@ -105,19 +105,6 @@
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
||||||
<testResources>
|
|
||||||
<testResource>
|
|
||||||
<directory>${basedir}/src/test/java</directory>
|
|
||||||
<includes>
|
|
||||||
<include>**/*.json</include>
|
|
||||||
<include>**/*.yml</include>
|
|
||||||
<include>**/*.html</include>
|
|
||||||
<include>**/*.txt</include>
|
|
||||||
</includes>
|
|
||||||
</testResource>
|
|
||||||
</testResources>
|
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|
|
@ -100,7 +100,7 @@ public class SimpleAttachmentIntegrationTests {
|
||||||
public void testSimpleAttachmentContentLengthLimit() throws Exception {
|
public void testSimpleAttachmentContentLengthLimit() throws Exception {
|
||||||
String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/xcontent/test-mapping.json");
|
String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/xcontent/test-mapping.json");
|
||||||
byte[] txt = copyToBytesFromClasspath("/org/elasticsearch/index/mapper/xcontent/testContentLength.txt");
|
byte[] txt = copyToBytesFromClasspath("/org/elasticsearch/index/mapper/xcontent/testContentLength.txt");
|
||||||
final int CONTENT_LENGTH_LIMIT = 18;
|
final int CONTENT_LENGTH_LIMIT = 20;
|
||||||
|
|
||||||
node.client().admin().indices().putMapping(putMappingRequest("test").type("person").source(mapping)).actionGet();
|
node.client().admin().indices().putMapping(putMappingRequest("test").type("person").source(mapping)).actionGet();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue