Re: [Dev] [MB][C5] How to write unit tests to mock the user core?
+1 for using mockito. @Jayanga, Malithi: I guess this is something we can use in CAAS and the connectors, as we don't have unit test for the moment. Regards, Omindu. On Mon, Aug 15, 2016 at 8:00 PM, Manuranga Pererawrote: > In UUF tests we are using mockito, its very convenient, please give it a > try. > > On Mon, Aug 15, 2016 at 3:42 PM, Ramith Jayasinghe > wrote: > >> please disregard above noise! >> >> On Mon, Aug 15, 2016 at 3:36 PM, Ramith Jayasinghe >> wrote: >> >>> this needs to be a public email isn't it? >>> >>> On Mon, Aug 15, 2016 at 2:10 PM, Sajini De Silva >>> wrote: >>> Hi, I have finished the first stage of MB authorization model for C5. Now I need to test the model by writing some test cases. Now user core is outside of MB how do we mock the user core in test cases. Is there any samples for this? Thanks, -- Sajini De SIlva Senior Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 >>> >>> >>> -- >>> Ramith Jayasinghe >>> Technical Lead >>> WSO2 Inc., http://wso2.com >>> lean.enterprise.middleware >>> >>> E: ram...@wso2.com >>> P: +94 772534930 >>> >> >> >> >> -- >> Ramith Jayasinghe >> Technical Lead >> WSO2 Inc., http://wso2.com >> lean.enterprise.middleware >> >> E: ram...@wso2.com >> P: +94 772534930 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > With regards, > *Manu*ranga Perera. > > phone : 071 7 70 20 50 > mail : m...@wso2.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Omindu Rathnaweera Software Engineer, WSO2 Inc. Mobile: +94 771 197 211 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB][C5] How to write unit tests to mock the user core?
In UUF tests we are using mockito, its very convenient, please give it a try. On Mon, Aug 15, 2016 at 3:42 PM, Ramith Jayasinghewrote: > please disregard above noise! > > On Mon, Aug 15, 2016 at 3:36 PM, Ramith Jayasinghe > wrote: > >> this needs to be a public email isn't it? >> >> On Mon, Aug 15, 2016 at 2:10 PM, Sajini De Silva wrote: >> >>> Hi, >>> >>> I have finished the first stage of MB authorization model for C5. Now I >>> need to test the model by writing some test cases. Now user core is outside >>> of MB how do we mock the user core in test cases. Is there any samples for >>> this? >>> >>> Thanks, >>> >>> -- >>> Sajini De SIlva >>> Senior Software Engineer; WSO2 Inc.; http://wso2.com , >>> Email: saj...@wso2.com >>> Blog: http://sajinid.blogspot.com/ >>> Git hub profile: https://github.com/sajinidesilva >>> >>> Phone: +94 712797729 >>> >>> >> >> >> -- >> Ramith Jayasinghe >> Technical Lead >> WSO2 Inc., http://wso2.com >> lean.enterprise.middleware >> >> E: ram...@wso2.com >> P: +94 772534930 >> > > > > -- > Ramith Jayasinghe > Technical Lead > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > E: ram...@wso2.com > P: +94 772534930 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- With regards, *Manu*ranga Perera. phone : 071 7 70 20 50 mail : m...@wso2.com ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB][C5] How to write unit tests to mock the user core?
please disregard above noise! On Mon, Aug 15, 2016 at 3:36 PM, Ramith Jayasinghewrote: > this needs to be a public email isn't it? > > On Mon, Aug 15, 2016 at 2:10 PM, Sajini De Silva wrote: > >> Hi, >> >> I have finished the first stage of MB authorization model for C5. Now I >> need to test the model by writing some test cases. Now user core is outside >> of MB how do we mock the user core in test cases. Is there any samples for >> this? >> >> Thanks, >> >> -- >> Sajini De SIlva >> Senior Software Engineer; WSO2 Inc.; http://wso2.com , >> Email: saj...@wso2.com >> Blog: http://sajinid.blogspot.com/ >> Git hub profile: https://github.com/sajinidesilva >> >> Phone: +94 712797729 >> >> > > > -- > Ramith Jayasinghe > Technical Lead > WSO2 Inc., http://wso2.com > lean.enterprise.middleware > > E: ram...@wso2.com > P: +94 772534930 > -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 772534930 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [MB][C5] How to write unit tests to mock the user core?
this needs to be a public email isn't it? On Mon, Aug 15, 2016 at 2:10 PM, Sajini De Silvawrote: > Hi, > > I have finished the first stage of MB authorization model for C5. Now I > need to test the model by writing some test cases. Now user core is outside > of MB how do we mock the user core in test cases. Is there any samples for > this? > > Thanks, > > -- > Sajini De SIlva > Senior Software Engineer; WSO2 Inc.; http://wso2.com , > Email: saj...@wso2.com > Blog: http://sajinid.blogspot.com/ > Git hub profile: https://github.com/sajinidesilva > > Phone: +94 712797729 > > -- Ramith Jayasinghe Technical Lead WSO2 Inc., http://wso2.com lean.enterprise.middleware E: ram...@wso2.com P: +94 772534930 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [MB][C5] How to write unit tests to mock the user core?
Hi, I have finished the first stage of MB authorization model for C5. Now I need to test the model by writing some test cases. Now user core is outside of MB how do we mock the user core in test cases. Is there any samples for this? Thanks, -- Sajini De SIlva Senior Software Engineer; WSO2 Inc.; http://wso2.com , Email: saj...@wso2.com Blog: http://sajinid.blogspot.com/ Git hub profile: https://github.com/sajinidesilva Phone: +94 712797729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev