unit test for new keyword dao method
This commit is contained in:
parent
9d7f9e4343
commit
974f95864c
@ -1,6 +1,7 @@
|
||||
package se.su.dsv.scipro.match.dao;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.junit.Assert;
|
||||
@ -70,6 +71,12 @@ public class TestKeywordDao {
|
||||
Set<Keyword> keywords = target.getKeywords(standard, true);
|
||||
Assert.assertEquals(new HashSet<Keyword>(
|
||||
Arrays.asList(new Keyword[] { keyword1, keyword2 })), keywords);
|
||||
|
||||
KeywordDao.Params params = new KeywordDao.Params();
|
||||
params.setType(standard);
|
||||
|
||||
List<Keyword> keywordList = target.getKeywordList(params);
|
||||
Assert.assertEquals(Arrays.asList(new Keyword[]{keyword1, keyword2}), keywordList);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user