Search in sources :

Example 1 with PassThroughFilter

use of com.linkedin.r2.caprep.PassThroughFilter in project rest.li by linkedin.

the class TestReplaceableFilter method testSetAndGet.

@Test
public void testSetAndGet() {
    final ReplaceableFilter filter = getFilter();
    final RestFilter newFilter = new PassThroughFilter();
    Assert.assertTrue(!filter.getFilter().equals(newFilter));
    filter.setFilter(newFilter);
    Assert.assertEquals(newFilter, filter.getFilter());
}
Also used : RestFilter(com.linkedin.r2.filter.message.rest.RestFilter) ReplaceableFilter(com.linkedin.r2.caprep.ReplaceableFilter) PassThroughFilter(com.linkedin.r2.caprep.PassThroughFilter) BaseFilterTest(com.linkedin.r2.testutils.filter.BaseFilterTest) Test(org.testng.annotations.Test)

Aggregations

PassThroughFilter (com.linkedin.r2.caprep.PassThroughFilter)1 ReplaceableFilter (com.linkedin.r2.caprep.ReplaceableFilter)1 RestFilter (com.linkedin.r2.filter.message.rest.RestFilter)1 BaseFilterTest (com.linkedin.r2.testutils.filter.BaseFilterTest)1 Test (org.testng.annotations.Test)1