prj03-group06/src/tests/GraphPanelTest.java
@Test
	void testUpdateSensorValue() {
		GraphPanel panel = new GraphPanel(500, 650);
		int value = 50;
		for (int i=0; i<GraphPanel.NUM_SENSORS; i++) {
			panel.setSensorType(i);
			panel.updateSensorValue(i, value);
			assertEquals(value, panel.getCurrentSensorValue());
		}
	}
/**
	 * Tests the GraphPanel update sensor value method.
	 */
Tests the GraphPanel update sensor value method.
Tests the GraphPanel update sensor value method .
@Test
	void testUpdateSensorValue() {
		GraphPanel panel = new GraphPanel(500, 650);
		int value = 50;
		for (int i=0; i<GraphPanel.NUM_SENSORS; i++) {
			panel.setSensorType(i);
			panel.updateSensorValue(i, value);
			assertEquals(value, panel.getCurrentSensorValue());
		}
	}
@ Test void testUpdateSensorValue ( ) { GraphPanel panel = new GraphPanel ( 500 , 650 ) ; int value = 50 ; for ( int i = 0 ; i < GraphPanel . NUM_SENSORS ; i ++ ) { panel . setSensorType ( i ) ; panel . updateSensorValue ( i , value ) ; assertEquals ( value , panel . getCurrentSensorValue ( ) ) ; } }
Tests the GraphPanel update sensor value method.
Tests the GraphPanel update sensor value method .