Community
Participate
Working Groups
Build Identifier: Small contribution to Virgo's test classes Reproducible: Always
Created attachment 176391 [details] Role test class with nine test cases i assure you that this code is 100% by me, that i am the only copyright holder and that i have the right to contribute it to Eclipse community.
This test class improve the Role's class test coverage to reach 100% excluding it from project's authentication's top risks.
It will go under review this week.
Created attachment 176681 [details] Small corrections. Review comments (corrected in this version): 1) Class should be called RoleTests (note, plural). Changed. 2) Method names don't have to startWith "test", but "tesEqualsWithNull" and the like are probably mis-spelt. Changed. 3) testHashCodeWithSameNullParameters() doesn't. Corrected (see attachment). 4) Renamed testEqualsWithDifferentNullParameters() to testNotEqualsWithDifferentParameters(), 'cos that's what it does. 5) Added testHashCodeWithSameNonNullParameters(), 'cos you don't test this. Thank you for your contribution. These tests are quite simple, but they cover the ground nicely.
Comment on attachment 176391 [details] Role test class with nine test cases Flagged as a contribution for IP.
Test build initiated.
thank you for your help Steve. Regards
Successful build/test of kernel. Going into code base... SHA: 31a6e18ea6338456d6d3e496f289ba3a23b4cbc6 Author: Olivier Girardot <ssaboum@gmail.com> Date: Mon Aug 16 2010 16:42:14 GMT+0100 (BST) Committer: Steve Powell <spowell@vmware.com> Commit Date: Mon Aug 16 2010 16:42:26 GMT+0100 (BST) Subject: Bug 322424 - Add tests for class org.eclipse.virgo.kernel.authentication.Role
Code coverage of authentication package increases from 59% to 69%. Coverage of Role class increases from 46% to 100%. Builds not working on CI build server at present, so multi-platform testing not available. This bug will be closed when the patch passes this test phase.
Closing as the fix has rippled up successfully.