Skip to content

Commit 40653ee

Browse files
committed
Fix compilation errors
1 parent 67c40c5 commit 40653ee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mr/src/test/java/org/elasticsearch/hadoop/rest/ResourceTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,16 @@ private Resource createResource(String target, Settings s) {
276276
return new Resource(s, true);
277277
}
278278

279+
private void assumeTyped() {
280+
Assume.assumeTrue("Typed api only accepted 7.X and before. Running [" + testVersion + ", " + readResource + "]",
281+
(testVersion.onOrBefore(EsMajorVersion.V_7_X)));
282+
}
283+
284+
private void assumeTypeless() {
285+
Assume.assumeTrue("Typeless api only accepted 7.X and up for writes. Running [" + testVersion + ", " + readResource + "]",
286+
(testVersion.onOrAfter(EsMajorVersion.V_7_X) || readResource));
287+
}
288+
279289
@Test
280290
public void testURiEscaping() throws Exception {
281291
assertEquals("http://localhost:9200/index/type%7Cfoo?q=foo%7Cbar:bar%7Cfoo", HttpEncodingTools.encodeUri("http://localhost:9200/index/type|foo?q=foo|bar:bar|foo"));

0 commit comments

Comments
 (0)