* Tests for pickIdealCreature.
*/
@Test
public void testPickIdealCreature() {
//final DailyMonsterQuest dmqp = new DailyMonsterQuest();
final DailyMonsterQuest.DailyQuestAction dmqpick = new DailyQuestAction();
CreatureTestHelper.generateRPClasses();
assertNull("empty list", dmqpick.pickIdealCreature(-1, false, new LinkedList<Creature>()));
final LinkedList<Creature> creatureList = new LinkedList<Creature>();
creatureList.add(SingletonRepository.getEntityManager().getCreature("rat"));
assertThat("1 rat in list", dmqpick.pickIdealCreature(-1, false, creatureList).getName(), is("rat"));
assertThat("1 rat in list", dmqpick.pickIdealCreature(1000, false, creatureList).getName(), is("rat"));
creatureList.add(SingletonRepository.getEntityManager().getCreature("balrog"));
assertThat("rat and balrog in list", dmqpick.pickIdealCreature(-1, false, creatureList).getName(), is("rat"));
}