Search in sources :

Example 1 with IntValue

use of de.fraunhofer.iosb.ilt.faaast.service.model.value.primitive.IntValue in project FAAAST-Service by FraunhoferIOSB.

the class MessageBusInternalTest method init.

@BeforeClass
public static void init() {
    valueChangeMessage = new ValueChangeEventMessage();
    PropertyValue propertyValue = new PropertyValue();
    propertyValue.setValue(new IntValue(100));
    valueChangeMessage.setOldValue(propertyValue);
    propertyValue.setValue(new IntValue(123));
    valueChangeMessage.setNewValue(propertyValue);
    errorMessage = new ErrorEventMessage();
    errorMessage.setElement(property1Reference);
    errorMessage.setErrorLevel(ErrorLevel.Error);
    errorMessage.setThrowingSource(MessageBusInternalTest.class);
}
Also used : PropertyValue(de.fraunhofer.iosb.ilt.faaast.service.model.value.PropertyValue) ErrorEventMessage(de.fraunhofer.iosb.ilt.faaast.service.model.messagebus.event.error.ErrorEventMessage) IntValue(de.fraunhofer.iosb.ilt.faaast.service.model.value.primitive.IntValue) ValueChangeEventMessage(de.fraunhofer.iosb.ilt.faaast.service.model.messagebus.event.change.ValueChangeEventMessage) BeforeClass(org.junit.BeforeClass)

Aggregations

ValueChangeEventMessage (de.fraunhofer.iosb.ilt.faaast.service.model.messagebus.event.change.ValueChangeEventMessage)1 ErrorEventMessage (de.fraunhofer.iosb.ilt.faaast.service.model.messagebus.event.error.ErrorEventMessage)1 PropertyValue (de.fraunhofer.iosb.ilt.faaast.service.model.value.PropertyValue)1 IntValue (de.fraunhofer.iosb.ilt.faaast.service.model.value.primitive.IntValue)1 BeforeClass (org.junit.BeforeClass)1