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

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

114 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage );
115 if ( xTempFileStorage == null )
116 {
117 m_aTestHelper.Error( "Can't create storage based on temporary file!" );
118 return false;
119 }
120
121 // 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

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

114 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage );
115 if ( xTempFileStorage == null )
116 {
117 m_aTestHelper.Error( "Can't create storage based on temporary file!" );
118 return false;
119 }
120
121 // copy xTempStorage to xTempFileStorage
122 // xTempFileStorage will be automatically commited
122 // xTempFileStorage will be automatically committed
123 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) )
124 return false;
125
126 // dispose used storages to free resources
127 if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) )
128 return false;
129
130 // ================================================

--- 50 unchanged lines hidden ---
123 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) )
124 return false;
125
126 // dispose used storages to free resources
127 if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) )
128 return false;
129
130 // ================================================

--- 50 unchanged lines hidden ---