diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-19 14:12:37 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-19 14:12:37 +0100 |
commit | 5a7f6793ac227c348198ae5958db5951214ec8d2 (patch) | |
tree | 25610ad164b4f66d705aecf6ea6c3ee72809c7e3 /cppuhelper/test/testpropshlp.cxx | |
parent | 1fa55878d9a8e0ce48501ad82fb537dc9c29855a (diff) |
Move OSL_ENSURE(sal_False,...) to OSL_FAIL(...)
Diffstat (limited to 'cppuhelper/test/testpropshlp.cxx')
-rw-r--r-- | cppuhelper/test/testpropshlp.cxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/cppuhelper/test/testpropshlp.cxx b/cppuhelper/test/testpropshlp.cxx index de5624bc90b1..965159ffc637 100644 --- a/cppuhelper/test/testpropshlp.cxx +++ b/cppuhelper/test/testpropshlp.cxx @@ -240,7 +240,7 @@ void test_PropertyArrayHelper() try { a1.getPropertyByName( OUString( RTL_CONSTASCII_USTRINGPARAM("never exist") ) ); - OSL_ENSURE( sal_False, "exeption not thrown" ); + OSL_FAIL( "exeption not thrown" ); } catch( UnknownPropertyException & ) { @@ -483,7 +483,7 @@ public: { case PROPERTY_BOOL: { - OSL_ENSURE( sal_False , "PropertySetHelper: BOOL cannot change" ); + OSL_FAIL( "PropertySetHelper: BOOL cannot change" ); OSL_ENSURE( evt.PropertyName == OUString( RTL_CONSTASCII_USTRINGPARAM("BOOL") ), "PropertySetHelper: wrong name" ); } break; @@ -524,7 +524,7 @@ public: break; default: - OSL_ENSURE( sal_False, "XPropeSetHelper: invalid property handle" ); + OSL_FAIL( "XPropeSetHelper: invalid property handle" ); } nCurrent += 2; } @@ -541,7 +541,7 @@ public: { case PROPERTY_BOOL: { - OSL_ENSURE( sal_False , "PropertySetHelper: BOOL cannot change" ); + OSL_FAIL( "PropertySetHelper: BOOL cannot change" ); OSL_ENSURE( evt.PropertyName == OUString( RTL_CONSTASCII_USTRINGPARAM("BOOL") ), "PropertySetHelper: wrong name" ); } break; @@ -584,7 +584,7 @@ public: break; default: - OSL_ENSURE( sal_False, "XPropeSetHelper: invalid property handle" ); + OSL_FAIL( "XPropeSetHelper: invalid property handle" ); } nCurrent += 2; } @@ -604,7 +604,7 @@ public: { case PROPERTY_BOOL: { - OSL_ENSURE( sal_False, "PropertySetHelper: BOOL cannot change" ); + OSL_FAIL( "PropertySetHelper: BOOL cannot change" ); OSL_ENSURE( evt.PropertyName == OUString( RTL_CONSTASCII_USTRINGPARAM("BOOL") ), "PropertySetHelper: wrong name" ); } break; @@ -642,7 +642,7 @@ public: break; default: - OSL_ENSURE( sal_False, "XPropeSetHelper: invalid property handle" ); + OSL_FAIL( "XPropeSetHelper: invalid property handle" ); } nCurrent += 2; } @@ -840,7 +840,7 @@ void test_PropertySetHelper() try { xPS->addPropertyChangeListener( OUString( RTL_CONSTASCII_USTRINGPARAM("Does not exist") ), xPS_L ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( UnknownPropertyException & /*e*/ ) { @@ -850,7 +850,7 @@ void test_PropertySetHelper() try { xPS->addVetoableChangeListener( OUString( RTL_CONSTASCII_USTRINGPARAM("Does not exist") ), x2 ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( UnknownPropertyException & /*e*/ ) { @@ -890,7 +890,7 @@ void test_PropertySetHelper() Any aBool; aBool.setValue( &b , getCppuBooleanType() ); xPS->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("BOOL") ), aBool ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( PropertyVetoException & /*e*/ ) { @@ -904,7 +904,7 @@ void test_PropertySetHelper() aBool.setValue( &b , getCppuBooleanType() ); // BOOL i s0 pPS->setFastPropertyValue( PROPERTY_BOOL, aBool ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( PropertyVetoException & /*e*/ ) { @@ -917,7 +917,7 @@ void test_PropertySetHelper() Any aBool; aBool.setValue( &b , getCppuBooleanType() ); xPS->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Does not exist") ), aBool ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( UnknownPropertyException & /*e*/ ) { @@ -929,7 +929,7 @@ void test_PropertySetHelper() Any aBool; aBool.setValue( &b , getCppuBooleanType() ); pPS->setFastPropertyValue( 3, aBool ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( UnknownPropertyException & /*e*/ ) { @@ -940,7 +940,7 @@ void test_PropertySetHelper() { Any aBool; aBool = xPS->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("Does not exist") ) ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( UnknownPropertyException & /*e*/ ) { @@ -950,7 +950,7 @@ void test_PropertySetHelper() { Any aBool; aBool = ((XFastPropertySet *)pPS)->getFastPropertyValue( 3 ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( UnknownPropertyException & /*e*/ ) { @@ -961,7 +961,7 @@ void test_PropertySetHelper() { Any aBool; xPS->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("INT32") ), aBool ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( IllegalArgumentException & /*e*/ ) { @@ -971,7 +971,7 @@ void test_PropertySetHelper() { Any aBool; pPS->setFastPropertyValue( PROPERTY_INT32, aBool ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( IllegalArgumentException & /*e*/ ) { @@ -983,7 +983,7 @@ void test_PropertySetHelper() Any aINT32; aINT32 <<= (sal_Int32 ) 16; xPS->setPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM("INT16") ), aINT32 ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( IllegalArgumentException & /*e*/ ) { @@ -995,7 +995,7 @@ void test_PropertySetHelper() Any aINT32; aINT32 <<= (sal_Int32) 16; pPS->setFastPropertyValue( PROPERTY_INT16, aINT32 ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( IllegalArgumentException & /*e*/ ) { @@ -1088,7 +1088,7 @@ void test_PropertySetHelper() try { ((XFastPropertySet *)pPS)->setFastPropertyValue( PROPERTY_INT16, aValue ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch( PropertyVetoException & /*e*/ ) { @@ -1168,7 +1168,7 @@ void test_PropertySetHelper() aValues.getArray()[0] <<= (sal_Int16)44; aValues.getArray()[1] <<= (sal_Int16)100; pPS->setPropertyValues( szPN, aValues ); - OSL_ENSURE( sal_False, "PropertySetHelper: exeption not thrown" ); + OSL_FAIL( "PropertySetHelper: exeption not thrown" ); } catch ( PropertyVetoException & /*e*/ ) { |