[#2010] Added failing integration test for batch store operations, when
used with RecordListeners
This commit is contained in:
parent
5b4cf0924c
commit
e0a6ab102e
@ -139,6 +139,30 @@ extends BaseTest<A, AP, B, S, B2S, BS, L, X, DATE, BOOL, D, T, U, UU, I, IPK, T7
|
||||
assertEquals(asList("deleteStart", "deleteEnd"), listener2.events);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRecordListenerBatchStore() throws Exception {
|
||||
jOOQAbstractTest.reset = false;
|
||||
SimpleRecordListener listener1 = new SimpleRecordListener();
|
||||
|
||||
B book1 = newBook(5);
|
||||
B book2 = newBook(6);
|
||||
|
||||
create(listener1).batchStore(book1, book2).execute();
|
||||
|
||||
System.out.println(listener1.events);
|
||||
throw new RuntimeException("Support for RecordListener and batch store is not yet implemented");
|
||||
|
||||
// Result<B> books =
|
||||
// create().selectFrom(TBook())
|
||||
// .orderBy(TBook_ID().asc())
|
||||
// .fetch();
|
||||
//
|
||||
// for (int i = 0; i < books.size(); i++) {
|
||||
// books.get(i).attach(create(listener1).configuration());
|
||||
// books.get(i).setValue(TBook_TITLE(), "Title " + i);
|
||||
// }
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRecordListenerRefresh() throws Exception {
|
||||
B book =
|
||||
|
||||
@ -1518,6 +1518,11 @@ public abstract class jOOQAbstractTest<
|
||||
new RecordListenerTests(this).testRecordListenerStore();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRecordListenerBatchStore() throws Exception {
|
||||
new RecordListenerTests(this).testRecordListenerBatchStore();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testResultSetType() throws Exception {
|
||||
new ResultSetTests(this).testResultSetType();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user