Class org.as2lib.test.unit.info.AssertThrowsInfo

org.as2lib.core.BasicClass
   +--org.as2lib.test.unit.AbstractAssertInfo
      +--org.as2lib.test.unit.info.AssertThrowsInfo

Description

Information holder and examiner of a assertThrows call.

Method Index

new AssertThrowsInfo()

execute()

Inherited from AbstractAssertInfo

getMessage(), isFailed()

Inherited from BasicClass

toString()

Constructor Detail

AssertThrowsInfo

public function AssertThrowsInfo(message:String, type, toCall:Executable, args:Array)

Constructs a new AssertThrowsInfo.

Parameters

messageMessage if the assertion fails.
typeException type that should be thrown. (if null is given, it fails if no exception was thrown).
toCallCall to be executed
argsArguments for the Call.

Method Detail

execute

public function execute(Void):Boolean

Overriding of @see AbstractAssertInfo#execute

Return

True if the execution fails.

Overrides

execute() in org.as2lib.test.unit.AbstractAssertInfo