{
final Resource<ResourceType> submitEvent = new Resource<ResourceType>(NAMESPACE, "submitName", Interaction);
Resource<ResourceType> deviceRotation = new Resource<ResourceType>(NAMESPACE, "deviceRotation", Interaction);
Resource<ResourceType> loadData = new Resource<ResourceType>(NAMESPACE, "loadData", Interaction);
Behaviour behaviour = new TestProcedure(NAMESPACE, "onSubmitName")
{
{
setInputs(submitEvent);
}
};
assertTrue("Behaviour can be triggered by submitEvent", behaviour.doesConsume(submitEvent));
assertFalse("Behaviour should not be triggered by deviceRotation", behaviour.doesConsume(deviceRotation));
assertFalse("Behaviour should not be triggered by loadData", behaviour.doesConsume(loadData));
}