Test09.java (ae15d43a) | Test09.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 --- 79 unchanged lines hidden (view full) --- 88 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); 89 if ( xTempFileStorage == null ) 90 { 91 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); 92 return false; 93 } 94 95 // 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 --- 79 unchanged lines hidden (view full) --- 88 XStorage xTempFileStorage = (XStorage)UnoRuntime.queryInterface( XStorage.class, oTempFileStorage ); 89 if ( xTempFileStorage == null ) 90 { 91 m_aTestHelper.Error( "Can't create storage based on temporary file!" ); 92 return false; 93 } 94 95 // copy xTempStorage to xTempFileStorage |
96 // xTempFileStorage will be automatically commited | 96 // xTempFileStorage will be automatically committed |
97 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) ) 98 return false; 99 100 // change password of the substream of new storage based on file 101 int nResult = m_aTestHelper.ChangeStreamPass( xTempFileStorage, "SubStream1", pPass1, pPass2 ); 102 if ( nResult == 0 ) 103 return false; // test failed 104 else if ( nResult == -1 ) --- 40 unchanged lines hidden --- | 97 if ( !m_aTestHelper.copyStorage( xTempStorage, xTempFileStorage ) ) 98 return false; 99 100 // change password of the substream of new storage based on file 101 int nResult = m_aTestHelper.ChangeStreamPass( xTempFileStorage, "SubStream1", pPass1, pPass2 ); 102 if ( nResult == 0 ) 103 return false; // test failed 104 else if ( nResult == -1 ) --- 40 unchanged lines hidden --- |