Skip to content
Snippets Groups Projects
Commit e1644ae8 authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Update on variable modification

parent 58bacccf
No related branches found
No related tags found
No related merge requests found
......@@ -648,7 +648,7 @@ public class ActivityDiagram2TMLTranslator {
}
} else {
// We have to check that the variable is a valid (natural) attribute
String variable = ((TMLADNotifiedEvent)tgc).getVariable();
String variable = modifyString(((TMLADNotifiedEvent)tgc).getVariable());
TMLAttribute t = tmltask.getAttributeByName(variable);
if (t == null) {
UICheckingError ce = new UICheckingError(CheckingError.BEHAVIOR_ERROR, ((TMLADNotifiedEvent)tgc).getVariable() + " is an " +
......
......@@ -247,7 +247,8 @@ public class TestGTMLModeling extends AbstractUITest {
try {
testTranslateToTMLModelingDisableSmartCardProtocol("InterfaceDevice", "ChoiceLeft", 1218);
} catch (final MalformedTMLDesignException ex) {
assertTrue("TML modeling translation did not generate the expected '" + UICheckingError.MESSAGE_CHOICE_BOTH_STOCHASTIC_DETERMINISTIC + "' error!", ex.getErrors().size() == 1);
assertTrue("TML modeling translation did not generate the expected '" +
UICheckingError.MESSAGE_CHOICE_BOTH_STOCHASTIC_DETERMINISTIC + "' error!", ex.getErrors().size() == 1);
assertEquals(UICheckingError.MESSAGE_CHOICE_BOTH_STOCHASTIC_DETERMINISTIC, ex.getErrors().get(0).toString());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment