@Test void testInterceptorType() { DiffMutationFilterFactory diffMutationFilterFactory = new DiffMutationFilterFactory(); MutationInterceptor diffMutationFilter = diffMutationFilterFactory .createInterceptor(makeFor("file", "LICENSE")); assertEquals(InterceptorType.FILTER, diffMutationFilter.type()); }
@Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); }
DiffMutationFilterFactory implements MutationInterceptorFactory { @Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); } }
DiffMutationFilterFactory implements MutationInterceptorFactory { @Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); }  }
DiffMutationFilterFactory implements MutationInterceptorFactory { @Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); }  @Override MutationInterceptor createInterceptor(InterceptorParameters params); @Override Feature provides(); @Override String description(); }
DiffMutationFilterFactory implements MutationInterceptorFactory { @Override public MutationInterceptor createInterceptor(InterceptorParameters params) { Optional<String> path = params.getString(fileParameter); return new DiffMutationFilter(DiffInfo.fromFile(path.orElse(defaultPath))); }  @Override MutationInterceptor createInterceptor(InterceptorParameters params); @Override Feature provides(); @Override String description();  }