/** * Accuracy test of <code>setProperty(String key, Serializable value)</code> method. * * <p>Use set null to remove property. * * @throws Exception throw exception to JUnit. */ public void testSetPropertyAccuracy2() throws Exception { Map map = new HashMap(); header.setProperty("key1", "value1"); header.setProperty("key1", "value2"); header.setProperty("key2", "value3"); header.setProperty("key2", null); map.put("key1", "value2"); TestHelper.assertTeamHeader(header, null, false, -1, -1, -1, -1, null, map); }
/** * Accuracy test of <code>TeamHeader(String, boolean, long, long, long, int, String)</code> * constructor. * * <p>Call this constructor with 100 as percentage. * * @throws Exception throw exception to JUnit. */ public void testTeamHeader2_Accuracy4() throws Exception { header = new TeamHeader("a", true, 0, 0, 0, 100, "b"); TestHelper.assertTeamHeader(header, "a", true, 0, 0, 0, 100, "b", new HashMap()); }
/** * Accuracy test of <code>TeamHeader(String, boolean, long, long, long, int, String)</code> * constructor. * * <p>Call this constructor with null name and description. * * @throws Exception throw exception to JUnit. */ public void testTeamHeader2_Accuracy2() throws Exception { header = new TeamHeader(null, true, 1, 2, 3, 4, null); TestHelper.assertTeamHeader(header, null, true, 1, 2, 3, 4, null, new HashMap()); }
/** * Accuracy test of <code>setDescription(String name)</code> method. * * <p>Call this method with a simple string. * * @throws Exception throw exception to JUnit. */ public void testSetDescriptionAccuracy3() throws Exception { header.setDescription("string"); TestHelper.assertTeamHeader(header, null, false, -1, -1, -1, -1, "string", new HashMap()); }
/** * Accuracy test of <code>TeamHeader()</code> constructor. * * <p>Call this constructor and then check the inner fields. * * @throws Exception throw exception to JUnit. */ public void testTeamHeader1_Accuracy() throws Exception { header = new TeamHeader(); TestHelper.assertTeamHeader(header, null, false, -1, -1, -1, -1, null, new HashMap()); }
/** * Accuracy test of <code>setCaptainPaymentPercentage(int captainPaymentPercentage)</code> method. * * <p>Set 100 percentage. * * @throws Exception throw exception to JUnit. */ public void testSetCaptainPaymentPercentageAccuracy3() throws Exception { header.setCaptainPaymentPercentage(100); TestHelper.assertTeamHeader(header, null, false, -1, -1, -1, 100, null, new HashMap()); }
/** * Accuracy test of <code>setCaptainResourceId(long captainResourceId)</code> method. * * <p>Set a zero captainResourceId. * * @throws Exception throw exception to JUnit. */ public void testSetCaptainResourceIdAccuracy2() throws Exception { header.setCaptainResourceId(0); TestHelper.assertTeamHeader(header, null, false, -1, -1, 0, -1, null, new HashMap()); }
/** * Accuracy test of <code>setTeamId(long teamId)</code> method. * * <p>Set a sample team id. * * @throws Exception throw exception to JUnit. */ public void testSetTeamIdAccuracy1() throws Exception { header.setTeamId(7); TestHelper.assertTeamHeader(header, null, false, -1, 7, -1, -1, null, new HashMap()); }
/** * Accuracy test of <code>setProjectId(long projectId)</code> method. * * <p>Set a zero project id. * * @throws Exception throw exception to JUnit. */ public void testSetProjectIdAccuracy2() throws Exception { header.setProjectId(0); TestHelper.assertTeamHeader(header, null, false, 0, -1, -1, -1, null, new HashMap()); }
/** * Accuracy test of <code>setFinalized(boolean finalized)</code> method. * * <p>Set false finalized. * * @throws Exception throw exception to JUnit. */ public void testSetFinalizedAccuracy2() throws Exception { header.setFinalized(true); header.setFinalized(false); TestHelper.assertTeamHeader(header, null, false, -1, -1, -1, -1, null, new HashMap()); }
/** * Accuracy test of <code>setName(String name)</code> method. * * <p>Call this method with empty string. * * @throws Exception throw exception to JUnit. */ public void testSetNameAccuracy2() throws Exception { header.setName(""); TestHelper.assertTeamHeader(header, "", false, -1, -1, -1, -1, null, new HashMap()); }