@Test public void buildThrowsExceptionIfAnyVocabularyTermIsNull() { final List<VocabularyTerm> presentTerms = null; final List<VocabularyTerm> absentTerms = Collections.emptyList(); this.expectedException.expect(Exception.class); this.genePanelFactory.build(presentTerms, absentTerms); }
@Override public GenePanel build( @Nonnull final Collection<VocabularyTerm> presentTerms, @Nonnull final Collection<VocabularyTerm> absentTerms) { Validate.notNull(presentTerms); Validate.notNull(absentTerms); return new DefaultGenePanelImpl(presentTerms, absentTerms, this.generateMatchCount, this.vocabularyManager); }
DefaultGenePanelFactoryImpl implements GenePanelFactory { @Override public GenePanel build( @Nonnull final Collection<VocabularyTerm> presentTerms, @Nonnull final Collection<VocabularyTerm> absentTerms) { Validate.notNull(presentTerms); Validate.notNull(absentTerms); return new DefaultGenePanelImpl(presentTerms, absentTerms, this.generateMatchCount, this.vocabularyManager); } }
DefaultGenePanelFactoryImpl implements GenePanelFactory { @Override public GenePanel build( @Nonnull final Collection<VocabularyTerm> presentTerms, @Nonnull final Collection<VocabularyTerm> absentTerms) { Validate.notNull(presentTerms); Validate.notNull(absentTerms); return new DefaultGenePanelImpl(presentTerms, absentTerms, this.generateMatchCount, this.vocabularyManager); }  }
DefaultGenePanelFactoryImpl implements GenePanelFactory { @Override public GenePanel build( @Nonnull final Collection<VocabularyTerm> presentTerms, @Nonnull final Collection<VocabularyTerm> absentTerms) { Validate.notNull(presentTerms); Validate.notNull(absentTerms); return new DefaultGenePanelImpl(presentTerms, absentTerms, this.generateMatchCount, this.vocabularyManager); }  @Override GenePanelFactory withMatchCount(final boolean generate); @Override GenePanel build(
        @Nonnull final Collection<VocabularyTerm> presentTerms,
        @Nonnull final Collection<VocabularyTerm> absentTerms); @Override GenePanel build(
        @Nonnull final Collection<VocabularyTerm> presentTerms,
        @Nonnull final Collection<VocabularyTerm> absentTerms,
        @Nonnull final Collection<VocabularyTerm> rejectedGenes); @Override GenePanel build(@Nonnull final Patient patient); @Override GenePanel build(@Nonnull final Patient patient, final boolean excludeRejectedGenes); }
DefaultGenePanelFactoryImpl implements GenePanelFactory { @Override public GenePanel build( @Nonnull final Collection<VocabularyTerm> presentTerms, @Nonnull final Collection<VocabularyTerm> absentTerms) { Validate.notNull(presentTerms); Validate.notNull(absentTerms); return new DefaultGenePanelImpl(presentTerms, absentTerms, this.generateMatchCount, this.vocabularyManager); }  @Override GenePanelFactory withMatchCount(final boolean generate); @Override GenePanel build(
        @Nonnull final Collection<VocabularyTerm> presentTerms,
        @Nonnull final Collection<VocabularyTerm> absentTerms); @Override GenePanel build(
        @Nonnull final Collection<VocabularyTerm> presentTerms,
        @Nonnull final Collection<VocabularyTerm> absentTerms,
        @Nonnull final Collection<VocabularyTerm> rejectedGenes); @Override GenePanel build(@Nonnull final Patient patient); @Override GenePanel build(@Nonnull final Patient patient, final boolean excludeRejectedGenes);  }