コード例 #1
0
 /** Test of setTeamName method, of class Teams. */
 @Test
 public void testSetTeamName() {
   System.out.println("setTeamName");
   String expResult = "PRJ666 NEW Team";
   valid.setTeamName(expResult);
   String result = valid.getTeamName();
   assertEquals(expResult, result);
 }
コード例 #2
0
 /** Test of setTeamEmail method, of class Teams. */
 @Test
 public void testSetTeamEmail() {
   System.out.println("setTeamEmail");
   String expResult = "[email protected];[email protected]";
   valid.setTeamEmail(expResult);
   String result = valid.getTeamEmail();
   assertEquals(expResult, result);
 }
コード例 #3
0
 /** Test of setTeamStatus method, of class Teams. */
 @Test
 public void testSetTeamStatus() {
   System.out.println("setTeamStatus");
   Integer expResult = 1;
   valid.setTeamStatus(expResult);
   Integer result = valid.getTeamStatus();
   assertEquals(expResult, result);
 }
コード例 #4
0
 /** Test of setHasRegistered method, of class Teams. */
 @Test
 public void testSetHasRegistered() {
   System.out.println("setHasRegistered");
   Integer expResult = 1;
   valid.setHasRegistered(expResult);
   Integer result = valid.getHasRegistered();
   assertEquals(expResult, result);
 }
コード例 #5
0
 /** Test of setTeamLogo method, of class Teams. */
 @Test
 public void testSetTeamLogo() {
   System.out.println("setTeamLogo");
   String expResult = "http://www.senecacollege.ca";
   valid.setTeamLogo(expResult);
   String result = valid.getTeamLogo();
   assertEquals(expResult, result);
 }
コード例 #6
0
 /** Test of setTeamDescription method, of class Teams. */
 @Test
 public void testSetTeamDescription() {
   System.out.println("setTeamDescription");
   String expResult = "Sample description for the team";
   valid.setTeamDescription(expResult);
   String result = valid.getTeamDescription();
   assertEquals(expResult, result);
 }
コード例 #7
0
 /** Test of setTeamConstraints method, of class Teams. */
 @Test
 public void testSetTeamConstraints() {
   System.out.println("setTeamConstraints");
   String expResult = "JAVA, MYSQL, GLASSFISH, JSP, C#, ASP.NET";
   valid.setTeamConstraints(expResult);
   String result = valid.getTeamConstraints();
   assertEquals(expResult, result);
 }
コード例 #8
0
 @Before
 public void setUp() {
   valid = new Teams();
   valid.setHasRegistered(0);
   valid.setTeamConstraints("JAVA, MYSQL, GLASSFISH, JSP");
   valid.setTeamDescription("Sample description for the team");
   valid.setTeamEmail("[email protected];[email protected]");
   valid.setTeamLogo("http://www.senecacollege.ca");
   valid.setTeamName("PRJ666 Team");
   valid.setTeamStatus(0);
 }