Casting issue with management op over core

This commit is contained in:
jbertram 2015-04-27 10:24:18 -05:00 committed by Clebert Suconic
parent 8f52a622d0
commit 9a6ae57d45
1 changed files with 8 additions and 1 deletions

View File

@ -195,7 +195,14 @@ public class QueueControlUsingCoreTest extends QueueControlTest
*/
public Long getFirstMessageAge() throws Exception
{
return (Long) proxy.invokeOperation("getFirstMessageAge");
Object value = proxy.invokeOperation("getFirstMessageAge");
if (value instanceof Integer)
{
return ((Integer) value).longValue();
}
return (Long) value;
}
public String listMessageCounterHistoryAsHTML() throws Exception