andreachild commented on PR #2982:
URL: https://github.com/apache/tinkerpop/pull/2982#issuecomment-2597048682
For the failing `ImportGremlinPluginTest` it could be changed as such:
```
@Test
public void shouldImportWildcardMethod() throws Exception {
final Method version = Gremlin.class.getMethod("version");
final Method majorVersion = Gremlin.class.getMethod("majorVersion");
final ImportGremlinPlugin module = ImportGremlinPlugin.build()
.methodImports(Collections.singletonList(Gremlin.class.getCanonicalName() +
"#*")).create();
final DefaultImportCustomizer customizer = (DefaultImportCustomizer)
module.getCustomizers().get()[0];
assertEquals(1, module.getCustomizers().get().length);
assertThat(customizer.getMethodImports(), hasItems(version,
majorVersion));
// will also have the static main() method
assertEquals(3, customizer.getMethodImports().size());
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]