mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-05-02 16:53:07 +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
|
@Test
|
||||||
public void testGetComponentNonStandardQuery() throws URISyntaxException {
|
public void testGetComponentNonStandardQuery() throws URISyntaxException {
|
||||||
String componentIdentifier = "00040002";
|
String componentIdentifier = "0x00040002";
|
||||||
ComponentClass instance = new ComponentClass(Paths.get(this.getClass()
|
ComponentClass instance = new ComponentClass("2.23.133.18.3.1", Paths.get(this.getClass()
|
||||||
.getResource(JSON_FILE).toURI()), componentIdentifier);
|
.getResource(JSON_FILE).toURI()), componentIdentifier);
|
||||||
String resultCategory = instance.getCategory();
|
String resultCategory = instance.getCategory();
|
||||||
String resultComponent = instance.getComponent();
|
String resultComponent = instance.getComponent();
|
||||||
@ -228,8 +228,8 @@ public class ComponentClassTest {
|
|||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testGetComponentNonStandardQuery2() throws URISyntaxException {
|
public void testGetComponentNonStandardQuery2() throws URISyntaxException {
|
||||||
String componentIdentifier = "#00040002";
|
String componentIdentifier = "0x00040002";
|
||||||
ComponentClass instance = new ComponentClass(Paths.get(this.getClass()
|
ComponentClass instance = new ComponentClass("2.23.133.18.3.1", Paths.get(this.getClass()
|
||||||
.getResource(JSON_FILE).toURI()), componentIdentifier);
|
.getResource(JSON_FILE).toURI()), componentIdentifier);
|
||||||
String resultCategory = instance.getCategory();
|
String resultCategory = instance.getCategory();
|
||||||
String resultComponent = instance.getComponent();
|
String resultComponent = instance.getComponent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user