velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1754151 [3/3] - in /velocity/engine/trunk: src/changes/ velocity-engine-core/src/main/java/org/apache/velocity/app/ velocity-engine-core/src/main/java/org/apache/velocity/runtime/ velocity-engine-core/src/main/java/org/apache/velocity/runt...
Date Tue, 26 Jul 2016 16:11:29 GMT
Added: velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/compare/test_conv_with_handler.cmp
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/compare/test_conv_with_handler.cmp?rev=1754151&view=auto
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/compare/test_conv_with_handler.cmp
(added)
+++ velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/compare/test_conv_with_handler.cmp
Tue Jul 26 16:11:28 2016
@@ -0,0 +1,638 @@
+A. bool-true Value java.lang.Boolean true
+  boolean ok: true
+  byte ok: 1
+  short ok: 1
+  int ok: 1
+  long ok: 1
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  Boolean ok: true
+  Byte ok: 1
+  Short ok: 1
+  Integer ok: 1
+  Long ok: 1
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: true
+  $target.objectEnum($value)
+  String ok: true
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+B. bool-false Value java.lang.Boolean false
+  boolean ok: false
+  byte ok: 0
+  short ok: 0
+  int ok: 0
+  long ok: 0
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  Boolean ok: false
+  Byte ok: 0
+  Short ok: 0
+  Integer ok: 0
+  Long ok: 0
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: false
+  $target.objectEnum($value)
+  String ok: false
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+C. byte-0 Value java.lang.Byte 0
+  boolean ok: false
+  byte ok: 0
+  short ok: 0
+  int ok: 0
+  long ok: 0
+  float ok: 0.0
+  double ok: 0.0
+  $target.integralChar($value)
+  Boolean ok: false
+  Byte ok: 0
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 0
+  Object ok: 0
+  $target.objectEnum($value)
+  String ok: 0
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+D. byte-1 Value java.lang.Byte 1
+  boolean ok: true
+  byte ok: 1
+  short ok: 1
+  int ok: 1
+  long ok: 1
+  float ok: 1.0
+  double ok: 1.0
+  $target.integralChar($value)
+  Boolean ok: true
+  Byte ok: 1
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 1
+  Object ok: 1
+  $target.objectEnum($value)
+  String ok: 1
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+E. short Value java.lang.Short 125
+  boolean ok: true
+  byte ok: 125
+  short ok: 125
+  int ok: 125
+  long ok: 125
+  float ok: 125.0
+  double ok: 125.0
+  $target.integralChar($value)
+  Boolean ok: true
+  Byte ok: 125
+  Short ok: 125
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 125
+  Object ok: 125
+  $target.objectEnum($value)
+  String ok: 125
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+F. int Value java.lang.Integer 24323
+  boolean ok: true
+  integralByte -> NumberFormatException: value out of range for byte type: 24323
+  short ok: 24323
+  int ok: 24323
+  long ok: 24323
+  float ok: 24323.0
+  double ok: 24323.0
+  $target.integralChar($value)
+  Boolean ok: true
+  objectByte -> NumberFormatException: value out of range for byte type: 24323
+  Short ok: 24323
+  Integer ok: 24323
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 24323
+  Object ok: 24323
+  $target.objectEnum($value)
+  String ok: 24323
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+G. long Value java.lang.Long 5235235
+  boolean ok: true
+  integralByte -> NumberFormatException: value out of range for byte type: 5235235
+  integralShort -> NumberFormatException: value out of range for short type: 5235235
+  int ok: 5235235
+  long ok: 5235235
+  float ok: 5235235.0
+  double ok: 5235235.0
+  $target.integralChar($value)
+  Boolean ok: true
+  objectByte -> NumberFormatException: value out of range for byte type: 5235235
+  objectShort -> NumberFormatException: value out of range for short type: 5235235
+  Integer ok: 5235235
+  Long ok: 5235235
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 5235235
+  Object ok: 5235235
+  $target.objectEnum($value)
+  String ok: 5235235
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+H. float Value java.lang.Float 34523.344
+  boolean ok: true
+  integralByte -> NumberFormatException: value out of range for byte type: 34523
+  integralShort -> NumberFormatException: value out of range for short type: 34523
+  int ok: 34523
+  long ok: 34523
+  float ok: 34523.344
+  double ok: 34523.34375
+  $target.integralChar($value)
+  Boolean ok: true
+  objectByte -> NumberFormatException: value out of range for byte type: 34523
+  objectShort -> NumberFormatException: value out of range for short type: 34523
+  Integer ok: 34523
+  Long ok: 34523
+  Float ok: 34523.344
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 34523.344
+  Object ok: 34523.344
+  $target.objectEnum($value)
+  String ok: 34523.344
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+I. double Value java.lang.Double 54235.3253
+  boolean ok: true
+  integralByte -> NumberFormatException: value out of range for byte type: 54235
+  integralShort -> NumberFormatException: value out of range for short type: 54235
+  int ok: 54235
+  long ok: 54235
+  float ok: 54235.324
+  double ok: 54235.3253
+  $target.integralChar($value)
+  Boolean ok: true
+  objectByte -> NumberFormatException: value out of range for byte type: 54235
+  objectShort -> NumberFormatException: value out of range for short type: 54235
+  Integer ok: 54235
+  Long ok: 54235
+  Float ok: 54235.324
+  Double ok: 54235.3253
+  $target.objectCharacter($value)
+  Number ok: 54235.3253
+  Object ok: 54235.3253
+  $target.objectEnum($value)
+  String ok: 54235.3253
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+J. char Value java.lang.Character @
+  boolean ok: true
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  char ok: @
+  Boolean ok: true
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  Character ok: @
+  $target.objectNumber($value)
+  Object ok: @
+  $target.objectEnum($value)
+  String ok: @
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+K. object Value org.apache.velocity.test.util.introspection.ConversionHandlerTestCase$Obj
instance of Obj
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: instance of Obj
+  $target.objectEnum($value)
+  String ok: instance of Obj
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+L. enum Value org.apache.velocity.test.util.introspection.ConversionHandlerTestCase$Obj$Color
GREEN
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: GREEN
+  Enum ok: GREEN
+  String ok: GREEN
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+M. string Value java.lang.String foo
+  boolean ok: false
+  integralByte -> NumberFormatException: For input string: "foo"
+  integralShort -> NumberFormatException: For input string: "foo"
+  integralInt -> NumberFormatException: For input string: "foo"
+  integralLong -> NumberFormatException: For input string: "foo"
+  integralFloat -> NumberFormatException: For input string: "foo"
+  integralDouble -> NumberFormatException: For input string: "foo"
+  $target.integralChar($value)
+  Boolean ok: false
+  objectByte -> NumberFormatException: For input string: "foo"
+  objectShort -> NumberFormatException: For input string: "foo"
+  objectInt -> NumberFormatException: For input string: "foo"
+  objectLong -> NumberFormatException: For input string: "foo"
+  objectFloat -> NumberFormatException: For input string: "foo"
+  objectDouble -> NumberFormatException: For input string: "foo"
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: foo
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.foo
+  String ok: foo
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+M. string-green Value java.lang.String green
+  boolean ok: false
+  integralByte -> NumberFormatException: For input string: "green"
+  integralShort -> NumberFormatException: For input string: "green"
+  integralInt -> NumberFormatException: For input string: "green"
+  integralLong -> NumberFormatException: For input string: "green"
+  integralFloat -> NumberFormatException: For input string: "green"
+  integralDouble -> NumberFormatException: For input string: "green"
+  $target.integralChar($value)
+  Boolean ok: false
+  objectByte -> NumberFormatException: For input string: "green"
+  objectShort -> NumberFormatException: For input string: "green"
+  objectInt -> NumberFormatException: For input string: "green"
+  objectLong -> NumberFormatException: For input string: "green"
+  objectFloat -> NumberFormatException: For input string: "green"
+  objectDouble -> NumberFormatException: For input string: "green"
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: green
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.green
+  String ok: green
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+N. string-empty Value java.lang.String 
+  boolean ok: false
+  integralByte -> NumberFormatException: For input string: ""
+  integralShort -> NumberFormatException: For input string: ""
+  integralInt -> NumberFormatException: For input string: ""
+  integralLong -> NumberFormatException: For input string: ""
+  integralFloat -> NumberFormatException: empty String
+  integralDouble -> NumberFormatException: empty String
+  $target.integralChar($value)
+  Boolean ok: false
+  objectByte -> NumberFormatException: For input string: ""
+  objectShort -> NumberFormatException: For input string: ""
+  objectInt -> NumberFormatException: For input string: ""
+  objectLong -> NumberFormatException: For input string: ""
+  objectFloat -> NumberFormatException: empty String
+  objectDouble -> NumberFormatException: empty String
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.
+  String ok: 
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+O. string-false Value java.lang.String false
+  boolean ok: false
+  integralByte -> NumberFormatException: For input string: "false"
+  integralShort -> NumberFormatException: For input string: "false"
+  integralInt -> NumberFormatException: For input string: "false"
+  integralLong -> NumberFormatException: For input string: "false"
+  integralFloat -> NumberFormatException: For input string: "false"
+  integralDouble -> NumberFormatException: For input string: "false"
+  $target.integralChar($value)
+  Boolean ok: false
+  objectByte -> NumberFormatException: For input string: "false"
+  objectShort -> NumberFormatException: For input string: "false"
+  objectInt -> NumberFormatException: For input string: "false"
+  objectLong -> NumberFormatException: For input string: "false"
+  objectFloat -> NumberFormatException: For input string: "false"
+  objectDouble -> NumberFormatException: For input string: "false"
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: false
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.false
+  String ok: false
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+P. string-true Value java.lang.String true
+  boolean ok: true
+  integralByte -> NumberFormatException: For input string: "true"
+  integralShort -> NumberFormatException: For input string: "true"
+  integralInt -> NumberFormatException: For input string: "true"
+  integralLong -> NumberFormatException: For input string: "true"
+  integralFloat -> NumberFormatException: For input string: "true"
+  integralDouble -> NumberFormatException: For input string: "true"
+  $target.integralChar($value)
+  Boolean ok: true
+  objectByte -> NumberFormatException: For input string: "true"
+  objectShort -> NumberFormatException: For input string: "true"
+  objectInt -> NumberFormatException: For input string: "true"
+  objectLong -> NumberFormatException: For input string: "true"
+  objectFloat -> NumberFormatException: For input string: "true"
+  objectDouble -> NumberFormatException: For input string: "true"
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: true
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.true
+  String ok: true
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+Q. string-zero Value java.lang.String 0
+  boolean ok: false
+  byte ok: 0
+  short ok: 0
+  int ok: 0
+  long ok: 0
+  float ok: 0.0
+  double ok: 0.0
+  $target.integralChar($value)
+  Boolean ok: false
+  Byte ok: 0
+  Short ok: 0
+  Integer ok: 0
+  Long ok: 0
+  Float ok: 0.0
+  Double ok: 0.0
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 0
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.0
+  String ok: 0
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+R. string-integral Value java.lang.String 123
+  boolean ok: false
+  byte ok: 123
+  short ok: 123
+  int ok: 123
+  long ok: 123
+  float ok: 123.0
+  double ok: 123.0
+  $target.integralChar($value)
+  Boolean ok: false
+  Byte ok: 123
+  Short ok: 123
+  Integer ok: 123
+  Long ok: 123
+  Float ok: 123.0
+  Double ok: 123.0
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 123
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.123
+  String ok: 123
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+S. string-big-integral Value java.lang.String 12345678
+  boolean ok: false
+  integralByte -> NumberFormatException: Value out of range. Value:"12345678" Radix:10
+  integralShort -> NumberFormatException: Value out of range. Value:"12345678" Radix:10
+  int ok: 12345678
+  long ok: 12345678
+  float ok: 1.2345678E7
+  double ok: 1.2345678E7
+  $target.integralChar($value)
+  Boolean ok: false
+  objectByte -> NumberFormatException: Value out of range. Value:"12345678" Radix:10
+  objectShort -> NumberFormatException: Value out of range. Value:"12345678" Radix:10
+  Integer ok: 12345678
+  Long ok: 12345678
+  Float ok: 1.2345678E7
+  Double ok: 1.2345678E7
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 12345678
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.12345678
+  String ok: 12345678
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+T. string-floating Value java.lang.String 123.345
+  boolean ok: false
+  integralByte -> NumberFormatException: For input string: "123.345"
+  integralShort -> NumberFormatException: For input string: "123.345"
+  integralInt -> NumberFormatException: For input string: "123.345"
+  integralLong -> NumberFormatException: For input string: "123.345"
+  float ok: 123.345
+  double ok: 123.345
+  $target.integralChar($value)
+  Boolean ok: false
+  objectByte -> NumberFormatException: For input string: "123.345"
+  objectShort -> NumberFormatException: For input string: "123.345"
+  objectInt -> NumberFormatException: For input string: "123.345"
+  objectLong -> NumberFormatException: For input string: "123.345"
+  Float ok: 123.345
+  Double ok: 123.345
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 123.345
+  objectEnum -> IllegalArgumentException: No enum constant org.apache.velocity.test.util.introspection.ConversionHandlerTestCase.Obj.Color.123.345
+  String ok: 123.345
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+U. null Value $value.class.name $value
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  Boolean ok: null
+  Byte ok: null
+  Short ok: null
+  Integer ok: null
+  Long ok: null
+  Float ok: null
+  Double ok: null
+  Character ok: null
+  Number ok: null
+  Object ok: null
+  Enum ok: null
+  String ok: null
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)

Added: velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/compare/test_conv_without_handler.cmp
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/compare/test_conv_without_handler.cmp?rev=1754151&view=auto
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/compare/test_conv_without_handler.cmp
(added)
+++ velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/compare/test_conv_without_handler.cmp
Tue Jul 26 16:11:28 2016
@@ -0,0 +1,638 @@
+A. bool-true Value java.lang.Boolean true
+  boolean ok: true
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  Boolean ok: true
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: true
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+B. bool-false Value java.lang.Boolean false
+  boolean ok: false
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  Boolean ok: false
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: false
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+C. byte-0 Value java.lang.Byte 0
+  $target.integralBoolean($value)
+  byte ok: 0
+  short ok: 0
+  int ok: 0
+  long ok: 0
+  float ok: 0.0
+  double ok: 0.0
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  Byte ok: 0
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 0
+  Object ok: 0
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+D. byte-1 Value java.lang.Byte 1
+  $target.integralBoolean($value)
+  byte ok: 1
+  short ok: 1
+  int ok: 1
+  long ok: 1
+  float ok: 1.0
+  double ok: 1.0
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  Byte ok: 1
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 1
+  Object ok: 1
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+E. short Value java.lang.Short 125
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  short ok: 125
+  int ok: 125
+  long ok: 125
+  float ok: 125.0
+  double ok: 125.0
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  Short ok: 125
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 125
+  Object ok: 125
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+F. int Value java.lang.Integer 24323
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  int ok: 24323
+  long ok: 24323
+  float ok: 24323.0
+  double ok: 24323.0
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  Integer ok: 24323
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 24323
+  Object ok: 24323
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+G. long Value java.lang.Long 5235235
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  long ok: 5235235
+  float ok: 5235235.0
+  double ok: 5235235.0
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  Long ok: 5235235
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 5235235
+  Object ok: 5235235
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+H. float Value java.lang.Float 34523.344
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  float ok: 34523.344
+  double ok: 34523.34375
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  Float ok: 34523.344
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  Number ok: 34523.344
+  Object ok: 34523.344
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+I. double Value java.lang.Double 54235.3253
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  double ok: 54235.3253
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  Double ok: 54235.3253
+  $target.objectCharacter($value)
+  Number ok: 54235.3253
+  Object ok: 54235.3253
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+J. char Value java.lang.Character @
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  char ok: @
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  Character ok: @
+  $target.objectNumber($value)
+  Object ok: @
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+K. object Value org.apache.velocity.test.util.introspection.ConversionHandlerTestCase$Obj
instance of Obj
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: instance of Obj
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+L. enum Value org.apache.velocity.test.util.introspection.ConversionHandlerTestCase$Obj$Color
GREEN
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: GREEN
+  Enum ok: GREEN
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+M. string Value java.lang.String foo
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: foo
+  $target.objectEnum($value)
+  String ok: foo
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+M. string-green Value java.lang.String green
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: green
+  $target.objectEnum($value)
+  String ok: green
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+N. string-empty Value java.lang.String 
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 
+  $target.objectEnum($value)
+  String ok: 
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+O. string-false Value java.lang.String false
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: false
+  $target.objectEnum($value)
+  String ok: false
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+P. string-true Value java.lang.String true
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: true
+  $target.objectEnum($value)
+  String ok: true
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+Q. string-zero Value java.lang.String 0
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 0
+  $target.objectEnum($value)
+  String ok: 0
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+R. string-integral Value java.lang.String 123
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 123
+  $target.objectEnum($value)
+  String ok: 123
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+S. string-big-integral Value java.lang.String 12345678
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 12345678
+  $target.objectEnum($value)
+  String ok: 12345678
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+T. string-floating Value java.lang.String 123.345
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  Object ok: 123.345
+  $target.objectEnum($value)
+  String ok: 123.345
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+U. null Value $value.class.name $value
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  Boolean ok: null
+  Byte ok: null
+  Short ok: null
+  Integer ok: null
+  Long ok: null
+  Float ok: null
+  Double ok: null
+  Character ok: null
+  Number ok: null
+  Object ok: null
+  Enum ok: null
+  String ok: null
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)

Added: velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/matrix.vhtml
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/matrix.vhtml?rev=1754151&view=auto
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/matrix.vhtml
(added)
+++ velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/matrix.vhtml
Tue Jul 26 16:11:28 2016
@@ -0,0 +1,58 @@
+<html>
+  <head>
+    <style type="text/css">
+    table
+    {
+        border: solid 1px black;
+        border-collapse: collapse;
+    }
+	td, th
+    {
+        border: solid 1px black;
+    }
+
+    </style>
+  </head>
+  <body>
+    <table>
+      <thead>
+        <tr>
+          <th>
+            strict<br/>
+            implicit<br/>
+            explicit
+          </th>
+#foreach($col in $types)          
+          <th>$col</th>
+#end
+          <th>null</th>
+        </tr>
+#foreach($row in $types)          
+        <tr>
+          <th>formal: $row</th>
+  #foreach($col in $types)
+          <td>
+            $introspect.isStrictlyConvertible($row, $col)<br/>
+            $introspect.isImplicitlyConvertible($row, $col)<br/>
+            $introspect.isExplicitlyConvertible($row, $col)
+          </td>
+  #end
+  #if($row.isPrimitive())          
+          <td>&nbsp;</td>
+  #else
+          <td>
+            $introspect.isStrictlyConvertible($row, $null)<br/>
+            $introspect.isImplicitlyConvertible($row, $null)<br/>
+            $introspect.isExplicitlyConvertible($row, $null)
+          </td>
+  #end
+        </tr>
+#end        
+      </thead>
+      <tbody>
+      </tbody>
+    </table>
+  </body>
+</html>
+
+    

Added: velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/test_conv.vtl
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/test_conv.vtl?rev=1754151&view=auto
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/test_conv.vtl
(added)
+++ velocity/engine/trunk/velocity-engine-core/src/test/resources/conversion/test_conv.vtl
Tue Jul 26 16:11:28 2016
@@ -0,0 +1,32 @@
+#foreach($key in $map.keySet())##
+#set($value = $map[$key])##
+$key Value $value.class.name $value
+  $target.integralBoolean($value)
+  $target.integralByte($value)
+  $target.integralShort($value)
+  $target.integralInt($value)
+  $target.integralLong($value)
+  $target.integralFloat($value)
+  $target.integralDouble($value)
+  $target.integralChar($value)
+  $target.objectBoolean($value)
+  $target.objectByte($value)
+  $target.objectShort($value)
+  $target.objectInt($value)
+  $target.objectLong($value)
+  $target.objectFloat($value)
+  $target.objectDouble($value)
+  $target.objectCharacter($value)
+  $target.objectNumber($value)
+  $target.objectObject($value)
+  $target.objectEnum($value)
+  $target.objectString($value)
+  $target.valueOfBoolean($value)
+  $target.valueOfShort($value)
+  $target.valueOfByte($value)
+  $target.valueOfInt($value)
+  $target.valueOfLong($value)
+  $target.valueOfFloat($value)
+  $target.valueOfDouble($value)
+  $target.valueOfString($value)
+#end##
\ No newline at end of file




Mime
View raw message