summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 16:24:53 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 16:24:53 +0000
commit9758dc9ed3c4cc10f0926e0d16481f117fac7dc5 (patch)
tree53b948e66bebb5c872d17257ebc629e92b7a620b /package
parent4a3ed963fbd703d0f3f297ff38e211f33cc50f96 (diff)
INTEGRATION: CWS fwkbugfix02 (1.3.12); FILE MERGED
2004/04/01 14:33:45 mav 1.3.12.1: #116056# adopt implementation to the design change
Diffstat (limited to 'package')
-rw-r--r--package/qa/storages/Test01.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/package/qa/storages/Test01.java b/package/qa/storages/Test01.java
index da9152fc0199..ca89fb2bdfaf 100644
--- a/package/qa/storages/Test01.java
+++ b/package/qa/storages/Test01.java
@@ -51,7 +51,7 @@ public class Test01 implements StorageTest {
// open a new substorage
XStorage xTempSubStorage = m_aTestHelper.openSubStorage( xTempStorage,
"SubStorage1",
- ElementModes.ELEMENT_WRITE );
+ ElementModes.WRITE );
if ( xTempSubStorage == null )
{
m_aTestHelper.Error( "Can't create substorage!" );
@@ -74,20 +74,20 @@ public class Test01 implements StorageTest {
if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempStorage,
"MediaType3",
true,
- ElementModes.ELEMENT_WRITE ) )
+ ElementModes.WRITE ) )
return false;
// set "MediaType" property for storages and check that "IsRoot" and "OpenMode" properties are set correctly
if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempSubStorage,
"MediaType4",
false,
- ElementModes.ELEMENT_WRITE ) )
+ ElementModes.WRITE ) )
return false;
// 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 );
@@ -111,7 +111,7 @@ public class Test01 implements StorageTest {
// ================================================
// the temporary file must not be locked any more after storage disposing
- pArgs[1] = new Integer( ElementModes.ELEMENT_WRITE );
+ pArgs[1] = new Integer( ElementModes.WRITE );
Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs );
XStorage xResultStorage = (XStorage) UnoRuntime.queryInterface( XStorage.class, oResultStorage );
if ( xResultStorage == null )
@@ -120,20 +120,20 @@ public class Test01 implements StorageTest {
return false;
}
- if ( !m_aTestHelper.checkStorageProperties( xResultStorage, "MediaType3", true, ElementModes.ELEMENT_WRITE ) )
+ if ( !m_aTestHelper.checkStorageProperties( xResultStorage, "MediaType3", true, ElementModes.WRITE ) )
return false;
// open existing substorage
XStorage xResultSubStorage = m_aTestHelper.openSubStorage( xResultStorage,
"SubStorage1",
- ElementModes.ELEMENT_READ );
+ ElementModes.READ );
if ( xResultSubStorage == null )
{
m_aTestHelper.Error( "Can't open existing substorage!" );
return false;
}
- if ( !m_aTestHelper.checkStorageProperties( xResultSubStorage, "MediaType4", false, ElementModes.ELEMENT_READ ) )
+ if ( !m_aTestHelper.checkStorageProperties( xResultSubStorage, "MediaType4", false, ElementModes.READ ) )
return false;
if ( !m_aTestHelper.checkStream( xResultSubStorage, "SubStream1", "MediaType1", pBytes1 ) )