Search in sources :

Example 1 with DEAOfficerAttributes

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();
}
Also used : DEAOfficerAttributes(org.mule.test.heisenberg.extension.model.types.DEAOfficerAttributes) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) Result(org.mule.runtime.extension.api.runtime.operation.Result)

Aggregations

ArrayList (java.util.ArrayList)1 List (java.util.List)1 Result (org.mule.runtime.extension.api.runtime.operation.Result)1 DEAOfficerAttributes (org.mule.test.heisenberg.extension.model.types.DEAOfficerAttributes)1