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

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

111 false,
112 ElementModes.WRITE ) )
113 return false;
114
115 // ==============================
116 // check cloning at current state
117 // ==============================
118
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

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

111 false,
112 ElementModes.WRITE ) )
113 return false;
114
115 // ==============================
116 // check cloning at current state
117 // ==============================
118
119 // the new storage still was not commited so the clone must be empty
119 // the new storage still was not committed so the clone must be empty
120 XStorage xClonedSubStorage = m_aTestHelper.cloneSubStorage( m_xStorageFactory, xTempStorage, "SubStorage1" );
121
122 if ( xClonedSubStorage == null )
123 {
124 m_aTestHelper.Error( "The result of clone is empty!" );
125 return false;
126 }
127

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

132 return false;
133 }
134
135 if ( !m_aTestHelper.checkStorageProperties( xClonedSubStorage, "", true, ElementModes.WRITE ) )
136 return false;
137
138 if ( xClonedNameAccess.hasElements() )
139 {
120 XStorage xClonedSubStorage = m_aTestHelper.cloneSubStorage( m_xStorageFactory, xTempStorage, "SubStorage1" );
121
122 if ( xClonedSubStorage == null )
123 {
124 m_aTestHelper.Error( "The result of clone is empty!" );
125 return false;
126 }
127

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

132 return false;
133 }
134
135 if ( !m_aTestHelper.checkStorageProperties( xClonedSubStorage, "", true, ElementModes.WRITE ) )
136 return false;
137
138 if ( xClonedNameAccess.hasElements() )
139 {
140 m_aTestHelper.Error( "The new substorage still was not commited so it must be empty!" );
140 m_aTestHelper.Error( "The new substorage still was not committed so it must be empty!" );
141 return false;
142 }
143
144 if ( !m_aTestHelper.disposeStorage( xClonedSubStorage ) )
145 return false;
146
147 xClonedSubStorage = null;
148 xClonedNameAccess = null;

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

197 if ( xCloneOfRootNA == null )
198 {
199 m_aTestHelper.Error( "XNameAccess is not implemented by the root clone!" );
200 return false;
201 }
202
203 if ( xCloneOfRootNA.hasElements() )
204 {
141 return false;
142 }
143
144 if ( !m_aTestHelper.disposeStorage( xClonedSubStorage ) )
145 return false;
146
147 xClonedSubStorage = null;
148 xClonedNameAccess = null;

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

197 if ( xCloneOfRootNA == null )
198 {
199 m_aTestHelper.Error( "XNameAccess is not implemented by the root clone!" );
200 return false;
201 }
202
203 if ( xCloneOfRootNA.hasElements() )
204 {
205 m_aTestHelper.Error( "The root storage still was not commited so it's clone must be empty!" );
205 m_aTestHelper.Error( "The root storage still was not committed so it's clone must be empty!" );
206 return false;
207 }
208
209 if ( !m_aTestHelper.disposeStorage( xCloneOfRoot ) )
210 return false;
211
212 xCloneOfRoot = null;
213

--- 40 unchanged lines hidden ---
206 return false;
207 }
208
209 if ( !m_aTestHelper.disposeStorage( xCloneOfRoot ) )
210 return false;
211
212 xCloneOfRoot = null;
213

--- 40 unchanged lines hidden ---