Qpid
  1. Qpid
  2. QPID-3985

BrokerMessagesTest fails depending on locale

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.17
    • Fix Version/s: 0.17
    • Component/s: Java Tests
    • Labels:
      None
    • Environment:

      Java 7, amd64, Ubuntu 12.04

      Description

      My locale is de_DE.UTF-8.

      Fehlermeldung

      Message does not contain expected (1,073,741,824) text :BRK-1011 : Maximum Memory : 1.073.741.824 bytes

      Stacktrace

      junit.framework.AssertionFailedError: Message does not contain expected (1,073,741,824) text :BRK-1011 : Maximum Memory : 1.073.741.824 bytes
      at org.apache.qpid.server.logging.messages.AbstractTestMessages.validateLogMessage(AbstractTestMessages.java:110)
      at org.apache.qpid.server.logging.messages.AbstractTestMessages.validateLogMessage(AbstractTestMessages.java:68)
      at org.apache.qpid.server.logging.messages.BrokerMessagesTest.testBrokerMemory(BrokerMessagesTest.java:144)
      at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:139)

        Activity

        Rob Godfrey made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Rob Godfrey added a comment -

        Hi Mark, I've updated these tests on the trunk.

        I couldn't get the AMQQMBeanTest to fail for me (I'm not sure how your machine is set up such that in one half of the test it is using CEST as the timezone and MESZ in the other) however hopefully the fix I applied will remove the problem for you too.

        Let us know if you are still seeing issues

        Show
        Rob Godfrey added a comment - Hi Mark, I've updated these tests on the trunk. I couldn't get the AMQQMBeanTest to fail for me (I'm not sure how your machine is set up such that in one half of the test it is using CEST as the timezone and MESZ in the other) however hopefully the fix I applied will remove the problem for you too. Let us know if you are still seeing issues
        Rob Godfrey made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        Rob Godfrey made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Rob Godfrey made changes -
        Assignee Rob Godfrey [ rgodfrey ]
        Rob Godfrey made changes -
        Fix Version/s 0.17 [ 12320179 ]
        Hide
        Rob Godfrey added a comment -

        OK - those are embarrassing

        We're actually working on replacing these tests and the some of the JMX method calls at the moment (in fact it was mentioned to me just the other day how stupid it was to pass over the date as a String, rather than as a long and let the client render it relative to its locale).

        Show
        Rob Godfrey added a comment - OK - those are embarrassing We're actually working on replacing these tests and the some of the JMX method calls at the moment (in fact it was mentioned to me just the other day how stupid it was to pass over the date as a String, rather than as a long and let the client render it relative to its locale).
        Hide
        Mark added a comment -

        language dependency:

        ehlermeldung

        expected:<...No such file or directory...> but was:<...Datei oder Verzeichnis nicht gefunden...>

        Stacktrace

        junit.framework.ComparisonFailure: expected:<...No such file or directory...> but was:<...Datei oder Verzeichnis nicht gefunden...>
        at org.apache.qpid.server.security.access.plugins.PlainConfigurationTest.testMissingACLConfig(PlainConfigurationTest.java:80)

        Show
        Mark added a comment - language dependency: ehlermeldung expected:<...No such file or directory...> but was:<...Datei oder Verzeichnis nicht gefunden...> Stacktrace junit.framework.ComparisonFailure: expected:<...No such file or directory...> but was:<...Datei oder Verzeichnis nicht gefunden...> at org.apache.qpid.server.security.access.plugins.PlainConfigurationTest.testMissingACLConfig(PlainConfigurationTest.java:80)
        Hide
        Mark added a comment -

        timezone dependence:

        Fehlermeldung

        Unexpected JMSTimestamp within header expected:<...CEST> but was:<...MESZ>

        Stacktrace

        junit.framework.ComparisonFailure: Unexpected JMSTimestamp within header expected:<...CEST> but was:<...MESZ>
        at org.apache.qpid.server.queue.AMQQueueMBeanTest.testViewMessages(AMQQueueMBeanTest.java:266)
        at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:139)

        Show
        Mark added a comment - timezone dependence: Fehlermeldung Unexpected JMSTimestamp within header expected:<...CEST> but was:<...MESZ> Stacktrace junit.framework.ComparisonFailure: Unexpected JMSTimestamp within header expected:<...CEST> but was:<...MESZ> at org.apache.qpid.server.queue.AMQQueueMBeanTest.testViewMessages(AMQQueueMBeanTest.java:266) at org.apache.qpid.test.utils.QpidTestCase.run(QpidTestCase.java:139)
        Mark made changes -
        Field Original Value New Value
        Priority Major [ 3 ] Minor [ 4 ]
        Mark created issue -

          People

          • Assignee:
            Rob Godfrey
            Reporter:
            Mark
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development