[#2276] Wrong MockDataProvider manual example
This commit is contained in:
parent
af1e52973a
commit
3305e80127
@ -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()) {
|
||||
// [...]
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user