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

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

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

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

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

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

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

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

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

--- 89 unchanged lines hidden ---
143 return false;
144 }
145
146 if ( !m_aTestHelper.disposeStorage( xClonedSubStorage ) )
147 return false;
148
149 xClonedSubStorage = null;
150 xClonedNameAccess = null;

--- 89 unchanged lines hidden ---