[ 
https://issues.apache.org/jira/browse/HBASE-3754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017196#comment-13017196
 ] 

Jean-Daniel Cryans commented on HBASE-3754:
-------------------------------------------

Well at least two since most of the time you need to pass a conf down the 
stream:

{code}
Server mockedServer = mock(Server.class);
when(mockedServer.getConfiguration()).thenReturn(HBaseConfiguration.create());
{code}

But that's already a lot better than what we have.

> Define a DummyServer for tests
> ------------------------------
>
>                 Key: HBASE-3754
>                 URL: https://issues.apache.org/jira/browse/HBASE-3754
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 0.90.1
>            Reporter: Jean-Daniel Cryans
>             Fix For: 0.92.0
>
>
> There's a number of unit tests that implement their own Server just to pass 
> it to some other class without implementing anything specific except getting 
> the Configuration. We should define one that all could use and refactor the 
> others out.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to