Package org.apache.stanbol.enhancer.engines.celi.langid.impl

Examples of org.apache.stanbol.enhancer.engines.celi.langid.impl.LanguageIdentifierClientHTTP


     * @throws IOException
     * @throws SOAPException
     */
    @Test(expected=IOException.class)
    public void testNonExistentAccountAuthentification() throws IOException, SOAPException {
        LanguageIdentifierClientHTTP testClient = new LanguageIdentifierClientHTTP(
            new URL(CELI_LANGID_SERVICE_URL), "nonexistent:useraccount",5);
        testClient.guessQueryLanguage("This is a dummy request");
    }
View Full Code Here


     * @throws IOException
     * @throws SOAPException
     */
    @Test(expected=IOException.class)
    public void testIllegalFormattedAuthentification() throws IOException, SOAPException {
        LanguageIdentifierClientHTTP testClient = new LanguageIdentifierClientHTTP(
            new URL(CELI_LANGID_SERVICE_URL), "illeagalFormatted",5);
        testClient.guessQueryLanguage("This is a dummy request");
    }
View Full Code Here

     * @throws IOException
     * @throws SOAPException
     */
    @Test
    public void testTestAccount() throws IOException, SOAPException {
        LanguageIdentifierClientHTTP testClient = new LanguageIdentifierClientHTTP(
            new URL(CELI_LANGID_SERVICE_URL), null,5);
        try {
            Assert.assertNotNull(testClient.guessQueryLanguage("This is a dummy request"));
        } catch (IOException e) {
            RemoteServiceHelper.checkServiceUnavailable(e);
        }
    }
View Full Code Here

     * @throws IOException
     * @throws SOAPException
     */
    @Test(expected=IOException.class)
    public void testNonExistentAccountAuthentification() throws IOException, SOAPException {
        LanguageIdentifierClientHTTP testClient = new LanguageIdentifierClientHTTP(
            new URL(CELI_LANGID_SERVICE_URL), "nonexistent:useraccount");
        testClient.guessQueryLanguage("This is a dummy request");
    }
View Full Code Here

     * @throws IOException
     * @throws SOAPException
     */
    @Test(expected=IOException.class)
    public void testIllegalFormattedAuthentification() throws IOException, SOAPException {
        LanguageIdentifierClientHTTP testClient = new LanguageIdentifierClientHTTP(
            new URL(CELI_LANGID_SERVICE_URL), "illeagalFormatted");
        testClient.guessQueryLanguage("This is a dummy request");
    }
View Full Code Here

     * @throws IOException
     * @throws SOAPException
     */
    @Test
    public void testTestAccount() throws IOException, SOAPException {
        LanguageIdentifierClientHTTP testClient = new LanguageIdentifierClientHTTP(
            new URL(CELI_LANGID_SERVICE_URL), null);
        try {
            Assert.assertNotNull(testClient.guessQueryLanguage("This is a dummy request"));
        } catch (IOException e) {
            RemoteServiceHelper.checkServiceUnavailable(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.enhancer.engines.celi.langid.impl.LanguageIdentifierClientHTTP

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.