assertEquals(doc1.getNumberOfTokens(), 0);
}
@Test
public void testConstructor2() {
HMapII hmap1 = new HMapII();
hmap1.put(1, 22);
hmap1.put(2, 5);
hmap1.put(3, 10);
Document doc1 = new Document(hmap1);
assertTrue(doc1.getGamma() == null);
assertEquals(doc1.getNumberOfTopics(), 0);
assertTrue(doc1.getContent() != null);
assertEquals(doc1.getNumberOfTokens(), 37);
assertEquals(doc1.getNumberOfTypes(), hmap1.size());
Iterator<Integer> itr = doc1.getContent().keySet().iterator();
while (itr.hasNext()) {
int key = itr.next();
assertEquals(doc1.getContent().get(key), hmap1.get(key));
}
}