@Test public void testGetClustersMembersForClusterId() { List<? extends ClusterMember> list = dict.getClusterItemsForCluster(35L); assertTrue(list.size() > 0); // for (ClusterMember cl : list) { // System.out.println(cl.getValue() + " - " + cl.retrieveItem() + " - " + // cl.retrieveCluster().getName()); // } }
@Test(expected = IllegalArgumentException.class) public void testGetClustersMembersForClusterIdNull() { List<? extends ClusterMember> list = dict.getClusterItemsForCluster(null); }
@Test public void testGetClustersMembersForClusterIdZero() { List<? extends ClusterMember> list = dict.getClusterItemsForCluster(0L); assertTrue(list.size() == 0); }