/** @throws Exception */ @Test public void testDummy2Document() throws Exception { String fileName = getOutputFolder() + "testData"; DataEngineContext deContext1 = newContext(DataEngineContext.MODE_GENERATION, fileName); myGenDataEngine = DataEngine.newDataEngine(deContext1); myGenDataEngine.defineDataSource(this.dataSource); myGenDataEngine.defineDataSet(this.dataSet); this.genDummy2(); this.closeArchiveWriter(); DataEngineContext deContext2 = newContext(DataEngineContext.MODE_PRESENTATION, fileName); myPreDataEngine = DataEngine.newDataEngine(deContext2); this.preDummy2(); this.closeArchiveReader(); }
/** @throws Exception */ @Test public void testUnserializableObjectTypeInReportDocument() throws Exception { String fileName = getOutputFolder() + "testData"; DataEngineContext deContext1 = newContext(DataEngineContext.MODE_GENERATION, fileName); myGenDataEngine = DataEngine.newDataEngine(deContext1); myGenDataEngine.defineDataSource(this.dataSource); myGenDataEngine.defineDataSet(this.dataSet); genUnserializable(); // this.closeArchiveWriter( ); // // DataEngineContext deContext2 = newContext( DataEngineContext.MODE_PRESENTATION, // fileName ); // myPreDataEngine = DataEngine.newDataEngine( deContext2 ); // // this.preSerializable( ); // this.closeArchiveReader( ); }