@Test public void createCategoryRepresentationContainsExpectedData() { final Category category = this.component.createCategoryRepresentation(CATEGORY_1_NAME); Assert.assertEquals(CATEGORY_1_NAME, category.getCategory()); Assert.assertNull(category.getVocabularies()); verify(this.autolinker, never()).build(); }
@Override public org.phenotips.vocabularies.rest.model.Category createCategoryRepresentation(final String categoryId) { org.phenotips.vocabularies.rest.model.Category result = new org.phenotips.vocabularies.rest.model.Category(); result.withCategory(categoryId); return result; }
DefaultDomainObjectFactory implements DomainObjectFactory { @Override public org.phenotips.vocabularies.rest.model.Category createCategoryRepresentation(final String categoryId) { org.phenotips.vocabularies.rest.model.Category result = new org.phenotips.vocabularies.rest.model.Category(); result.withCategory(categoryId); return result; } }
DefaultDomainObjectFactory implements DomainObjectFactory { @Override public org.phenotips.vocabularies.rest.model.Category createCategoryRepresentation(final String categoryId) { org.phenotips.vocabularies.rest.model.Category result = new org.phenotips.vocabularies.rest.model.Category(); result.withCategory(categoryId); return result; }  }
DefaultDomainObjectFactory implements DomainObjectFactory { @Override public org.phenotips.vocabularies.rest.model.Category createCategoryRepresentation(final String categoryId) { org.phenotips.vocabularies.rest.model.Category result = new org.phenotips.vocabularies.rest.model.Category(); result.withCategory(categoryId); return result; }  @Override org.phenotips.vocabularies.rest.model.Vocabulary createVocabularyRepresentation(Vocabulary vocabulary); @Override List<org.phenotips.vocabularies.rest.model.Vocabulary> createVocabulariesRepresentation(
        final Collection<Vocabulary> vocabularies,
        final Autolinker linker,
        final Function<Vocabulary, List<org.phenotips.vocabularies.rest.model.Category>> categorySupplier); @Override org.phenotips.vocabularies.rest.model.Vocabulary createLinkedVocabularyRepresentation(
        final Vocabulary vocabulary,
        final Autolinker linker,
        final Function<Vocabulary, List<org.phenotips.vocabularies.rest.model.Category>> categorySupplier); @Override org.phenotips.vocabularies.rest.model.Category createCategoryRepresentation(final String categoryId); @Override List<Category> createCategoriesRepresentation(
        final Collection<String> categoryIds,
        final Autolinker linker,
        final Function<String, List<org.phenotips.vocabularies.rest.model.Vocabulary>> vocabularySupplier); @Override org.phenotips.vocabularies.rest.model.Category createLinkedCategoryRepresentation(
        final String categoryId,
        final Autolinker linker,
        final Function<String, List<org.phenotips.vocabularies.rest.model.Vocabulary>> vocabularySupplier); }
DefaultDomainObjectFactory implements DomainObjectFactory { @Override public org.phenotips.vocabularies.rest.model.Category createCategoryRepresentation(final String categoryId) { org.phenotips.vocabularies.rest.model.Category result = new org.phenotips.vocabularies.rest.model.Category(); result.withCategory(categoryId); return result; }  @Override org.phenotips.vocabularies.rest.model.Vocabulary createVocabularyRepresentation(Vocabulary vocabulary); @Override List<org.phenotips.vocabularies.rest.model.Vocabulary> createVocabulariesRepresentation(
        final Collection<Vocabulary> vocabularies,
        final Autolinker linker,
        final Function<Vocabulary, List<org.phenotips.vocabularies.rest.model.Category>> categorySupplier); @Override org.phenotips.vocabularies.rest.model.Vocabulary createLinkedVocabularyRepresentation(
        final Vocabulary vocabulary,
        final Autolinker linker,
        final Function<Vocabulary, List<org.phenotips.vocabularies.rest.model.Category>> categorySupplier); @Override org.phenotips.vocabularies.rest.model.Category createCategoryRepresentation(final String categoryId); @Override List<Category> createCategoriesRepresentation(
        final Collection<String> categoryIds,
        final Autolinker linker,
        final Function<String, List<org.phenotips.vocabularies.rest.model.Vocabulary>> vocabularySupplier); @Override org.phenotips.vocabularies.rest.model.Category createLinkedCategoryRepresentation(
        final String categoryId,
        final Autolinker linker,
        final Function<String, List<org.phenotips.vocabularies.rest.model.Vocabulary>> vocabularySupplier);  }