Move resources in /src/test/resources

This commit is contained in:
David Pilato 2012-12-21 14:47:52 +01:00 committed by Martijn van Groningen
parent 15248a9d52
commit 17ae816a6a
5 changed files with 1 additions and 14 deletions

13
pom.xml
View File

@ -105,19 +105,6 @@
</dependencies>
<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>
<plugin>
<groupId>org.apache.maven.plugins</groupId>

View File

@ -100,7 +100,7 @@ public class SimpleAttachmentIntegrationTests {
public void testSimpleAttachmentContentLengthLimit() throws Exception {
String mapping = copyToStringFromClasspath("/org/elasticsearch/index/mapper/xcontent/test-mapping.json");
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();