From 956d61f32ec371655f7e2a4f810c47a0418079b1 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Sun, 28 Sep 2014 23:39:16 +0200 Subject: [PATCH] [Minor] fixed test to really check getting order by locator --- .../strolch/runtime/query/inmemory/FindByLocatorTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/li.strolch.agent/src/test/java/li/strolch/runtime/query/inmemory/FindByLocatorTest.java b/li.strolch.agent/src/test/java/li/strolch/runtime/query/inmemory/FindByLocatorTest.java index ea0456673..da637ad3b 100644 --- a/li.strolch.agent/src/test/java/li/strolch/runtime/query/inmemory/FindByLocatorTest.java +++ b/li.strolch.agent/src/test/java/li/strolch/runtime/query/inmemory/FindByLocatorTest.java @@ -20,6 +20,7 @@ import li.strolch.agent.ComponentContainerTest; import li.strolch.agent.api.ComponentContainer; import li.strolch.agent.api.StrolchAgent; import li.strolch.model.Locator; +import li.strolch.model.Order; import li.strolch.model.ParameterBag; import li.strolch.model.Resource; import li.strolch.model.parameter.FloatParameter; @@ -57,9 +58,9 @@ public class FindByLocatorTest { assertNotNull("Should have found a FloatParameter with the locator " + locResource, resource); // Order - Locator locOrderBag = Locator.valueOf("Order/TestType/MyTestOrder/Bag/@bag01"); - ParameterBag orderBag = tx.findElement(locOrderBag); - assertNotNull("Should have found a FloatParameter with the locator " + locOrderBag, orderBag); + Locator locOrder = Locator.valueOf("Order/TestType/MyTestOrder"); + Order order = tx.findElement(locOrder); + assertNotNull("Should have found an Order with the locator " + locOrder, order); // Bag on Resource Locator locResBag = Locator.valueOf("Resource/TestType/MyTestResource/Bag/@bag01");