Skip to content

Commit

Permalink
Add basic vendor check
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewX192 committed Dec 24, 2023
1 parent c75af9d commit 0c9f97d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public void testCapabilityConfiguredViaStrings() throws Exception {
DeviceDriver driver = factory.load("CapabilityStrings.driver");
AttributeMap attributes = driver.getBaseAttributes();

assertEquals("Iris", attributes.get(DeviceCapability.KEY_VENDOR));
assertEquals(10, attributes.size());
assertTrue(DevicePowerCapability.SOURCE_BATTERY.equalsIgnoreCase(attributes.get(DevicePowerCapability.KEY_SOURCE)));
assertEquals(false, attributes.get(DevicePowerCapability.KEY_LINECAPABLE));
Expand All @@ -73,6 +74,7 @@ public void testCapabilityConfiguredViaObjects() throws Exception {
DeviceDriver driver = factory.load("CapabilityObjects.driver");
AttributeMap attributes = driver.getBaseAttributes();

assertEquals("Iris", attributes.get(DeviceCapability.KEY_VENDOR));
assertEquals(10, attributes.size());
assertEquals(DevicePowerCapability.SOURCE_BATTERY, attributes.get(DevicePowerCapability.KEY_SOURCE));
assertEquals(false, attributes.get(DevicePowerCapability.KEY_LINECAPABLE));
Expand Down

0 comments on commit 0c9f97d

Please sign in to comment.