Finished updating the unit test. The value of being passed in wasn't of a format that the component class could handle.

This commit is contained in:
Cyrus 2021-06-29 20:33:59 -04:00
parent 3269e81783
commit a555fac716

View File

@ -213,8 +213,8 @@ public class ComponentClassTest {
*/
@Test
public void testGetComponentNonStandardQuery() throws URISyntaxException {
String componentIdentifier = "00040002";
ComponentClass instance = new ComponentClass(Paths.get(this.getClass()
String componentIdentifier = "0x00040002";
ComponentClass instance = new ComponentClass("2.23.133.18.3.1", Paths.get(this.getClass()
.getResource(JSON_FILE).toURI()), componentIdentifier);
String resultCategory = instance.getCategory();
String resultComponent = instance.getComponent();
@ -228,8 +228,8 @@ public class ComponentClassTest {
*/
@Test
public void testGetComponentNonStandardQuery2() throws URISyntaxException {
String componentIdentifier = "#00040002";
ComponentClass instance = new ComponentClass(Paths.get(this.getClass()
String componentIdentifier = "0x00040002";
ComponentClass instance = new ComponentClass("2.23.133.18.3.1", Paths.get(this.getClass()
.getResource(JSON_FILE).toURI()), componentIdentifier);
String resultCategory = instance.getCategory();
String resultComponent = instance.getComponent();