Skip to content

Commit 21c2144

Browse files
committed
Add unit test for RootHubInterface#getSetting
1 parent 603f50e commit 21c2144

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/java/org/usb4java/javax/RootHubInterfaceTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,15 @@ public void testGetActiveSetting()
129129
assertSame(this.iface, this.iface.getActiveSetting());
130130
}
131131

132+
/**
133+
* Tests the {@link RootHubInterface#getSetting(byte)} method.
134+
*/
135+
@Test
136+
public void testGetSetting()
137+
{
138+
assertSame(this.iface, this.iface.getSetting((byte) 0));
139+
}
140+
132141
/**
133142
* Tests the {@link RootHubInterface#containsSetting(byte)} method.
134143
*/

0 commit comments

Comments
 (0)