mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-29 15:44:14 +00:00
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:
parent
3269e81783
commit
a555fac716
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user