Package edu.stanford.bmir.protege.web.shared.entity

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


        assertEquals(types, request.getSearchedEntityTypes());
    }

    @Test
    public void getSearchStringReturnsSuppliedString() {
        EntityLookupRequest request = new EntityLookupRequest("Test");
        assertEquals("Test", request.getSearchString());
    }
View Full Code Here


        assertEquals("Test", request.getSearchString());
    }

    @Test
    public void getSearchLimitReturnsSuppliedSearchLimit() {
        EntityLookupRequest request = new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 5, Arrays.<EntityType<?>>asList(EntityType.CLASS));
        assertEquals(5, request.getSearchLimit());
    }
View Full Code Here

        assertEquals(5, request.getSearchLimit());
    }

    @Test
    public void getSearchTypeReturnsSuppliedType() {
        EntityLookupRequest request = new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 5, Arrays.<EntityType<?>>asList(EntityType.CLASS));
        assertEquals(SearchType.SUB_STRING_MATCH_IGNORE_CASE, request.getSearchType());
    }
View Full Code Here

        assertEquals(SearchType.SUB_STRING_MATCH_IGNORE_CASE, request.getSearchType());
    }

    @Test
    public void equalArgsGiveEqualRequests() {
        EntityLookupRequest requestA = new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 5, Arrays.<EntityType<?>>asList(EntityType.CLASS));
        EntityLookupRequest requestB = new EntityLookupRequest("Test", SearchType.SUB_STRING_MATCH_IGNORE_CASE, 5, Arrays.<EntityType<?>>asList(EntityType.CLASS));
        assertEquals(requestA.hashCode(), requestB.hashCode());
        assertEquals(requestA, requestB);
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.entity.EntityLookupRequest

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.