Examples of EntityLookupRequest


Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

*/
public class EntityLookupRequestTestCase {

    @Test(expected = NullPointerException.class)
    public void nullSearchStringThrowsNullPointerException() {
        new EntityLookupRequest(null);
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

        new EntityLookupRequest(null);
    }

    @Test(expected = NullPointerException.class)
    public void nullSearchStringThrowsNullPointerException2() {
        new EntityLookupRequest(null, SearchType.SUB_STRING_MATCH_IGNORE_CASE);
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

        new EntityLookupRequest(null, SearchType.SUB_STRING_MATCH_IGNORE_CASE);
    }

    @Test(expected = NullPointerException.class)
    public void nullSearchStringThrowsNullPointerException3() {
        new EntityLookupRequest(null, SearchType.SUB_STRING_MATCH_IGNORE_CASE, 20, Arrays.<EntityType<?>>asList(EntityType.CLASS));
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

        new EntityLookupRequest(null, SearchType.SUB_STRING_MATCH_IGNORE_CASE, 20, Arrays.<EntityType<?>>asList(EntityType.CLASS));
    }

    @Test(expected = NullPointerException.class)
    public void nullSearchTypeThrowsNullPointerException2() {
        new EntityLookupRequest("Test", null);
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

        new EntityLookupRequest("Test", null);
    }

    @Test(expected = NullPointerException.class)
    public void nullSearchTypeThrowsNullPointerException3() {
        new EntityLookupRequest("Test", null, 20, Arrays.<EntityType<?>>asList(EntityType.CLASS));
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

        new EntityLookupRequest("Test", null, 20, Arrays.<EntityType<?>>asList(EntityType.CLASS));
    }

    @Test(expected = IllegalArgumentException.class)
    public void negativeSearchLimitThrowsIllegalArgumentException() {
        new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, -1, Arrays.<EntityType<?>>asList(EntityType.CLASS));
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

        new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, -1, Arrays.<EntityType<?>>asList(EntityType.CLASS));
    }

    @Test(expected = NullPointerException.class)
    public void nullSearchedEntityTypesThrowsNullPointerExeception() {
        new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 1, null);
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

        new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 1, null);
    }

    @Test
    public void defaultSearchTypeIsTheSameAsSearchTypeDefault() {
        EntityLookupRequest request = new EntityLookupRequest("Test");
        assertEquals(SearchType.getDefault(), request.getSearchType());
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

    @Test
    public void suppliedSearchedEntityTypesIsCopied() {
        Set<EntityType<?>> types = new HashSet<EntityType<?>>();
        types.add(EntityType.CLASS);
        Set<EntityType<?>> typesCopy = new HashSet<EntityType<?>>(types);
        EntityLookupRequest request = new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 20, types);
        types.add(EntityType.OBJECT_PROPERTY);
        assertEquals(typesCopy, request.getSearchedEntityTypes());
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

    @Test
    public void getSearchedEntityTypesReturnsCopy() {
        Set<EntityType<?>> types = new HashSet<EntityType<?>>();
        types.add(EntityType.CLASS);
        EntityLookupRequest request = new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 20, types);
        request.getSearchedEntityTypes().add(EntityType.OBJECT_PROPERTY);
        assertEquals(types, request.getSearchedEntityTypes());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.