[
https://issues.apache.org/jira/browse/QPID-7049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148434#comment-15148434
]
Rob Godfrey commented on QPID-7049:
-----------------------------------
{quote}
Measleading messages in test
org.apache.qpid.server.model.testmodels.hierarchy.InjectedAttributeTest#testInjectedStatistic
The stat description is "What is 6 x 9?" which sort of implies that 54 by
inject statistic but test is actually testing value 42.
{quote}
Sorry - I was being a little whimsical... you need to know your [Hitchhiker's
guide to the
Galaxy|https://www.quora.com/The-Hitchhikers-Guide-to-the-Galaxy-creative-franchise/Why-does-six-times-nine-equal-forty-two]
{quote}
Test fly method in tests can confuse as well.
{quote}
A car can fly to a height of exactly 0 (metres, feet, whichever unit you
choose), car's generally don't fly at any other altitude :-)
> [Java Broker] Provide a mechanism to inject attribute/statistic definitions
> into types at runtime
> -------------------------------------------------------------------------------------------------
>
> Key: QPID-7049
> URL: https://issues.apache.org/jira/browse/QPID-7049
> Project: Qpid
> Issue Type: Improvement
> Components: Java Broker
> Reporter: Rob Godfrey
> Assignee: Rob Godfrey
> Fix For: qpid-java-6.0.1, qpid-java-6.1
>
>
> In some cases it is not possible to know what statistics/attributes will be
> available on an object until runtime (for instance it may depend on the
> environment, the JVM in use or other factors). In this case we cannot define
> the statistics/attributes statically, but must instead inject them at run
> time.
> Another use case is where new functionality may wish to store information as
> attributes against existing configured object types (e.g. an ACL system where
> permission information is stored at each object).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]