Skip to content
Snippets Groups Projects
Commit 9614de67 authored by René Schöne's avatar René Schöne
Browse files

Added Read1Write2Test, and AbstractMqttTest.

- all tests have fail-fast-behaviour if mqtt broker is not connected
- added some documentation on how to create new test cases
- Base: Fixed logging of writes to output actual values of terminal and topic
parent 0558727c
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,9 @@ aspect AspectGeneration { ...@@ -208,7 +208,9 @@ aspect AspectGeneration {
.append(writeMethod()).append("() {\n"); .append(writeMethod()).append("() {\n");
if (loggingEnabledForWrites) { if (loggingEnabledForWrites) {
sb.append(ind(2)).append("System.out.println(\"[Write] ").append(getToken().getName()) sb.append(ind(2)).append("System.out.println(\"[Write] ").append(getToken().getName())
.append(" = \" + ").append(lastValue()).append(" + \" -> ").append(writeTopic()).append("\");\n"); .append(" = \" + ")
.append("get").append(getToken().getName()).append("() + \" -> \" + ")
.append(writeTopic()).append(");\n");
} }
// _mqttUpdater().publish(${writeTopic()}, ${lastValue()}); // _mqttUpdater().publish(${writeTopic()}, ${lastValue()});
sb.append(ind(2)).append(mqttUpdaterAttribute()).append("().publish(") sb.append(ind(2)).append(mqttUpdaterAttribute()).append("().publish(")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment