Policy failures:

Code warning
- failed on resource Filler.java. Reason: The local variable article is never read, line 58
- failed on resource UserManagerTest.java. Reason: The local variable role is never read, line 6
Override reason:   
g
This commit is contained in:
Maxime Dagnicourt
2008-01-31 16:16:21 +00:00
parent 32c0e8f609
commit 7f3cb29c6a
3 changed files with 69 additions and 24 deletions

View File

@@ -44,11 +44,15 @@ public class Filler {
//ajout de 2 users
User author = um.addUser("max","pw","maxime","dagn","ipint", "max@e.fr");
User author2 = um.addUser("toto","pw","toto","titu","ipint", "toto@e.fr");
User membre = um.addUser("login_membre","pw","nom_membre","meme","ipint", "meme@e.fr");
User membre1 = um.addUser("login_membre1","pw","Jean","Bon","ipint", "meme@e.fr");
User membre2 = um.addUser("login_membre2","pw","Vincent","Tim","ipint", "meme@e.fr");
User membre3 = um.addUser("login_membre3","pw","Camille","Hon","ipint", "meme@e.fr");
//ajout des roles pr les users
cm.addRole(RoleType.AUTHOR, author.getLogin(), conf.getId());
cm.addRole(RoleType.PCMEMBER, membre1.getLogin(), conf.getId());
cm.addRole(RoleType.PCMEMBER, membre2.getLogin(), conf.getId());
cm.addRole(RoleType.PCMEMBER, membre3.getLogin(), conf.getId());
//ajout d'un article pr le user "max"
Article article = am.addArticle("title article max","topic","url_article",