[#2235] Add Result<?> DSLContext.fetchFromTXT() to allow for loading
results that were exported using Result.format() - Added test case
This commit is contained in:
parent
5dc9d7c9eb
commit
f5d8bf06bf
@ -101,6 +101,13 @@ extends BaseTest<A, AP, B, S, B2S, BS, L, X, DATE, BOOL, D, T, U, UU, I, IPK, T7
|
||||
super(delegate);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFetchFromTXT() throws Exception {
|
||||
Result<L> result = create().fetch(VLibrary());
|
||||
|
||||
assertEquals(result, create().fetchFromTXT(result.format()));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFormat() throws Exception {
|
||||
jOOQAbstractTest.reset = false;
|
||||
|
||||
@ -1608,6 +1608,11 @@ public abstract class jOOQAbstractTest<
|
||||
new CRUDTests(this).testStoreWithOptimisticLock();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFetchFromTXT() throws Exception {
|
||||
new FormatTests(this).testFetchFromTXT();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testFormat() throws Exception {
|
||||
new FormatTests(this).testFormat();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user