mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-24 09:40:30 -06:00
Test new protocol methods
This commit is contained in:
parent
1572190c6a
commit
b1dd6ffd1e
@ -73,7 +73,8 @@ public class NBIOTest {
|
||||
|
||||
@Test
|
||||
public void testExpandPrefixesAndFullName() {
|
||||
NBIO extensions = (NBIO) NBIO.all().searchPrefixes("act1","act2").pathname("foo.bar");
|
||||
ParseProtocol proto = new ParseProtocol("local:foo.bar");
|
||||
NBIO extensions = (NBIO) NBIO.protocol(proto.getProtocols()).searchPrefixes("act1","act2").pathname(proto.getPath());
|
||||
LinkedHashSet<String> searches = extensions.expandNamesAndSuffixes();
|
||||
assertThat(searches).containsExactly("foo.bar","act1/foo.bar","act2/foo.bar");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user