Skip to content

tzebrowski/ObdMetricsTest

Repository files navigation

OBD Metrics Test

Deploy

About

This project contains set of utilities which allows to tests OBD2 PIDs with the focus on business aspects of its development.

Usage

The framework under org.obd.metrics.test package exposes set of interfaces like: CodecTest which allows to write clean PIDs tests .

interface MultiJet_2_2_Test extends CodecTest {

	final String RESOURCE_NAME = "giulia_2_2_multijet.json";

	@Override
	default String getPidFile() {
		return RESOURCE_NAME;
	}
}

public class AirTempMafTest implements MultiJet_2_2_Test {

	@ParameterizedTest
	@CsvSource(value = { 
			"62193F0000=-40",
			"62193F1100=47",
	}, delimiter = '=')
	public void test(String input, Integer expected) {
		assertEquals(input, expected);
	}
}

About

ObdMetricsTest

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
license-header

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages