Test08.java (ae15d43a) | Test08.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 --- 137 unchanged lines hidden (view full) --- 146 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); 147 if ( xTempFileStorage == null ) 148 { 149 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); 150 return false; 151 } 152 153 // copy xTempStorage to xTempFileStorage | 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 --- 137 unchanged lines hidden (view full) --- 146 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); 147 if ( xTempFileStorage == null ) 148 { 149 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); 150 return false; 151 } 152 153 // copy xTempStorage to xTempFileStorage |
154 // xTempFileStorage will be automatically commited | 154 // xTempFileStorage will be automatically committed |
155 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) ) 156 return false; 157 158 // dispose used storages to free resources 159 if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) ) 160 return false; 161 162 // ================================================ --- 72 unchanged lines hidden --- | 155 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) ) 156 return false; 157 158 // dispose used storages to free resources 159 if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) ) 160 return false; 161 162 // ================================================ --- 72 unchanged lines hidden --- |