Example #1
0
  /** @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();
  }
 /*
  * @see junit.framework.TestCase#setUp()
  */
 @Before
 public void mirrorCursorModelSetUp() throws Exception {
   this.scope = new ImporterTopLevel();
   DataEngineContext context =
       DataEngineContext.newInstance(DataEngineContext.DIRECT_PRESENTATION, scope, null, null);
   context.setTmpdir(this.getTempDir());
   de = (DataEngineImpl) DataEngine.newDataEngine(context);
   this.creator = new CubeUtility();
   creator.createCube(de);
   creator.createCube1(de);
   cube1 = creator.getCube(CubeUtility.cubeName, de);
   cube2 = creator.getCube(CubeUtility.timeCube, de);
 }
Example #3
0
  /** @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( );
  }