summaryrefslogtreecommitdiff
path: root/package/qa/storages/Test09.java
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 16:26:38 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 16:26:38 +0000
commit90ab66f15c504cff5d6c8d6470ad1fdfb770f031 (patch)
tree786a2b8e8e856caaaee694416b00ae39e6eea2fc /package/qa/storages/Test09.java
parent9333d593cf2e77ae60de1751a8c7bba1984e7481 (diff)
INTEGRATION: CWS fwkbugfix02 (1.2.28); FILE MERGED
2004/04/01 14:33:47 mav 1.2.28.1: #116056# adopt implementation to the design change
Diffstat (limited to 'package/qa/storages/Test09.java')
-rw-r--r--package/qa/storages/Test09.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/package/qa/storages/Test09.java b/package/qa/storages/Test09.java
index 16cf9d5c0..c626283bd 100644
--- a/package/qa/storages/Test09.java
+++ b/package/qa/storages/Test09.java
@@ -42,13 +42,13 @@ public class Test09 implements StorageTest {
return false;
}
- byte pPass1[] = { 1, 2, 3 };
- byte pPass2[] = { 3, 2, 1 };
+ String sPass1 = "123";
+ String sPass2 = "321";
byte pBytes[] = { 1, 1, 1, 1, 1 };
// open a new substream, set "MediaType" and "Compressed" properties to it and write some bytes
// the stream will not be encrypted
- if ( !m_aTestHelper.WriteBytesToEncrSubstream( xTempStorage, "SubStream1", "MediaType1", false, pBytes, pPass1 ) )
+ if ( !m_aTestHelper.WriteBytesToEncrSubstream( xTempStorage, "SubStream1", "MediaType1", false, pBytes, sPass1 ) )
return false;
// create temporary file
@@ -62,7 +62,7 @@ public class Test09 implements StorageTest {
// create temporary storage based on a previously created temporary file
Object pArgs[] = new Object[2];
pArgs[0] = (Object) sTempFileURL;
- pArgs[1] = new Integer( ElementModes.ELEMENT_WRITE );
+ pArgs[1] = new Integer( ElementModes.WRITE );
Object oTempFileStorage = m_xStorageFactory.createInstanceWithArguments( pArgs );
XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage );
@@ -78,7 +78,7 @@ public class Test09 implements StorageTest {
return false;
// change password of the substream of new storage based on file
- int nResult = m_aTestHelper.ChangeStreamPass( xTempFileStorage, "SubStream1", pPass1, pPass2 );
+ int nResult = m_aTestHelper.ChangeStreamPass( xTempFileStorage, "SubStream1", sPass1, sPass2 );
if ( nResult == 0 )
return false; // test failed
else if ( nResult == -1 )
@@ -96,7 +96,7 @@ public class Test09 implements StorageTest {
// ================================================
// the temporary file must not be locked any more after storage disposing
- pArgs[1] = new Integer( ElementModes.ELEMENT_READ );
+ pArgs[1] = new Integer( ElementModes.READ );
Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs );
XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage );
if ( xResultStorage == null )
@@ -105,7 +105,7 @@ public class Test09 implements StorageTest {
return false;
}
- if ( !m_aTestHelper.checkEncrStream( xResultStorage, "SubStream1", "MediaType1", pBytes, pPass2 ) )
+ if ( !m_aTestHelper.checkEncrStream( xResultStorage, "SubStream1", "MediaType1", pBytes, sPass2 ) )
return false;
// dispose used storages to free resources