Kazuomi Kashii created GORA-152:
-----------------------------------

             Summary: gora-core test incorrectly uses ByteBuffer's array() 
method to get its byte array
                 Key: GORA-152
                 URL: https://issues.apache.org/jira/browse/GORA-152
             Project: Apache Gora
          Issue Type: Bug
          Components: testing
    Affects Versions: 0.2
            Reporter: Kazuomi Kashii
             Fix For: 0.3


DataStoreTestUtil.java of gora-core test incorrectly uses ByteBuffer's array() 
method to get its byte array.

Assert.assertEquals(content + i, ByteUtils.toString( 
webPage.getContent().array() ));

It causes ComparisonFailure.
https://issues.apache.org/jira/browse/GORA-53?focusedCommentId=13414694#comment-13414694

testUpdate(org.apache.gora.cassandra.store.TestCassandraStore) Time elapsed: 
0.68 sec <<< FAILURE! 
junit.framework.ComparisonFailure: expected:<[content0]> but 
was:<[?^A^@^B^@^@^@^Pget_range_slices^@^@^@5^O^@^@^L^@^@^@^A^K^@^A^@^@^@^Nhttp://a.com/a^O^@^B^L^@^@^@^B^L^@^A^K^@^A^@^@^@^Cc:u^K^@^B^@^@^@^Nhttp://a.com/a
^@^C^@^D????5?^@^@^L^@^A^K^@^A^@^@^@^Gp:cnt:c^K^@^B^@^@^@^Hcontent0 
^@^C^@^D????+?^@^@^@^@]> 
        at junit.framework.Assert.assertEquals(Assert.java:85) 
        at junit.framework.Assert.assertEquals(Assert.java:91) 
        at 
org.apache.gora.store.DataStoreTestUtil.testUpdateWebPage(DataStoreTestUtil.java:296)
        at 
org.apache.gora.store.DataStoreTestBase.testUpdate(DataStoreTestBase.java:267) 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to