This commit is contained in:
@@ -65,13 +65,18 @@ public class ArticleManagerTest {
|
||||
assertEquals("titi", cm.getConference(conf.getId()).getTitle());;
|
||||
|
||||
//ajout d'un article
|
||||
ArrayList<String> secondaryAuhthors = new ArrayList<String>();
|
||||
secondaryAuhthors.add("marcel");
|
||||
secondaryAuhthors.add("joselito");
|
||||
secondaryAuhthors.add("roberto");
|
||||
|
||||
Article article = am.addArticle(
|
||||
"title",
|
||||
"topic",
|
||||
"Abstract",
|
||||
"url_article",
|
||||
author.getLogin(),
|
||||
new ArrayList<String>(),
|
||||
secondaryAuhthors,
|
||||
Article.State.SUBMITED,
|
||||
conf.getId());
|
||||
articleId = article.getId();
|
||||
@@ -204,5 +209,7 @@ public class ArticleManagerTest {
|
||||
am.addPreference(articleId, "max", Preference.PreferenceType.LIKE);
|
||||
List <Preference> list = am.getPreferencesForArticle(articleId);
|
||||
assertFalse("list vide", list.isEmpty());
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user