Test07.java (ae15d43a) | 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 --- 82 unchanged lines hidden (view full) --- 91 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); 92 if ( xTempFileStorage == null ) 93 { 94 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); 95 return false; 96 } 97 98 // 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 --- 82 unchanged lines hidden (view full) --- 91 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); 92 if ( xTempFileStorage == null ) 93 { 94 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); 95 return false; 96 } 97 98 // copy xTempStorage to xTempFileStorage |
99 // xTempFileStorage will be automatically commited | 99 // xTempFileStorage will be automatically committed |
100 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) ) 101 return false; 102 103 // dispose used storages to free resources 104 if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) ) 105 return false; 106 107 // ================================================ --- 51 unchanged lines hidden --- | 100 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) ) 101 return false; 102 103 // dispose used storages to free resources 104 if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) ) 105 return false; 106 107 // ================================================ --- 51 unchanged lines hidden --- |