@@ -0,0 +1,1519 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage edu.stuy.commands;%0A%0Aimport crio.hardware.DigitalSidecar;%0Aimport edu.stuy.InitTests;%0Aimport edu.stuy.JoeBot;%0Aimport edu.wpi.first.wpilibj.Timer;%0Aimport org.junit.*;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A *%0A * @author Kevin Wang%0A */%0Apublic class ConveyorTest %7B%0A    %0A    public ConveyorTest() %7B%0A    %7D%0A%0A    @BeforeClass%0A    public static void setUpClass() throws Exception %7B%0A        InitTests.setUpTests();%0A        JoeBot j = new JoeBot();%0A        j.robotInit();%0A    %7D%0A%0A    @AfterClass%0A    public static void tearDownClass() throws Exception %7B%0A        InitTests.tearDownTests();%0A    %7D%0A    %0A    @Before%0A    public void setUp() %7B%0A    %7D%0A    %0A    @After%0A    public void tearDown() %7B%0A    %7D%0A    // TODO add test methods here.%0A    // The methods must be annotated with annotation @Test. For example:%0A    //%0A    // @Test%0A    // public void hello() %7B%7D%0A    @Test%0A    public void conveyorExists() %7B%0A        System.out.println(CommandBase.conveyor);%0A        assertTrue(CommandBase.conveyor != null);%0A    %7D%0A    %0A    @Test%0A    public void testConveyorTurnsOn() %7B%0A        ConveyorConvey cmd = new ConveyorConvey();%0A        cmd.initialize();%0A        double startTime = Timer.getFPGATimestamp();%0A        while (Timer.getFPGATimestamp() - startTime %3C 1) %7B%0A            cmd.execute();%0A        %7D%0A        assertEquals(1, DigitalSidecar.register%5B8%5D, 0);%0A        cmd.end();%0A        assertEquals(1, DigitalSidecar.register%5B8%5D, 0);%0A    %7D%0A%7D%0A

Add ConveyorTest class.