public T startLevel(final Integer startLevel) { delegate.startLevel(startLevel); return itself(); }
public T startLevel(final Integer startLevel) { delegate.startLevel(startLevel); return itself(); }
/** * Replacement for {@link CoreOptions#options(Option...)} to workaround Pax-Exam 'feature' * where only the last 'editConfigurationFileExtend' for a given property key is honoured. */ public static Option[] options(final Option... options) { final List<Option> result = new ArrayList<>(); final List<String> nexusFeatures = new ArrayList<>(); for (final Option o : OptionUtils.expand(options)) { // filter out the individual nexus-features values if (o instanceof KarafDistributionConfigurationFileExtendOption) { if ("nexus-features".equals(((KarafDistributionConfigurationFileExtendOption) o).getKey())) { nexusFeatures.add(((KarafDistributionConfigurationFileExtendOption) o).getValue()); continue; } } // provide default start level for any additional test bundles else if (o instanceof ProvisionOption<?> && ((ProvisionOption<?>) o).getStartLevel() == null) { ((ProvisionOption<?>) o).startLevel(NEXUS_TEST_START_LEVEL); } result.add(o); } if (nexusFeatures.size() > 0) { // combine the nexus-features values into a single request result.add(editConfigurationFileExtend(NEXUS_PROPERTIES_FILE, // "nexus-features", Joiner.on(',').join(nexusFeatures))); } return result.toArray(new Option[result.size()]); }