fix wrong refactoring...

This commit is contained in:
kimchy 2010-10-02 01:29:28 +02:00
parent 9e8ebd46e8
commit 7a78374398
3 changed files with 9 additions and 9 deletions

View File

@ -67,7 +67,7 @@ class BuilderActionsTests {
}).gexecute()
assertThat indexR.response.index, equalTo("test")
assertThat indexR.response.lang, equalTo("type1")
assertThat indexR.response.type, equalTo("type1")
assertThat indexR.response.id, equalTo("1")
node.client.admin.indices.refresh {}.actionGet()
@ -86,7 +86,7 @@ class BuilderActionsTests {
def delete = node.client.prepareDelete("test", "type1", "1").gexecute()
assertThat delete.response.index, equalTo("test")
assertThat delete.response.lang, equalTo("type1")
assertThat delete.response.type, equalTo("type1")
assertThat delete.response.id, equalTo("1")
def refresh = node.client.admin.indices.refresh {}

View File

@ -80,7 +80,7 @@ class DifferentApiExecutionTests {
def getR = node.client.get {
index "test"
lang "type1"
type "type1"
id "1"
}
assertThat getR.response.exists, equalTo(true)
@ -133,7 +133,7 @@ class DifferentApiExecutionTests {
indexR = node.client.index {
index "test"
lang "type1"
type "type1"
id "1"
source {
test = "value"

View File

@ -64,7 +64,7 @@ class SimpleActionsTests {
def indexR = node.client.index {
index "test"
lang "type1"
type "type1"
id "1"
source {
test = "value"
@ -80,7 +80,7 @@ class SimpleActionsTests {
def delete = node.client.delete {
index "test"
lang "type1"
type "type1"
id "1"
}
assertThat delete.response.index, equalTo("test")
@ -92,14 +92,14 @@ class SimpleActionsTests {
def get = node.client.get {
index "test"
lang "type1"
type "type1"
id "1"
}
assertThat get.response.exists, equalTo(false)
indexR = node.client.index {
index "test"
lang "type1"
type "type1"
id "1"
source {
test = "value"
@ -154,7 +154,7 @@ class SimpleActionsTests {
get = node.client.get {
index "test"
lang "type1"
type "type1"
id "1"
}
assertThat get.response.exists, equalTo(false)