diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-07-12 11:30:00 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-07-12 11:30:00 +0000 |
commit | 2acb01cafa98fb6a2b759fade318a3a91e299b3d (patch) | |
tree | a843afb22f981487ed9b961fcad7b37232bc675c /package/qa | |
parent | 431ce69d8fa9c76febdb2c928e133705a2fc4fac (diff) |
INTEGRATION: CWS mav18 (1.4.68); FILE MERGED
2005/06/27 12:38:10 mav 1.4.68.1: regression tests
Diffstat (limited to 'package/qa')
-rw-r--r-- | package/qa/storages/TestHelper.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/package/qa/storages/TestHelper.java b/package/qa/storages/TestHelper.java index fe5c71bc2835..f39321bf419a 100644 --- a/package/qa/storages/TestHelper.java +++ b/package/qa/storages/TestHelper.java @@ -392,7 +392,8 @@ public class TestHelper { { if ( pBytes[ind] != pContents[0][ind] ) { - Error( "SubStream '" + sName + "' contains wrong data!" ); + Error( "SubStream '" + sName + "' contains wrong data! ( byte num. " + + ind + " should be" + pBytes[ind] + " but it is " + pContents[0][ind] + ")" ); return false; } } @@ -773,6 +774,22 @@ public class TestHelper { return true; } + public boolean copyElementTo( XStorage xSource, String sName, XStorage xDest, String sTargetName ) + { + // copy element with name sName from xSource to xDest + try + { + xSource.copyElementTo( sName, xDest, sTargetName ); + } + catch( Exception e ) + { + Error( "Element copying failed, exception: " + e ); + return false; + } + + return true; + } + public boolean moveElementTo( XStorage xSource, String sName, XStorage xDest ) { // move element with name sName from xSource to xDest |