[#2235] Add Result<?> DSLContext.fetchFromTXT() to allow for loading

results that were exported using Result.format() - Added test case
This commit is contained in:
Lukas Eder 2013-05-03 17:04:09 +02:00
parent 5dc9d7c9eb
commit f5d8bf06bf
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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();