You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Kevin Risden (JIRA)" <ji...@apache.org> on 2019/02/19 20:09:00 UTC

[jira] [Commented] (KNOX-1786) Use mocking to simplify DefaultRemoteConfigurationMonitorTest

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

Kevin Risden commented on KNOX-1786:
------------------------------------

This change ensures that changes to GatewayConfig interface don't need to be applied to this test.

> Use mocking to simplify DefaultRemoteConfigurationMonitorTest
> -------------------------------------------------------------
>
>                 Key: KNOX-1786
>                 URL: https://issues.apache.org/jira/browse/KNOX-1786
>             Project: Apache Knox
>          Issue Type: Test
>          Components: Tests
>            Reporter: Kevin Risden
>            Assignee: Kevin Risden
>            Priority: Minor
>             Fix For: 1.3.0
>
>         Attachments: KNOX-1786.patch
>
>
> Currently DefaultRemoteConfigurationMonitorTest stubs out two classes to test IllegalStateException. This is cleaner with mocking to avoid the big stub classes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)