[#2276] Wrong MockDataProvider manual example

This commit is contained in:
Lukas Eder 2013-02-26 21:20:03 +01:00
parent af1e52973a
commit 3305e80127

View File

@ -9575,11 +9575,11 @@ Result<BookRecord> result = create.selectFrom(BOOK).where(BOOK.ID.equal(5)).fetc
result.add(create.newRecord(AUTHOR));
result.get(0).setValue(AUTHOR.ID, 1);
result.get(0).setValue(AUTHOR.LAST_NAME, "Orwell");
mock[0] = new MockResult(1, create.newResult(AUTHOR)));
mock[0] = new MockResult(1, result);
}
// You can detect batch statements easily
else if (ctx.isBatch()) {
else if (ctx.batch()) {
// [...]
}