This commit is contained in:
@@ -84,7 +84,7 @@ public class ConferenceManagerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void addRoleForUserTest(){
|
public void addRoleForUserTest(){
|
||||||
cm.addRole(Role.RoleType.AUTHOR, "max" , id);
|
cm.addRole(Role.RoleType.AUTHOR, "max" , id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package org.yacos.tests.core;
|
package org.yacos.tests.core;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.*;
|
||||||
import static org.junit.Assert.assertFalse;
|
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -43,7 +42,8 @@ public class EvaluationManagerTest {
|
|||||||
public void addCriterionsTest(){
|
public void addCriterionsTest(){
|
||||||
Criterion crit;
|
Criterion crit;
|
||||||
crit = em.addCriterion("name", 0, 4, confId);
|
crit = em.addCriterion("name", 0, 4, confId);
|
||||||
assertEquals(crit.getName(), "");
|
assertNotNull(crit);
|
||||||
|
assertEquals(crit.getName(), em.getCriterion(crit.getId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Reference in New Issue
Block a user