@Test public void testValidationPass() throws MessageException { VersionResponse msg = new VersionResponse(); msg.decode(new byte[]{1,(byte)0x3E,(byte) 'h',(byte) 'e',(byte) 'l',(byte) 'l',(byte) 'o',(byte) ' ',(byte) 'w',(byte) 'o',(byte) 'r',(byte) 'l',(byte) '\0'}); System.out.println(msg.getVersionString()); }
public String getVersionString() { char [] string = new char[VERSION_STRING_LENGTH]; for (int i = 0 ; i< VERSION_STRING_LENGTH; i++) { string[i] = (char)getDataElement(DataElement.VERSION_STRING_BYTE,i).intValue(); } return new String(string); }
VersionResponse extends StandardMessage { public String getVersionString() { char [] string = new char[VERSION_STRING_LENGTH]; for (int i = 0 ; i< VERSION_STRING_LENGTH; i++) { string[i] = (char)getDataElement(DataElement.VERSION_STRING_BYTE,i).intValue(); } return new String(string); } }
VersionResponse extends StandardMessage { public String getVersionString() { char [] string = new char[VERSION_STRING_LENGTH]; for (int i = 0 ; i< VERSION_STRING_LENGTH; i++) { string[i] = (char)getDataElement(DataElement.VERSION_STRING_BYTE,i).intValue(); } return new String(string); } VersionResponse(); }
VersionResponse extends StandardMessage { public String getVersionString() { char [] string = new char[VERSION_STRING_LENGTH]; for (int i = 0 ; i< VERSION_STRING_LENGTH; i++) { string[i] = (char)getDataElement(DataElement.VERSION_STRING_BYTE,i).intValue(); } return new String(string); } VersionResponse(); String getVersionString(); @Override void validate(); }
VersionResponse extends StandardMessage { public String getVersionString() { char [] string = new char[VERSION_STRING_LENGTH]; for (int i = 0 ; i< VERSION_STRING_LENGTH; i++) { string[i] = (char)getDataElement(DataElement.VERSION_STRING_BYTE,i).intValue(); } return new String(string); } VersionResponse(); String getVersionString(); @Override void validate();  }