Skip to content

tzebrowski/ObdMetricsTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages