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

Francesco Mari commented on OAK-4738:
-------------------------------------

[~dulceanu], if you want to test specifically for a failure in the DNS 
resolution, you could refactor a bit {{ClientIpFilter}} and extract the calls 
to {{InetAddress.getByName()}} into their own interface, say 
{{InetAddressResolver}}. You could then write a test with bogus implementation 
of {{InetAddressResolver}} and assert the behaviour of the {{ClientIpFilter}}.

> Fix unit tests in FailoverIPRangeTest
> -------------------------------------
>
>                 Key: OAK-4738
>                 URL: https://issues.apache.org/jira/browse/OAK-4738
>             Project: Jackrabbit Oak
>          Issue Type: Technical task
>          Components: segment-tar
>            Reporter: Andrei Dulceanu
>            Assignee: Andrei Dulceanu
>             Fix For: Segment Tar 0.0.20
>
>         Attachments: OAK-4738-01.patch, OAK-4738-02.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to