package com.openxc.measurements;

import junit.framework.TestCase;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;


public class BrakePedalStatusTest extends TestCase {
    BrakePedalStatus measurement;

    @Override
    public void setUp() {
        measurement = new BrakePedalStatus(new Boolean(false));
    }

    public void testGet() {
        assertThat(measurement.getValue().booleanValue(), equalTo(false));
    }

    public void testHasNoRange() {
        assertFalse(measurement.hasRange());
    }
}

@@ -554,11 +554,122 @@
 );%0A    %7D
+%0A%0A    public void testGenericName() %7B%0A        assertEquals(measurement.getGenericName(), measurement.ID);%0A    %7D
 %0A%7D%0A

Test that genericName method is overridden.