/* Summary: Originally contained the functionality in sendValid. Another method was created in order to test previously untested functionality. tc0: The sensor values result in a data packet of the correct length and with correct delimiters. */ static void send(double torque, double ir, double uv) throws Exception { SensorData data = new SensorData(torque, ir, uv); ByteArrayOutputStream s = SensorData.getSensorData(data); sendValid(s); }