Lines Matching refs:m_aTestHelper
46 TestHelper m_aTestHelper; field in Test04
52 m_aTestHelper = new TestHelper( aLogWriter, "Test04: " ); in Test04()
79 String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); in test()
82 m_aTestHelper.Error( "No valid temporary file was created!" ); in test()
88 XStorage xTempStorage = m_aTestHelper.createTempStorage( m_xMSF, m_xStorageFactory ); in test()
91 m_aTestHelper.Error( "Can't create temporary storage representation!" ); in test()
98 XStorage xTempSubStorage1 = m_aTestHelper.openSubStorage( xTempStorage, in test()
103 m_aTestHelper.Error( "Can't create substorage!" ); in test()
110 if ( !m_aTestHelper.WriteBytesToSubstream( xTempSubStorage1, in test()
119 XStorage xTempSubStorage2 = m_aTestHelper.openSubStorage( xTempStorage, in test()
124 m_aTestHelper.Error( "Can't create substorage!" ); in test()
131 if ( !m_aTestHelper.WriteBytesToSubstream( xTempSubStorage2, in test()
140 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempStorage, in test()
147 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempSubStorage1, in test()
154 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempSubStorage2, in test()
161 XStorage xTempFileStorage = m_aTestHelper.createStorageFromURL( m_xStorageFactory, in test()
166 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); in test()
170 if ( !m_aTestHelper.copyElementTo( xTempStorage, "SubStorage1", xTempFileStorage ) ) in test()
174 if ( !m_aTestHelper.commitStorage( xTempSubStorage2 ) ) in test()
178 if ( !m_aTestHelper.disposeStorage( xTempSubStorage2 ) ) in test()
181 if ( !m_aTestHelper.moveElementTo( xTempStorage, "SubStorage2", xTempFileStorage ) ) in test()
188 m_aTestHelper.Error( "SubStorage2 must be disposed already!" ); in test()
196 m_aTestHelper.Error( "Wrong exception in case of disposed storage, exception: " + e ); in test()
200 if ( !m_aTestHelper.copyElementTo( xTempSubStorage1, "SubStream1", xTempFileStorage ) ) in test()
203 if ( !m_aTestHelper.renameElement( xTempFileStorage, "SubStream1", "SubStream1_copy" ) ) in test()
206 if ( !m_aTestHelper.moveElementTo( xTempSubStorage1, "SubStream1", xTempFileStorage ) ) in test()
209 if ( !m_aTestHelper.commitStorage( xTempFileStorage ) ) in test()
213 …if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStor… in test()
221 XStorage xResStorage = m_aTestHelper.createStorageFromURL( m_xStorageFactory, in test()
227 m_aTestHelper.Error( "Can't reopen storage based on temporary file!" ); in test()
232 XStorage xResSubStorage1 = m_aTestHelper.openSubStorage( xResStorage, in test()
237 m_aTestHelper.Error( "Can't open existing substorage!" ); in test()
241 if ( !m_aTestHelper.checkStorageProperties( xResSubStorage1, in test()
249 XStorage xResSubStorage2 = m_aTestHelper.openSubStorage( xResStorage, in test()
254 m_aTestHelper.Error( "Can't open existing substorage!" ); in test()
258 if ( !m_aTestHelper.checkStorageProperties( xResSubStorage2, in test()
267 … if ( !m_aTestHelper.checkStream( xResStorage, "SubStream1", "MediaType1", pBytes1, aRelations1 ) ) in test()
270 …if ( !m_aTestHelper.checkStream( xResStorage, "SubStream1_copy", "MediaType1", pBytes1, aRelations… in test()
273 …if ( !m_aTestHelper.checkStream( xResSubStorage1, "SubStream1", "MediaType1", pBytes1, aRelations1… in test()
276 …if ( !m_aTestHelper.checkStream( xResSubStorage2, "SubStream2", "MediaType2", pBytes2, aRelations2… in test()
280 if ( !m_aTestHelper.disposeStorage( xResSubStorage2 ) ) in test()
284 if ( !m_aTestHelper.removeElement( xResStorage, "SubStorage2" ) ) in test()
291 m_aTestHelper.Error( "SubStorage2 must be removed already!" ); in test()
295 m_aTestHelper.Error( "Can't get access to root storage, exception: " + e ); in test()
303 m_aTestHelper.Error( "SubStorage2 must be disposed already!" ); in test()
311 m_aTestHelper.Error( "Wrong exception in case of disposed storage, exception: " + e ); in test()
316 if ( !m_aTestHelper.disposeStorage( xResStorage ) ) in test()
323 m_aTestHelper.Error( "Exception: " + e ); in test()