CS计算机代考程序代写 junit package it.polito.po.test;
package it.polito.po.test; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import it.polito.oop.futsal.Fields; import it.polito.oop.futsal.FutsalException; import it.polito.oop.futsal.Fields.Features; public class TestR1_Fields { Fields company; @Before public void setUp() { company = new Fields(); } @Test public void testFields() throws FutsalException { company.defineFields(new Features(false,false,false), new Features(true,true,false), new Features(true,false,true), new Features(true,true,true) ); assertEquals(4,company.countFields()); assertEquals(3,company.countIndoor()); } @Test(expected=FutsalException.class) public void testFieldsWrong() throws […]
CS计算机代考程序代写 junit package it.polito.po.test; Read More »