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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Adam Heath-2
[hidden email] 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);

Reply | Threaded
Open this post in threaded view
|

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

Adrian Crum
Adam Heath wrote:

> [hidden email] 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.


Reply | Threaded
Open this post in threaded view
|

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

Adam Heath-2
Adrian Crum wrote:

> Adam Heath wrote:
>> [hidden email] 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.