You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Adam Heath <do...@brainfood.com> on 2009/11/24 22:27:50 UTC

Re: svn commit: r883882 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

adrianc@apache.org wrote:
> Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=883882&r1=883881&r2=883882&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java (original)
> +++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java Tue Nov 24 21:24:10 2009
> @@ -506,19 +506,29 @@
>     */
>    public void testBlobCreate() throws Exception {
>        try {
> -          byte[] b = new byte[1];
> -          b[0] = (byte)0x01;
> +          byte[] b = new byte[100000];
> +          for (int i = 0; i < b.length; i++) {
> +              b[i] = (byte) i;
> +          }

java.util.Arrays.fill(b, (byte)0x01);


Re: svn commit: r883882 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Posted by Adam Heath <do...@brainfood.com>.
Adrian Crum wrote:
> Adam Heath wrote:
>> adrianc@apache.org wrote:
>>> Modified:
>>> ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
>>>
>>> URL:
>>> http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=883882&r1=883881&r2=883882&view=diff
>>>
>>> ==============================================================================
>>>
>>> ---
>>> ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
>>> (original)
>>> +++
>>> ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
>>> Tue Nov 24 21:24:10 2009
>>> @@ -506,19 +506,29 @@
>>>     */
>>>    public void testBlobCreate() throws Exception {
>>>        try {
>>> -          byte[] b = new byte[1];
>>> -          b[0] = (byte)0x01;
>>> +          byte[] b = new byte[100000];
>>> +          for (int i = 0; i < b.length; i++) {
>>> +              b[i] = (byte) i;
>>> +          }
>>
>> java.util.Arrays.fill(b, (byte)0x01);
> 
> I'm trying to create a pattern that I can test against.

Oh, now I see that you set each element to the index.  My bad.


Re: svn commit: r883882 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java

Posted by Adrian Crum <ad...@hlmksw.com>.
Adam Heath wrote:
> adrianc@apache.org wrote:
>> Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java
>> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java?rev=883882&r1=883881&r2=883882&view=diff
>> ==============================================================================
>> --- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java (original)
>> +++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/test/EntityTestSuite.java Tue Nov 24 21:24:10 2009
>> @@ -506,19 +506,29 @@
>>     */
>>    public void testBlobCreate() throws Exception {
>>        try {
>> -          byte[] b = new byte[1];
>> -          b[0] = (byte)0x01;
>> +          byte[] b = new byte[100000];
>> +          for (int i = 0; i < b.length; i++) {
>> +              b[i] = (byte) i;
>> +          }
> 
> java.util.Arrays.fill(b, (byte)0x01);

I'm trying to create a pattern that I can test against.