Undoing this diff results in the following failure:
```
JavaBeanSchemaTest.java:158: error: reference to assertEquals is ambiguous
    assertEquals((byte) 1, nestedRow.getByte("aByte"));
    ^
  both method assertEquals(long,long) in Assert and method 
assertEquals(Object,Object) in Assert match
```

@amaliujia Your suggestion results in the following failure:
```
JavaBeanSchemaTest.java:158: error: incompatible types: int cannot be converted 
to Byte
    assertEquals((Byte) 1, (Byte) nestedRow.getByte("aByte"));
```

@akedin Your suggestion results in the following failure:
```
    assertEquals(Byte.valueOf(1), nestedRow.getByte("aByte"));
                     ^
    method Byte.valueOf(byte) is not applicable
      (argument mismatch; possible lossy conversion from int to byte)
    method Byte.valueOf(String) is not applicable
      (argument mismatch; int cannot be converted to String)
```
Using `assertTrue` is incorrect because it does not print the values on 
failure. I'm happy to change the syntax, but none of these options work.

[ Full content available at: https://github.com/apache/beam/pull/6383 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to