Lines Matching refs:assertTrue

81         assertTrue("", b == aBool.booleanValue());  in test_toBoolean()
83 assertTrue("", b == ((Boolean)anyBool.getObject()).booleanValue()); in test_toBoolean()
138 assertTrue("", b == aChar.charValue()); in test_toChar()
140 assertTrue("", b == ((Character)anyChar.getObject()).charValue()); in test_toChar()
195 assertTrue("", val == aByte.byteValue()); in test_toByte()
197 assertTrue("", val == ((Byte)anyByte.getObject()).byteValue()); in test_toByte()
248 assertTrue("", sh == aByte.byteValue()); in test_toShort()
250 assertTrue("", sh == aShort.shortValue()); in test_toShort()
252 assertTrue("", sh == ((Byte)anyByte.getObject()).byteValue()); in test_toShort()
254 assertTrue("", sh == ((Short) anyShort.getObject()).shortValue()); in test_toShort()
256 assertTrue("", 5 == AnyConverter.toUnsignedShort( a )); in test_toShort()
315 assertTrue("", val == aByte.byteValue()); in test_toInt()
317 assertTrue("", val == aShort.shortValue()); in test_toInt()
319 assertTrue("", val == aInt.intValue()); in test_toInt()
321 assertTrue("", val == ((Byte)anyByte.getObject()).byteValue()); in test_toInt()
323 assertTrue("", val == ((Short) anyShort.getObject()).shortValue()); in test_toInt()
325 assertTrue("", val == ((Integer) anyInt.getObject()).intValue()); in test_toInt()
327 assertTrue("", 5 == AnyConverter.toInt(a)); in test_toInt()
328 assertTrue("", 5 == AnyConverter.toUnsignedInt(a)); in test_toInt()
330 assertTrue("", 5 == AnyConverter.toUnsignedInt(a)); in test_toInt()
383 assertTrue("", val == aByte.byteValue()); in test_toLong()
385 assertTrue("", val == aShort.shortValue()); in test_toLong()
387 assertTrue("", val == aInt.intValue()); in test_toLong()
389 assertTrue("", val == aLong.longValue()); in test_toLong()
391 assertTrue("", val == ((Byte)anyByte.getObject()).byteValue()); in test_toLong()
393 assertTrue("", val == ((Short) anyShort.getObject()).shortValue()); in test_toLong()
395 assertTrue("", val == ((Integer) anyInt.getObject()).intValue()); in test_toLong()
397 assertTrue("", val == ((Long) anyLong.getObject()).longValue()); in test_toLong()
399 assertTrue("", 5 == AnyConverter.toLong(a)); in test_toLong()
400 assertTrue("", 5 == AnyConverter.toUnsignedLong(a)); in test_toLong()
402 assertTrue("", 5 == AnyConverter.toUnsignedLong(a)); in test_toLong()
403 assertTrue("", 5 == AnyConverter.toLong(a)); in test_toLong()
405 assertTrue("", 5 == AnyConverter.toUnsignedLong(a)); in test_toLong()
456 assertTrue("", val == aByte.byteValue()); // 111 = 111.0 in test_toFloat()
458 assertTrue("", val == ((Byte)anyByte.getObject()).byteValue()); in test_toFloat()
460 assertTrue("", val == aShort.shortValue()); //11111 = 11111.0 in test_toFloat()
462 assertTrue("", val == ((Short) anyShort.getObject()).shortValue()); in test_toFloat()
464 assertTrue("", val == aFloat.floatValue()); in test_toFloat()
466 assertTrue("", val == ((Float) anyFloat.getObject()).floatValue()); in test_toFloat()
513 assertTrue("", val == aByte.byteValue()); // 111 = 111.0 in test_toDouble()
515 assertTrue("", val == ((Byte)anyByte.getObject()).byteValue()); in test_toDouble()
517 assertTrue("", val == aShort.shortValue()); //11111 = 11111.0 in test_toDouble()
519 assertTrue("", val == ((Short) anyShort.getObject()).shortValue()); in test_toDouble()
521 assertTrue("", val == aInt.intValue()); in test_toDouble()
523 assertTrue("", val == ((Integer) anyInt.getObject()).intValue()); in test_toDouble()
525 assertTrue("", val == aFloat.floatValue()); in test_toDouble()
528 assertTrue("", val <= (float1 + 0.1) || val >= (float1 - 0.1)); in test_toDouble()
530 assertTrue("", val == aDouble.doubleValue()); in test_toDouble()
532 assertTrue("", val == ((Double) anyDouble.getObject()).doubleValue()); in test_toDouble()
572 assertTrue("", UnoRuntime.areSame(val, aObj)); in test_toObject()
575 assertTrue("", val == null); in test_toObject()
583 assertTrue("", in test_toObject()
587 assertTrue("", in test_toObject()
598 assertTrue("", in test_toObject()
602 assertTrue("", in test_toObject()
628 assertTrue("", aStr.equals(val)); in test_toString()
630 assertTrue("", ((String)anyStr.getObject()).equals(val)); in test_toString()
685 assertTrue("", val == aType); in test_toType()
687 assertTrue("", val == anyType.getObject()); in test_toType()
742 assertTrue("", val == arByte); in test_toArray()
744 assertTrue("", val == anyArByte.getObject()); in test_toArray()
795 assertTrue("", AnyConverter.isBoolean(aBool)); in test_isBoolean()
796 assertTrue("", AnyConverter.isBoolean(anyBool)); in test_isBoolean()
797 assertTrue("", !AnyConverter.isBoolean(aChar)); in test_isBoolean()
802 assertTrue("", AnyConverter.isChar(aChar)); in test_isChar()
803 assertTrue("", AnyConverter.isChar(anyChar)); in test_isChar()
804 assertTrue("", !AnyConverter.isChar(aBool)); in test_isChar()
809 assertTrue("", AnyConverter.isByte(aByte)); in test_isByte()
810 assertTrue("", AnyConverter.isByte(anyByte)); in test_isByte()
811 assertTrue("", !AnyConverter.isByte(aBool)); in test_isByte()
816 assertTrue("", AnyConverter.isShort(aShort)); in test_isShort()
817 assertTrue("", AnyConverter.isShort(anyShort)); in test_isShort()
818 assertTrue("", Type.SHORT.equals(AnyConverter.getType(anyShort))); in test_isShort()
820 assertTrue("", Type.UNSIGNED_SHORT.equals(AnyConverter.getType(a))); in test_isShort()
821 assertTrue("", !AnyConverter.isShort(a)); in test_isShort()
822 assertTrue("", !Type.SHORT.equals(AnyConverter.getType(a))); in test_isShort()
823 assertTrue("", !AnyConverter.isShort(aBool)); in test_isShort()
828 assertTrue("", AnyConverter.isInt(aInt)); in test_isInt()
829 assertTrue("", AnyConverter.isInt(anyInt)); in test_isInt()
830 assertTrue("", Type.LONG.equals(AnyConverter.getType(anyInt))); in test_isInt()
832 assertTrue("", Type.UNSIGNED_LONG.equals(AnyConverter.getType(a))); in test_isInt()
833 assertTrue("", !AnyConverter.isInt(a)); in test_isInt()
834 assertTrue("", !Type.LONG.equals(AnyConverter.getType(a))); in test_isInt()
835 assertTrue("", !AnyConverter.isInt(aBool)); in test_isInt()
840 assertTrue("", AnyConverter.isLong(aLong)); in test_isLong()
841 assertTrue("", AnyConverter.isLong(anyLong)); in test_isLong()
842 assertTrue("", Type.HYPER.equals(AnyConverter.getType(anyLong))); in test_isLong()
844 assertTrue("", Type.UNSIGNED_HYPER.equals( AnyConverter.getType(a) )); in test_isLong()
845 assertTrue("", !AnyConverter.isLong(a)); in test_isLong()
846 assertTrue("", !Type.HYPER.equals( AnyConverter.getType(a) )); in test_isLong()
847 assertTrue("", !AnyConverter.isLong(aBool)); in test_isLong()
852 assertTrue("", AnyConverter.isFloat(aFloat)); in test_isFloat()
853 assertTrue("", AnyConverter.isFloat(anyFloat)); in test_isFloat()
854 assertTrue("", !AnyConverter.isFloat(aDouble)); in test_isFloat()
859 assertTrue("", AnyConverter.isDouble(aDouble)); in test_isDouble()
860 assertTrue("", AnyConverter.isDouble(anyDouble)); in test_isDouble()
861 assertTrue("", !AnyConverter.isDouble(aFloat)); in test_isDouble()
866 assertTrue("", AnyConverter.isObject(aObj)); in test_isObject()
867 assertTrue("", AnyConverter.isObject( new Any( XInterface.class, null))); in test_isObject()
868 assertTrue("", !AnyConverter.isObject(new Object())); in test_isObject()
873 assertTrue("", AnyConverter.isString(aStr)); in test_isString()
874 assertTrue("", AnyConverter.isString(anyStr)); in test_isString()
875 assertTrue("", !AnyConverter.isString(new Object())); in test_isString()
880 assertTrue("", AnyConverter.isType(aType)); in test_isType()
881 assertTrue("", AnyConverter.isType(anyType)); in test_isType()
882 assertTrue("", !AnyConverter.isType(new Object())); in test_isType()
887 assertTrue("", AnyConverter.isArray(arByte)); in test_isArray()
888 assertTrue("", AnyConverter.isArray(anyArByte)); in test_isArray()
889 assertTrue("", !AnyConverter.isArray(new Object())); in test_isArray()
894 assertTrue("", AnyConverter.isVoid(anyVoid)); in test_isVoid()
895 assertTrue("", !AnyConverter.isVoid(new Object())); in test_isVoid()