AllNonDiscountCurvesFilter implements MarketDataFilter, ImmutableBean { @Override public Set<MulticurveMatchDetails> apply(MarketDataId<?> marketDataId) { return ImmutableSet.of(); } @ImmutableConstructor  AllNonDiscountCurvesFilter(); @Override Set<MulticurveMatchDetails> apply(MarketDataId<?> marketDataId); @Override Set<MulticurveMatchDetails> apply(MarketDataId<?> marketDataId, Object marketData); @Override Class<?> getMarketDataType(); @Override Class<MulticurveId> getMarketDataIdType(); static AllNonDiscountCurvesFilter.Meta meta(); static AllNonDiscountCurvesFilter.Builder builder(); @Override AllNonDiscountCurvesFilter.Meta metaBean(); @Override Property<R> property(String propertyName); @Override Set<String> propertyNames(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }
@Test public void bundle() { AllNonDiscountCurvesFilter nonDiscountingFilter = new AllNonDiscountCurvesFilter(); Set<MulticurveMatchDetails> nonDiscountingMatches = nonDiscountingFilter.apply(MulticurveId.of("not used"), MulticurveFilterTestUtils.bundle()); Set<MulticurveMatchDetails> expectedNonDiscountingMatches = ImmutableSet.of( StandardMatchDetails.multicurve(MulticurveFilterTestUtils.USD_OVERNIGHT), StandardMatchDetails.multicurve(MulticurveFilterTestUtils.GBP_OVERNIGHT), StandardMatchDetails.multicurve(MulticurveFilterTestUtils.EUR_LIBOR_6M), StandardMatchDetails.multicurve(MulticurveFilterTestUtils.USD_LIBOR_3M) ); assertEquals(expectedNonDiscountingMatches, nonDiscountingMatches); }
@Test public void config() { MulticurveFilterTestUtils.initializeServiceContext(); MulticurveId multicurveId = MulticurveId.of(MulticurveFilterTestUtils.CURVE_CONFIG_NAME); AllNonDiscountCurvesFilter nonDiscountingFilter = new AllNonDiscountCurvesFilter(); Set<MulticurveMatchDetails> nonDiscountingMatches = nonDiscountingFilter.apply(multicurveId); Set<MulticurveMatchDetails> expectedNonDiscountingMatches = ImmutableSet.of( ); assertEquals(expectedNonDiscountingMatches, nonDiscountingMatches); }