You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@marmotta.apache.org by "Jakob Frank (JIRA)" <ji...@apache.org> on 2013/01/28 17:19:13 UTC

[jira] [Commented] (MARMOTTA-35) Use RemoteServiceHelper for ldclient tests that depend on external webservices

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

Jakob Frank commented on MARMOTTA-35:
-------------------------------------

Basic idea: Provide a wrapper around LDClient (TestLDClient) which checks for typical Exceptions in the retrieveResource method. If such an Exception (e.g. UnknownHostException, SocketTimeoutException, IOException("Connection refused"), etc...) occurs, the test is ignored using org.junit.Assume.

                
> Use RemoteServiceHelper for ldclient tests that depend on external webservices
> ------------------------------------------------------------------------------
>
>                 Key: MARMOTTA-35
>                 URL: https://issues.apache.org/jira/browse/MARMOTTA-35
>             Project: Marmotta
>          Issue Type: Improvement
>          Components: Clients
>            Reporter: Sebastian Schaffert
>            Assignee: Jakob Frank
>            Priority: Minor
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> As discussed in the IRC meeting, we should make sure that ldclient tests do not fail if the webservices they use are not available.
> http://wilderness.apache.org/archives/apachemarmotta-25_01_2013-7494.html
> Stanbol uses a so-called RemoteServiceHelper for this purpose:
> http://svn.apache.org/repos/asf/stanbol/trunk/enhancer/generic/test/src/main/java/org/apache/stanbol/enhancer/test/helper/RemoteServiceHelper.java
> and
> http://svn.apache.org/repos/asf/stanbol/trunk/enhancement-engines/celi/src/test/java/org/apache/stanbol/enhancer/engines/celi/CeliHttpTest.java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira