[
https://issues.apache.org/jira/browse/HBASE-16536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15452178#comment-15452178
]
Niels Basjes edited comment on HBASE-16536 at 8/31/16 1:22 PM:
---------------------------------------------------------------
Here you can see an example on how I use this:
https://github.com/nielsbasjes/flink/blob/FLINK-4311/flink-batch-connectors/flink-hbase/src/test/java/org/apache/flink/addons/hbase/TestTableInputFormat.java
Essentially:
# Extend the testing class from HBaseTestingClusterAutostarter
# Add a @Before method that creates and fills the required tables.
# Simply run all the tests where the user application can rely on HBase being
'just there'.
was (Author: nielsbasjes):
Here you can see an example on how I use this:
https://github.com/nielsbasjes/flink/blob/FLINK-4311/flink-batch-connectors/flink-hbase/src/test/java/org/apache/flink/addons/hbase/TestTableInputFormat.java
Essentially:
# Extend the testing class from HBaseTestingClusterAutostarter
# Add a @Before method that creates and fills the required tables.
# Simply run all the tests where the user application can reply on HBase being
'just there'.
> Make the HBase minicluster easy to use for testing downstream applications.
> ---------------------------------------------------------------------------
>
> Key: HBASE-16536
> URL: https://issues.apache.org/jira/browse/HBASE-16536
> Project: HBase
> Issue Type: Improvement
> Reporter: Niels Basjes
> Assignee: Niels Basjes
> Attachments: HBASE-16536-01.patch, HBASE-16536-02.patch
>
>
> In many applications I write I use HBase to store information.
> A big problem is testing these applications.
> I have seen several situations where people have written tests that create
> tables in the development cluster and due to firewalls and such couldn't run
> those tests from Jenkins.
> A while ago I wrote the FilterTestingCluster class that makes unit testing
> the client side filters a lot easier. With this ticket I propose to make this
> more generic and make it so that user applications can easily incorporate it
> into their own unit tests without any major modifications to their
> application.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)