Kaydet (Commit) 9f124082 authored tarafından Ingrid Halama's avatar Ingrid Halama

chart47: #i109770# #i110253# reduce assertions 'already disposed or closed' -…

chart47: #i109770# #i110253# reduce assertions 'already disposed or closed' - don't close the document twice
üst 4b770dd3
...@@ -111,9 +111,11 @@ public class AccArea extends TestCase { ...@@ -111,9 +111,11 @@ public class AccArea extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -109,9 +109,11 @@ public class AccAxis extends TestCase { ...@@ -109,9 +109,11 @@ public class AccAxis extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -110,9 +110,11 @@ public class AccDataPoint extends TestCase { ...@@ -110,9 +110,11 @@ public class AccDataPoint extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -110,9 +110,11 @@ public class AccDataSeries extends TestCase { ...@@ -110,9 +110,11 @@ public class AccDataSeries extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -110,9 +110,11 @@ public class AccDiagram extends TestCase { ...@@ -110,9 +110,11 @@ public class AccDiagram extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -135,9 +135,11 @@ public class AccFloor extends TestCase { ...@@ -135,9 +135,11 @@ public class AccFloor extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -111,9 +111,11 @@ public class AccGrid extends TestCase { ...@@ -111,9 +111,11 @@ public class AccGrid extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -109,9 +109,11 @@ public class AccLegend extends TestCase { ...@@ -109,9 +109,11 @@ public class AccLegend extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -109,9 +109,11 @@ public class AccLegendEntry extends TestCase { ...@@ -109,9 +109,11 @@ public class AccLegendEntry extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -114,9 +114,11 @@ public class AccStatisticsObject extends TestCase { ...@@ -114,9 +114,11 @@ public class AccStatisticsObject extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -109,9 +109,11 @@ public class AccTitle extends TestCase { ...@@ -109,9 +109,11 @@ public class AccTitle extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -134,9 +134,11 @@ public class AccWall extends TestCase { ...@@ -134,9 +134,11 @@ public class AccWall extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
} }
...@@ -102,8 +102,11 @@ public class AccessibleDocumentView extends TestCase { ...@@ -102,8 +102,11 @@ public class AccessibleDocumentView extends TestCase {
* @param log writer to log information while testing * @param log writer to log information while testing
*/ */
protected void cleanup( TestParameters Param, PrintWriter log) { protected void cleanup( TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -86,8 +86,11 @@ public class ChXChartAxis extends TestCase { ...@@ -86,8 +86,11 @@ public class ChXChartAxis extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -73,8 +73,11 @@ public class ChXChartData extends TestCase { ...@@ -73,8 +73,11 @@ public class ChXChartData extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -76,8 +76,11 @@ public class ChXChartDataArray extends TestCase { ...@@ -76,8 +76,11 @@ public class ChXChartDataArray extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -77,10 +77,16 @@ public class ChXChartDocument extends TestCase { ...@@ -77,10 +77,16 @@ public class ChXChartDocument extends TestCase {
* Disposes Chart documents. * Disposes Chart documents.
*/ */
protected void cleanup(TestParameters Param, PrintWriter log) { protected void cleanup(TestParameters Param, PrintWriter log) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
log.println( " closing xChartDoc2 " ); util.DesktopTools.closeDoc(xChartDoc);
util.DesktopTools.closeDoc(doc2); xChartDoc = null;
}
if( doc2!=null ) {
log.println( " closing xChartDoc2" );
util.DesktopTools.closeDoc(doc2);
doc2 = null;
}
} }
/** /**
......
...@@ -84,8 +84,11 @@ public class ChXChartView extends TestCase { ...@@ -84,8 +84,11 @@ public class ChXChartView extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -101,8 +101,11 @@ public class ChXDataPoint extends TestCase { ...@@ -101,8 +101,11 @@ public class ChXDataPoint extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -107,8 +107,11 @@ public class ChXDataRow extends TestCase { ...@@ -107,8 +107,11 @@ public class ChXDataRow extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected synchronized void cleanup( TestParameters tParam, PrintWriter log ) { protected synchronized void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
......
...@@ -92,8 +92,11 @@ public class ChartArea extends TestCase { ...@@ -92,8 +92,11 @@ public class ChartArea extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -81,8 +81,11 @@ public class ChartGrid extends TestCase { ...@@ -81,8 +81,11 @@ public class ChartGrid extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -109,8 +109,11 @@ public class ChartLegend extends TestCase { ...@@ -109,8 +109,11 @@ public class ChartLegend extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -79,8 +79,11 @@ public class ChartLine extends TestCase { ...@@ -79,8 +79,11 @@ public class ChartLine extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -91,8 +91,11 @@ public class ChartTitle extends TestCase { ...@@ -91,8 +91,11 @@ public class ChartTitle extends TestCase {
* Disposes Chart document. * Disposes Chart document.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " closing xChartDoc " ); if( xChartDoc!=null ) {
util.DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
...@@ -95,8 +95,11 @@ public class XMLExporter extends TestCase { ...@@ -95,8 +95,11 @@ public class XMLExporter extends TestCase {
* Document disposed here. * Document disposed here.
*/ */
protected void cleanup( TestParameters tParam, PrintWriter log ) { protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " close xChartDoc " ); if( xChartDoc!=null ) {
DesktopTools.closeDoc(xChartDoc); log.println( " closing xChartDoc" );
util.DesktopTools.closeDoc(xChartDoc);
xChartDoc = null;
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment