Project: Birt
Bug 167051 Error when run a report contain toc[0600]
Reported: 2006-12-07 04:27:08 | Status: closed fixed

Description: Error when run a report contain toc[0600] Step: Run the test case on org.eclipse.birt.report.tests.engine.api.RenderTaskTest.java testRenderReportlet_toc() Actual result: Model have been change the expression toc to structure toc. And engine can't get the toc tree junit.framework.AssertionFailedError: Render reportlet toc_chartfromreportlet_bookmark_toc failed. null at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.eclipse.birt.report.tests.engine.api.RenderTaskTest.renderReportlet(RenderTaskTest.java:539) at org.eclipse.birt.report.tests.engine.api.RenderTaskTest.testRenderReportlet_toc(RenderTaskTest.java:279) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:58) at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.run(CoreTestApplication.java:24) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)

Files changed in fix:
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/APICompatibleTest.java model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/ReportItemParseTest.java model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/writer/DesignWriterTest.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/TOCHandle.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignSession.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/Library.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/BoundColumnsMgr.java model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java