ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 49 - MCD - Level 2 discussion

Report
Export

Refer to the exhibit.

The flow name is ''implementation'' with code for the MUnit test case.

When the MUnit test case is executed, what is the expected result?

A.
The test case fails with an assertion error
Answers
A.
The test case fails with an assertion error
B.
The test throws an error and does not start
Answers
B.
The test throws an error and does not start
C.
The test case fails with an unexpected error type
Answers
C.
The test case fails with an unexpected error type
D.
The test case passes
Answers
D.
The test case passes
Suggested answer: A

Explanation:

Based on the code snippet and MUnit test case below, when the MUnit test case is executed, the expected result is that the test case fails with an assertion error. This is because the assert-equals processor compares two values for equality, and fails if they are not equal. In this case, the expected value is 'Hello World', but the actual value returned by the implementation flow is 'Hello Mule'. Therefore, the assertion fails and an error is thrown.

Reference: https://docs.mulesoft.com/munit/2.3/assert-equals-processor

asked 18/09/2024
Nagaretnam, Ravin
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first