Hi all,

On Thu, Apr 19, 2012 at 8:18 PM, Afkham Azeez <[email protected]> wrote:

>
>
> On Thu, Apr 19, 2012 at 1:47 PM, Vijitha Kumara <[email protected]> wrote:
>
>>
>> This seems bit strange, the real test case expects the length to be 2 but
>> the test failure complains it expects 3...
>
>
> The way the parameters have been passed to that test is incorrect. It
> should be;
>

> *assertEquals(schemas.length, 2);*
>

ARGH. Bad habits. Folks, we need to make sure that the test code is in good
shape as much as the main code. Can someone look into fixing this and all
similar mistakes. Might take a couple of hours but its very worth. And,
everybody make sure that you read the APIs before you code.

Thanks,
Senaka.

>
>
>>
>>
>> -----------------------------------------------------------------------------------------------------------------
>> build 18-Apr-2012 17:01:13 Failed tests:
>> build 18-Apr-2012 17:01:13  
>> testAddSchema(org.wso2.carbon.registry.governance.api.test.SchemaTestCase):
>> expected:<3> but was:<2>
>> build 18-Apr-2012 17:01:13
>> build 18-Apr-2012 17:01:13 Tests run: 233, Failures: 1, Errors: 0,
>> Skipped: 0
>>
>> -----------------------------------------------------------------------------------------------------------------
>>
>> Test case:
>>
>> -----------------------------------------------------------------------------------------------------------------
>> Schema[] schemas = schemaManager.findSchemas(new SchemaFilter() {
>>             public boolean matches(Schema schema) throws
>> GovernanceException {
>>                 if (schema.getAttribute("version").equals("0.01")) {
>>                     return true;
>>                 }
>>                 return false;
>>             }
>>         });
>>         *assertEquals(2, schemas.length);*
>>         assertEquals(newSchema.getId(), schemas[0].getId());
>>
>> -----------------------------------------------------------------------------------------------------------------
>>
>> Regards,
>>
>> On Thu, Apr 19, 2012 at 10:56 AM, Subash Chaturanga <[email protected]>wrote:
>>
>>>
>>>
>>> On Thu, Apr 19, 2012 at 10:41 AM, Subash Chaturanga <[email protected]>wrote:
>>>
>>>>
>>>>
>>>> On Thu, Apr 19, 2012 at 10:19 AM, Ishan Jayawardena <[email protected]>wrote:
>>>>
>>>>> Hi, please have a look at this error. Attached Log.
>>>>>
>>>>
>>>> Hi,  already saw this on bamboo logs and working on it, this is not
>>>> only due to a testng failure. But product-governance-services also fails.
>>>>
>>>> - governance stratos fails.
>>>>
>>> There was patch for this fix, and not yet commited. I think Dimuthu is
>>> looking in to this to commit the patch.
>>>
>>>
>>>> - 1 test failure and I am locally trying to reproduce this.(This was a
>>>> randomly failing test and we intentionally add this(+ two other tests) to
>>>> see the behavior of this, because we couldn't reproduce this locally in
>>>> anyway).
>>>>
>>>> Excluded SchemaTest until get fixed.
>>>
>>>>  Thanks
>>>>
>>>>
>>>>> Thanks,
>>>>> Ishan.
>>>>> --
>>>>> Ishan Jayawardena
>>>>> Software Engineer
>>>>> Integration Technologies Team
>>>>> WSO2, Inc. http://wso2.com/
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Subash Chaturanga
>>>> Software Engineer
>>>> WSO2 Inc. http://wso2.com
>>>>
>>>> email - [email protected]
>>>> phone - 077 2225922
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> Subash Chaturanga
>>> Software Engineer
>>> WSO2 Inc. http://wso2.com
>>>
>>> email - [email protected]
>>> phone - 077 2225922
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Vijitha Kumara
>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>> email: [email protected]
>>
>> Lean . Enterprise . Middleware
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>**
> email: **[email protected]* <[email protected]>* cell: +94 77 3320919
> blog: **http://blog.afkham.org* <http://blog.afkham.org>*
> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senaka Fernando*
Product Manager - WSO2 Governance Registry;
Associate Technical Lead; WSO2 Inc.; http://wso2.com*
Member; Apache Software Foundation; http://apache.org

E-mail: senaka AT wso2.com
**P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
Linked-In: http://linkedin.com/in/senakafernando

*Lean . Enterprise . Middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to