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