Yes, perhaps those were written with the Junit in mind :)
On Thu, Apr 19, 2012 at 8:18 PM, Afkham Azeez <az...@wso2.com> wrote: > > > On Thu, Apr 19, 2012 at 1:47 PM, Vijitha Kumara <viji...@wso2.com> 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);* > > >> >> >> ----------------------------------------------------------------------------------------------------------------- >> 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 <sub...@wso2.com>wrote: >> >>> >>> >>> On Thu, Apr 19, 2012 at 10:41 AM, Subash Chaturanga <sub...@wso2.com>wrote: >>> >>>> >>>> >>>> On Thu, Apr 19, 2012 at 10:19 AM, Ishan Jayawardena <is...@wso2.com>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 >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Subash Chaturanga >>>> Software Engineer >>>> WSO2 Inc. http://wso2.com >>>> >>>> email - sub...@wso2.com >>>> phone - 077 2225922 >>>> >>>> >>> >>> >>> -- >>> >>> Subash Chaturanga >>> Software Engineer >>> WSO2 Inc. http://wso2.com >>> >>> email - sub...@wso2.com >>> phone - 077 2225922 >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Vijitha Kumara >> Senior Software Engineer; WSO2, Inc.; http://wso2.com/ >> email: viji...@wso2.com >> >> Lean . Enterprise . Middleware >> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> 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: **az...@wso2.com* <az...@wso2.com>* 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* > > -- Vijitha Kumara Senior Software Engineer; WSO2, Inc.; http://wso2.com/ email: viji...@wso2.com Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev