* Description: attach call - SC version is incompatible<br>
* Expectation: passes
*/
@Test
public void t02_AttachCallSCVersionIsIncompatible() throws Exception {
SCMPAttachCall attachCall = new SCMPAttachCall(this.requester) {
@Override
public void invoke(ISCMPMessageCallback scmpCallback, int timeoutMillis) throws Exception {
String dateTime = DateTimeUtility.getCurrentTimeZoneMillis();
String version = "2.0-000";
this.requestMessage.setHeader(SCMPHeaderAttributeKey.SC_VERSION, version);
this.requestMessage.setHeader(SCMPHeaderAttributeKey.LOCAL_DATE_TIME, dateTime);
this.requestMessage.setMessageType(this.getMessageType());
this.requester.send(this.requestMessage, timeoutMillis, scmpCallback);
return;
}
};
TestCallback cbk = new TestCallback(true);
attachCall.invoke(cbk, 1000);
SCMPMessage result = cbk.getMessageSync(3000);
TestUtil.verifyError(result, SCMPError.HV_WRONG_SC_RELEASE_NR, SCMPMsgType.ATTACH);
}