@Test public void processReturnsEmptyConfigWhenNoExtensionsAreFound() throws ComponentLookupException { Assert.assertSame(this.config, this.mocker.getComponentUnderTest().process(this.config)); Assert.assertTrue(this.sectionsCapture.getLastValue().isEmpty()); }
@Override public RecordConfiguration process(@Nullable final RecordConfiguration config) { if (config == null) { return null; } final List<UIExtension> sectionExtensions = getOrderedSectionUIExtensions(); final List<RecordSection> recordSections = new LinkedList<>(); for (final UIExtension sectionExtension : sectionExtensions) { final RecordSection section = new UIXRecordSection(sectionExtension, this.uixManager, this.orderFilter); recordSections.add(section); } config.setSections(Collections.unmodifiableList(recordSections)); return config; }
GlobalFamilyConfigurationModule implements RecordConfigurationModule { @Override public RecordConfiguration process(@Nullable final RecordConfiguration config) { if (config == null) { return null; } final List<UIExtension> sectionExtensions = getOrderedSectionUIExtensions(); final List<RecordSection> recordSections = new LinkedList<>(); for (final UIExtension sectionExtension : sectionExtensions) { final RecordSection section = new UIXRecordSection(sectionExtension, this.uixManager, this.orderFilter); recordSections.add(section); } config.setSections(Collections.unmodifiableList(recordSections)); return config; } }
GlobalFamilyConfigurationModule implements RecordConfigurationModule { @Override public RecordConfiguration process(@Nullable final RecordConfiguration config) { if (config == null) { return null; } final List<UIExtension> sectionExtensions = getOrderedSectionUIExtensions(); final List<RecordSection> recordSections = new LinkedList<>(); for (final UIExtension sectionExtension : sectionExtensions) { final RecordSection section = new UIXRecordSection(sectionExtension, this.uixManager, this.orderFilter); recordSections.add(section); } config.setSections(Collections.unmodifiableList(recordSections)); return config; }  }
GlobalFamilyConfigurationModule implements RecordConfigurationModule { @Override public RecordConfiguration process(@Nullable final RecordConfiguration config) { if (config == null) { return null; } final List<UIExtension> sectionExtensions = getOrderedSectionUIExtensions(); final List<RecordSection> recordSections = new LinkedList<>(); for (final UIExtension sectionExtension : sectionExtensions) { final RecordSection section = new UIXRecordSection(sectionExtension, this.uixManager, this.orderFilter); recordSections.add(section); } config.setSections(Collections.unmodifiableList(recordSections)); return config; }  @Override RecordConfiguration process(@Nullable final RecordConfiguration config); @Override int getPriority(); @Override boolean supportsRecordType(final String recordType); }
GlobalFamilyConfigurationModule implements RecordConfigurationModule { @Override public RecordConfiguration process(@Nullable final RecordConfiguration config) { if (config == null) { return null; } final List<UIExtension> sectionExtensions = getOrderedSectionUIExtensions(); final List<RecordSection> recordSections = new LinkedList<>(); for (final UIExtension sectionExtension : sectionExtensions) { final RecordSection section = new UIXRecordSection(sectionExtension, this.uixManager, this.orderFilter); recordSections.add(section); } config.setSections(Collections.unmodifiableList(recordSections)); return config; }  @Override RecordConfiguration process(@Nullable final RecordConfiguration config); @Override int getPriority(); @Override boolean supportsRecordType(final String recordType);  }