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
......@@ -208,7 +208,9 @@ aspect AspectGeneration {
.append(writeMethod()).append("() {\n");
if (loggingEnabledForWrites) {
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()});
sb.append(ind(2)).append(mqttUpdaterAttribute()).append("().publish(")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment