Share via


SysTest.wasExpectedExceptionMessageThrown Method [AX 2012]

Checks whether the expected exception was thrown.

Syntax

private boolean wasExpectedExceptionMessageThrown(str _actual, str _expected)

Run On

Called

Parameters

  • _actual
    Type: str
    The actual value.
  • _expected
    Type: str
    The expected exception message.

Return Value

Type: boolean
true if the expected exception was thrown; otherwise, false.

See Also

SysTest Class

SysTestCase Class

SysTestSuite Class

Unit Test Framework

Walkthrough: Testing a Class Using the Unit Test Framework