test_class.file: flink-core/src/test/java/org/apache/flink/types/JavaToValueConverterTest.java
test_class.identifier: JavaToValueConverterTest
test_case.body: @Test
  	public void testValueToJavaConversion() {
  		try {
  			assertNull(JavaToValueConverter.convertValueType(null));
  			
  			assertEquals("123Test", JavaToValueConverter.convertValueType(new StringValue("123Test")));
  			assertEquals((byte) 44, JavaToValueConverter.convertValueType(new ByteValue((byte) 44)));
  			assertEquals((short) 10000, JavaToValueConverter.convertValueType(new ShortValue((short) 10000)));
  			assertEquals(3567564, JavaToValueConverter.convertValueType(new IntValue(3567564)));
  			assertEquals(767692734L, JavaToValueConverter.convertValueType(new LongValue(767692734)));
  			assertEquals(17.5f, JavaToValueConverter.convertValueType(new FloatValue(17.5f)));
  			assertEquals(3.1415926, JavaToValueConverter.convertValueType(new DoubleValue(3.1415926)));
  			assertEquals(true, JavaToValueConverter.convertValueType(new BooleanValue(true)));
  			assertEquals('@', JavaToValueConverter.convertValueType(new CharValue('@')));
  			
  			try {
  				JavaToValueConverter.convertValueType(new MyValue());
  				fail("Accepted invalid type.");
  			} catch (IllegalArgumentException e) {
  				// expected
  			}
  		}
  		catch (Exception e) {
  			e.printStackTrace();
  			fail(e.getMessage());
  		}
  	}
test_case.class_method_signature: JavaToValueConverterTest.testValueToJavaConversion()
test_case.full_signature: @Test public void testValueToJavaConversion()
test_case.identifier: testValueToJavaConversion
test_case.invocations: assertNull convertValueType assertEquals convertValueType assertEquals convertValueType assertEquals convertValueType assertEquals convertValueType assertEquals convertValueType assertEquals convertValueType assertEquals convertValueType assertEquals convertValueType assertEquals convertValueType convertValueType fail printStackTrace fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValueToJavaConversion()
focal_class.file: flink-core/src/main/java/org/apache/flink/types/JavaToValueConverter.java
focal_class.identifier: JavaToValueConverter
focal_class.class_method_signature: JavaToValueConverter.convertBoxedJavaType(Object boxed)
focal_class.full_signature: public static Value convertBoxedJavaType(Object boxed)
focal_class.identifier: convertBoxedJavaType
focal_class.modifiers: public static
focal_class.parameters: (Object boxed)
focal_class.return: Value
focal_class.signature: Value convertBoxedJavaType(Object boxed)
focal_class.class_method_signature: JavaToValueConverter.convertValueType(Value value)
focal_class.full_signature: public static Object convertValueType(Value value)
focal_class.identifier: convertValueType
focal_class.modifiers: public static
focal_class.parameters: (Value value)
focal_class.return: Object
focal_class.signature: Object convertValueType(Value value)
focal_method.body: public static Object convertValueType(Value value) {
  		if (value == null) {
  			return null;
  		}
  		
  		if (value instanceof StringValue) {
  			return ((StringValue) value).getValue();
  		}
  		else if (value instanceof IntValue) {
  			return ((IntValue) value).getValue();
  		}
  		else if (value instanceof  LongValue) {
  			return ((LongValue) value).getValue();
  		}
  		else if (value instanceof DoubleValue) {
  			return ((DoubleValue) value).getValue();
  		}
  		else if (value instanceof FloatValue) {
  			return ((FloatValue) value).getValue();
  		}
  		else if (value instanceof BooleanValue) {
  			return ((BooleanValue) value).getValue();
  		}
  		else if (value instanceof ByteValue) {
  			return ((ByteValue) value).getValue();
  		}
  		else if (value instanceof ShortValue) {
  			return ((ShortValue) value).getValue();
  		}
  		else if (value instanceof CharValue) {
  			return ((CharValue) value).getValue();
  		}
  		else {
  			throw new IllegalArgumentException("Object is no primitive Java type.");
  		}
  	}
focal_method.class_method_signature: JavaToValueConverter.convertValueType(Value value)
focal_method.full_signature: public static Object convertValueType(Value value)
focal_method.identifier: convertValueType
focal_method.invocations: getValue getValue getValue getValue getValue getValue getValue getValue getValue
focal_method.modifiers: public static
focal_method.parameters: (Value value)
focal_method.return: Object
focal_method.signature: Object convertValueType(Value value)