@Test public void testList() { INotificationsThriftService.Client client = new INotificationsThriftService.Client(protocol); try { List<Info> result = client.listAllOfApp("10", "10208", "0", 0L, 10); Assert.assertNotNull(result); Assert.assertTrue(result.size() > 0); for (Info info : result) { System.out.println(info.getId()); } } catch (TException e) { e.printStackTrace(); Assert.assertTrue(false); } }