cinchapi / concourse

Distributed database warehouse for transactions, search and analytics across time.
http://concoursedb.com
Apache License 2.0
315 stars 234 forks source link

CON-625: Check for plugin restricted methods in Plugins that have a parent class #375

Closed Tylerwbrown closed 5 years ago

Tylerwbrown commented 5 years ago

http://jira.cinchapi.com/browse/CON-625

jtnelson commented 5 years ago

@Tylerwbrown You should also create a unit test for this in https://github.com/cinchapi/concourse/tree/develop/concourse-plugin-core-tests/src/test/java/com/cinchapi/concourse/server/plugin

To do so, you'll need to create a Plugin that extends https://github.com/cinchapi/concourse/blob/develop/concourse-plugin-core-tests/src/test/java/com/cinchapi/concourse/server/plugin/TestPlugin.java and annotate one of the methods in TestPlugin as @PluginRestricted (NOTE: You should create a new method with this annotation)

Then create a test class that extends ClientServerTest implements PluginTest and try to invoke the method that is PluginRestricted