Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,11 @@ class EntsoeProtocolTest extends Specification implements ManagerContainerTrait
asset = assetStorageService.merge(asset)

def attributeRef = new AttributeRef(asset.id, "energyPrice")
def protocol = (EntsoeProtocol) agentService.getProtocolInstance(agent.id)
def protocol = null

then: "the protocol is connected and attribute linked"
conditions.eventually {
protocol = (EntsoeProtocol) agentService.getProtocolInstance(agent.id)
assert protocol != null
assert agentService.getAgent(agent.id).getAgentStatus().orElse(null) == ConnectionStatus.CONNECTED
assert protocol.getLinkedAttributes().containsKey(attributeRef)
Expand Down Expand Up @@ -943,10 +944,11 @@ class EntsoeProtocolTest extends Specification implements ManagerContainerTrait
asset = assetStorageService.merge(asset)

def attributeRef = new AttributeRef(asset.id, "energyPrice")
def protocol = (EntsoeProtocol) agentService.getProtocolInstance(agent.id)
def protocol = null

then: "the protocol is connected and attribute linked"
conditions.eventually {
protocol = (EntsoeProtocol) agentService.getProtocolInstance(agent.id)
assert protocol != null
assert agentService.getAgent(agent.id).getAgentStatus().orElse(null) == ConnectionStatus.CONNECTED
assert protocol.getLinkedAttributes().containsKey(attributeRef)
Expand Down Expand Up @@ -1021,10 +1023,11 @@ class EntsoeProtocolTest extends Specification implements ManagerContainerTrait
asset = assetStorageService.merge(asset)

def attributeRef = new AttributeRef(asset.id, "energyPrice")
def protocol = (EntsoeProtocol) agentService.getProtocolInstance(agent.id)
def protocol = null

then: "the protocol is connected and attribute linked"
conditions.eventually {
protocol = (EntsoeProtocol) agentService.getProtocolInstance(agent.id)
assert protocol != null
assert agentService.getAgent(agent.id).getAgentStatus().orElse(null) == ConnectionStatus.CONNECTED
assert protocol.getLinkedAttributes().containsKey(attributeRef)
Expand Down