Test07.java (a740f2aa) Test07.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

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

129 ElementModes.WRITE,
130 aRelations2 ) )
131 return false;
132
133 // ==============================
134 // check cloning at current state
135 // ==============================
136
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

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

129 ElementModes.WRITE,
130 aRelations2 ) )
131 return false;
132
133 // ==============================
134 // check cloning at current state
135 // ==============================
136
137 // the new storage still was not commited so the clone must be empty
137 // the new storage still was not committed so the clone must be empty
138 XStorage xClonedSubStorage = m_aTestHelper.cloneSubStorage( m_xMSF, m_xStorageFactory, xTempStorage, "SubStorage1" );
139
140 if ( xClonedSubStorage == null )
141 {
142 m_aTestHelper.Error( "The result of clone is empty!" );
143 return false;
144 }
145

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

153 if ( !m_aTestHelper.checkStorageProperties( xClonedSubStorage,
154 true,
155 ElementModes.WRITE,
156 new StringPair[0][0] ) )
157 return false;
158
159 if ( xClonedNameAccess.hasElements() )
160 {
138 XStorage xClonedSubStorage = m_aTestHelper.cloneSubStorage( m_xMSF, m_xStorageFactory, xTempStorage, "SubStorage1" );
139
140 if ( xClonedSubStorage == null )
141 {
142 m_aTestHelper.Error( "The result of clone is empty!" );
143 return false;
144 }
145

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

153 if ( !m_aTestHelper.checkStorageProperties( xClonedSubStorage,
154 true,
155 ElementModes.WRITE,
156 new StringPair[0][0] ) )
157 return false;
158
159 if ( xClonedNameAccess.hasElements() )
160 {
161 m_aTestHelper.Error( "The new substorage still was not commited so it must be empty!" );
161 m_aTestHelper.Error( "The new substorage still was not committed so it must be empty!" );
162 return false;
163 }
164
165 if ( !m_aTestHelper.disposeStorage( xClonedSubStorage ) )
166 return false;
167
168 xClonedSubStorage = null;
169 xClonedNameAccess = null;

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

219 if ( xCloneOfRootNA == null )
220 {
221 m_aTestHelper.Error( "XNameAccess is not implemented by the root clone!" );
222 return false;
223 }
224
225 if ( xCloneOfRootNA.hasElements() )
226 {
162 return false;
163 }
164
165 if ( !m_aTestHelper.disposeStorage( xClonedSubStorage ) )
166 return false;
167
168 xClonedSubStorage = null;
169 xClonedNameAccess = null;

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

219 if ( xCloneOfRootNA == null )
220 {
221 m_aTestHelper.Error( "XNameAccess is not implemented by the root clone!" );
222 return false;
223 }
224
225 if ( xCloneOfRootNA.hasElements() )
226 {
227 m_aTestHelper.Error( "The root storage still was not commited so it's clone must be empty!" );
227 m_aTestHelper.Error( "The root storage still was not committed so it's clone must be empty!" );
228 return false;
229 }
230
231 if ( !m_aTestHelper.disposeStorage( xCloneOfRoot ) )
232 return false;
233
234 xCloneOfRoot = null;
235

--- 44 unchanged lines hidden ---
228 return false;
229 }
230
231 if ( !m_aTestHelper.disposeStorage( xCloneOfRoot ) )
232 return false;
233
234 xCloneOfRoot = null;
235

--- 44 unchanged lines hidden ---