Commit ad9c6ee8 authored by Martti Käärik's avatar Martti Käärik
Browse files

Exceptional behaviour reporting.

parent 1dbc7b42
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1602,6 +1602,8 @@ public class JUnitTestGenerator extends Renderer {
						append(exceptionalBehaviourName + ".behaviour = () -> ");
						blockOpen();

						writeNotification((ExceptionalBehaviour) bl.eContainer(), true);

						lineComment("Disable while exceptional behaviour is executed");
						line(COMPONENT_FIELD + ".disableExceptionalBehaviour(" + exceptionalBehaviourName + ");");
						newLine();
@@ -1633,6 +1635,8 @@ public class JUnitTestGenerator extends Renderer {

			lineComment("Enable the exceptional behaviour again");
			line(COMPONENT_FIELD + ".enableExceptionalBehaviour(" + exceptionalBehaviourName + ");");

			writeNotification((ExceptionalBehaviour) bl.eContainer(), false);
			blockClose();
			blockCloseMethod();