@Test public final void testGetProposals() { List<String[]> proposals = packageProposalsList.getProposals("setup"); if (!(proposals.size() == 1)) { fail("getProposals failed, setup package was retrieve as proposals!"); } }
@Test public final void testGetRpmInfo() { if (Utils.fileExist("/bin/rpm")) { if (!packageProposalsList.getRpmInfo("rpm").startsWith("<b>Name: </b>rpm")) { fail("getRpmInfo failed, rpm package info doesn't start with '<b>Name:<b> rpm'"); } } }
@Test public final void testGetRpmInfo2() { if (packageProposalsList.getValue("test").indexOf("test") == -1) { fail("getRpmInfo failed, test package info doesn't contain 'test'"); } }