You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2013/07/01 07:06:42 UTC

[jira] [Commented] (GORA-152) gora-core test incorrectly uses ByteBuffer's array() method to get its byte array

    [ https://issues.apache.org/jira/browse/GORA-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696515#comment-13696515 ] 

Hudson commented on GORA-152:
-----------------------------

Integrated in goraOracle #6 (See [https://builds.apache.org/job/goraOracle/6/])
    Fixes GORA-152 to get byte array from ByteBuffer only between position and limit (Revision 83487fe9ae50303258038b2c8b4a4ddb5ed56c25)

     Result = FAILURE
kazk : 
Files : 
* CHANGES.txt
* gora-core/src/test/java/org/apache/gora/store/DataStoreTestUtil.java

                
> 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.2.1
>
>         Attachments: GORA-152.patch
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira