Lines Matching refs:m_aTestHelper
44 TestHelper m_aTestHelper; field in Test04
50 m_aTestHelper = new TestHelper( "Test04: " ); in Test04()
57 String sTempFileURL = m_aTestHelper.CreateTempFile( m_xMSF ); in test()
60 m_aTestHelper.Error( "No valid temporary file was created!" ); in test()
70 m_aTestHelper.Error( "Can't create temporary storage representation!" ); in test()
77 XStorage xTempSubStorage1 = m_aTestHelper.openSubStorage( xTempStorage, in test()
82 m_aTestHelper.Error( "Can't create substorage!" ); in test()
89 …if ( !m_aTestHelper.WriteBytesToSubstream( xTempSubStorage1, "SubStream1", "MediaType1", true, pBy… in test()
93 XStorage xTempSubStorage2 = m_aTestHelper.openSubStorage( xTempStorage, in test()
98 m_aTestHelper.Error( "Can't create substorage!" ); in test()
105 …if ( !m_aTestHelper.WriteBytesToSubstream( xTempSubStorage2, "SubStream2", "MediaType2", false, pB… in test()
109 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempStorage, in test()
116 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempSubStorage1, in test()
123 if ( !m_aTestHelper.setStorageTypeAndCheckProps( xTempSubStorage2, in test()
138 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); in test()
142 if ( !m_aTestHelper.copyElementTo( xTempStorage, "SubStorage1", xTempFileStorage ) ) in test()
146 if ( !m_aTestHelper.commitStorage( xTempSubStorage2 ) ) in test()
150 if ( !m_aTestHelper.disposeStorage( xTempSubStorage2 ) ) in test()
153 if ( !m_aTestHelper.moveElementTo( xTempStorage, "SubStorage2", xTempFileStorage ) ) in test()
160 m_aTestHelper.Error( "SubStorage2 must be disposed already!" ); in test()
168 m_aTestHelper.Error( "Wrong exception in case of disposed storage, exception: " + e ); in test()
172 if ( !m_aTestHelper.copyElementTo( xTempSubStorage1, "SubStream1", xTempFileStorage ) ) in test()
175 if ( !m_aTestHelper.renameElement( xTempFileStorage, "SubStream1", "SubStream1_copy" ) ) in test()
178 if ( !m_aTestHelper.moveElementTo( xTempSubStorage1, "SubStream1", xTempFileStorage ) ) in test()
181 if ( !m_aTestHelper.commitStorage( xTempFileStorage ) ) in test()
185 …if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStor… in test()
198 m_aTestHelper.Error( "Can't reopen storage based on temporary file!" ); in test()
203 XStorage xResSubStorage1 = m_aTestHelper.openSubStorage( xResStorage, in test()
208 m_aTestHelper.Error( "Can't open existing substorage!" ); in test()
212 …if ( !m_aTestHelper.checkStorageProperties( xResSubStorage1, "MediaType4", false, ElementModes.ELE… in test()
217 XStorage xResSubStorage2 = m_aTestHelper.openSubStorage( xResStorage, in test()
222 m_aTestHelper.Error( "Can't open existing substorage!" ); in test()
226 …if ( !m_aTestHelper.checkStorageProperties( xResSubStorage2, "MediaType5", false, ElementModes.ELE… in test()
232 if ( !m_aTestHelper.checkStream( xResStorage, "SubStream1", "MediaType1", pBytes1 ) ) in test()
235 if ( !m_aTestHelper.checkStream( xResStorage, "SubStream1_copy", "MediaType1", pBytes1 ) ) in test()
238 if ( !m_aTestHelper.checkStream( xResSubStorage1, "SubStream1", "MediaType1", pBytes1 ) ) in test()
241 if ( !m_aTestHelper.checkStream( xResSubStorage2, "SubStream2", "MediaType2", pBytes2 ) ) in test()
245 if ( !m_aTestHelper.disposeStorage( xResSubStorage2 ) ) in test()
249 if ( !m_aTestHelper.removeElement( xResStorage, "SubStorage2" ) ) in test()
256 m_aTestHelper.Error( "SubStorage2 must be removed already!" ); in test()
260 m_aTestHelper.Error( "Can't get access to root storage, exception: " + e ); in test()
268 m_aTestHelper.Error( "SubStorage2 must be disposed already!" ); in test()
276 m_aTestHelper.Error( "Wrong exception in case of disposed storage, exception: " + e ); in test()
281 if ( !m_aTestHelper.disposeStorage( xResStorage ) ) in test()
288 m_aTestHelper.Error( "Exception: " + e ); in test()