INT-1263: fix broken test

This commit is contained in:
Dave Syer
2010-09-23 18:55:58 +02:00
parent 39a887df48
commit d1bc9e9b39
2 changed files with 8 additions and 1 deletions

View File

@@ -164,6 +164,12 @@ public abstract class TestUtils {
};
}
/**
* @param history a message history
* @param componentName the name of a component to scan for
* @param startingIndex the index to start scanning
* @return the properties provided by the named component or null if none available
*/
public static Properties locateComponentInHistory(MessageHistory history, String componentName, int startingIndex){
Assert.notNull(history, "'history' must not be null");
Assert.isTrue(StringUtils.hasText(componentName), "'componentName' must be provided");