Test04.java (a740f2aa) Test04.java (a893be29)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 156 unchanged lines hidden (view full) ---

165 {
166 m_aTestHelper.Error( "Can't create storage based on temporary file!" );
167 return false;
168 }
169
170 if ( !m_aTestHelper.copyElementTo( xTempStorage, "SubStorage1", xTempFileStorage ) )
171 return false;
172
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 156 unchanged lines hidden (view full) ---

165 {
166 m_aTestHelper.Error( "Can't create storage based on temporary file!" );
167 return false;
168 }
169
170 if ( !m_aTestHelper.copyElementTo( xTempStorage, "SubStorage1", xTempFileStorage ) )
171 return false;
172
173 // if storage is not commited before disposing all the changes will be lost
173 // if storage is not committed before disposing all the changes will be lost
174 if ( !m_aTestHelper.commitStorage( xTempSubStorage2 ) )
175 return false;
176
177 // a storage must be disposed before moving/removing otherwise the access will be denied
178 if ( !m_aTestHelper.disposeStorage( xTempSubStorage2 ) )
179 return false;
180
181 if ( !m_aTestHelper.moveElementTo( xTempStorage, "SubStorage2", xTempFileStorage ) )

--- 148 unchanged lines hidden ---
174 if ( !m_aTestHelper.commitStorage( xTempSubStorage2 ) )
175 return false;
176
177 // a storage must be disposed before moving/removing otherwise the access will be denied
178 if ( !m_aTestHelper.disposeStorage( xTempSubStorage2 ) )
179 return false;
180
181 if ( !m_aTestHelper.moveElementTo( xTempStorage, "SubStorage2", xTempFileStorage ) )

--- 148 unchanged lines hidden ---