@@ -0,0 +1,1580 @@
+/*                                                                      *%5C%0A**                    SICU Stress Measurement System                    **%0A**                      Project P04  %7C  C380 Team A                     **%0A**          EBME 380: Biomedical Engineering Design Experience          **%0A**                    Case Western Reserve University                   **%0A**                          2016 Fall Semester                          **%0A%5C*                                                                      */%0A%0Apackage edu.cwru.sicu_sms.util;%0A%0Aimport org.junit.jupiter.api.*;%0A%0Aimport java.util.Arrays;%0A%0Aimport static org.junit.jupiter.api.Assertions.*;%0A%0A/**%0A * Test class for %7B@link EKGSerialPort%7D.%0A *%0A * @since December 14, 2016%0A * @author Ted Frohlich %3Cttf10@case.edu%3E%0A * @author Abby Walker %3Camw138@case.edu%3E%0A */%0Aclass EKGSerialPortTest %7B%0A    %0A    private static long READ_DURATION = (long) 3e9;  // 3 seconds, expressed in nanoseconds%0A    %0A    private EKGSerialPort serialPort;%0A    %0A    @BeforeEach%0A    void openPort() %7B%0A        serialPort = new EKGSerialPort();%0A        serialPort.openPort();%0A    %7D%0A    %0A    @Test%0A    void readData() %7B%0A        byte%5B%5D data;%0A        %0A        long startTime = System.nanoTime();%0A        do %7B%0A            data = serialPort.readData();%0A            %0A            if (data != null && data.length %3E 0) %7B%0A                System.out.println(Arrays.toString(data));%0A            %7D%0A        %7D while (System.nanoTime() - startTime %3C READ_DURATION);%0A    %7D%0A    %0A    @AfterEach%0A    void closePort() %7B%0A        serialPort.closePort();%0A    %7D%0A    %0A%7D

Create test class for 'EKGSerialPort'