use of org.mule.test.heisenberg.extension.model.types.DEAOfficerAttributes in project mule by mulesoft.
the class DEARadioSource method makeResult.
private Result<List<Result<String, DEAOfficerAttributes>>, Object> makeResult() {
List<Result<String, DEAOfficerAttributes>> messages = new ArrayList<>(MESSAGES_PER_POLL);
for (int i = 0; i < MESSAGES_PER_POLL; i++) {
boolean isHank = random.nextInt() % 2 == 0;
messages.add(Result.<String, DEAOfficerAttributes>builder().output(MESSAGE_TEXT).attributes(new DEAOfficerAttributes(isHank)).build());
}
return Result.<List<Result<String, DEAOfficerAttributes>>, Object>builder().output(messages).build();
}
Aggregations