use of com.palantir.tritium.api.event.InstrumentationFilter in project tritium by palantir.
the class InstrumentationFiltersTest method testFromTrueSupplier.
@Test
void testFromTrueSupplier() {
InstrumentationFilter filter = InstrumentationFilters.from((java.util.function.BooleanSupplier) () -> true);
assertThat(filter.shouldInstrument(instance, method, args)).isTrue();
}
use of com.palantir.tritium.api.event.InstrumentationFilter in project tritium by palantir.
the class InstrumentationFiltersTest method testFromFalseSupplier.
@Test
void testFromFalseSupplier() {
InstrumentationFilter filter = InstrumentationFilters.from((java.util.function.BooleanSupplier) () -> false);
assertThat(filter.shouldInstrument(instance, method, args)).isFalse();
}
Aggregations