incorrect code generated for Byte values
Status: Beta
Brought to you by:
kobit
The test code generated for methods that have Byte
args doesn't compile. It attemps to cast an int value to a
Byte. Example:
<code>
/**
* Method for testing how works original method:
* java.lang.Byte getActionCd()
* from tested class
*/
public void testGetActionCd() {
varCscPassLoadVO.setActionCd((java.lang.Byte)-
128);
assertEquals((java.lang.Byte)-128,
varCscPassLoadVO.getActionCd());
varCscPassLoadVO.setActionCd((java.lang.Byte)-1);
</code>
I fixed this by modifying CodeHints.java to add a
TEST_BYTE_CLASS_VALUES as you gave done for
many of the other wrappers. This corrected the problem.
I suggest you do the same for Boolean and Character
Diff the attached file to see the changes I made.
new version of CodeHints