use of com.vodafone360.people.engine.EngineManager.EngineId in project 360-Engine-for-Android by 360.
the class NowPlusDatatypesTests method testCreatePushEvent.
public void testCreatePushEvent() {
RpgPushMessage msg = new RpgPushMessage();
msg.mType = PushMessageTypes.CONTACTS_CHANGE;
EngineId engId = EngineId.ACTIVITIES_ENGINE;
PushEvent input = (PushEvent) PushEvent.createPushEvent(msg, engId);
assertEquals(BaseDataType.PUSH_EVENT_DATA_TYPE, input.getType());
assertEquals(msg.mType, input.mMessageType);
assertEquals(engId, input.mEngineId);
}
use of com.vodafone360.people.engine.EngineManager.EngineId in project 360-Engine-for-Android by 360.
the class EngineTestFramework method reportBackToFramework.
@Override
public void reportBackToFramework(int reqId, EngineId engine) {
Log.d("TAG", "EngineTestFramework.reportBackToFramework");
mObserver.reportBackToEngine(reqId, engine);
final QueueManager reqQ = QueueManager.getInstance();
final ResponseQueue respQ = ResponseQueue.getInstance();
if (reqQ.getRequest(reqId) != null) {
List<BaseDataType> dataTypeList = new ArrayList<BaseDataType>();
ServerError err = new ServerError(ServerError.ErrorType.UNKNOWN);
dataTypeList.add(err);
respQ.addToResponseQueue(new DecodedResponse(reqId, dataTypeList, engine, DecodedResponse.ResponseType.SERVER_ERROR.ordinal()));
}
}
Aggregations