Test18.java (a740f2aa) | Test18.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 --- 112 unchanged lines hidden (view full) --- 121 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); 122 if ( xTempFileStorage == null ) 123 { 124 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); 125 return false; 126 } 127 128 // 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 --- 112 unchanged lines hidden (view full) --- 121 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); 122 if ( xTempFileStorage == null ) 123 { 124 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); 125 return false; 126 } 127 128 // copy xTempStorage to xTempFileStorage |
129 // xTempFileStorage will be automatically commited | 129 // xTempFileStorage will be automatically committed |
130 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) ) 131 return false; 132 133 // dispose used storages to free resources 134 if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) ) 135 return false; 136 137 // ================================================ --- 56 unchanged lines hidden --- | 130 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) ) 131 return false; 132 133 // dispose used storages to free resources 134 if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) ) 135 return false; 136 137 // ================================================ --- 56 unchanged lines hidden --- |