Search in sources :

Example 1 with ModelQueryBuilder

use of org.eclipse.vorto.repository.api.ModelQueryBuilder in project vorto by eclipse.

the class ModelRepositoryClientTest method testSearchModelBySpecificType.

@Test
public void testSearchModelBySpecificType() throws Exception {
    Collection<ModelInfo> models = modelRepo.search(new ModelQueryBuilder().type(ModelType.InformationModel).name("XDK").build()).get();
    assertTrue(models.size() > 0);
}
Also used : ModelQueryBuilder(org.eclipse.vorto.repository.api.ModelQueryBuilder) ModelInfo(org.eclipse.vorto.repository.api.ModelInfo) Test(org.junit.Test)

Aggregations

ModelInfo (org.eclipse.vorto.repository.api.ModelInfo)1 ModelQueryBuilder (org.eclipse.vorto.repository.api.ModelQueryBuilder)1 Test (org.junit.Test)1