@Test public void testClasspathFilterRuntimeCommaSystem() { NodeBuilder builder = new NodeBuilder().artifactId( "aid" ); DependencyFilter filter = DependencyFilterUtils.classpathFilter( "runtime,system" ); assertTrue( filter.accept( builder.scope( "compile" ).build(), PARENTS ) ); assertTrue( filter.accept( builder.scope( "system" ).build(), PARENTS ) ); assertFalse( filter.accept( builder.scope( "provided" ).build(), PARENTS ) ); assertTrue( filter.accept( builder.scope( "runtime" ).build(), PARENTS ) ); assertFalse( filter.accept( builder.scope( "test" ).build(), PARENTS ) ); }
public static DependencyFilter classpathFilter( String... classpathTypes ) { return classpathFilter( ( classpathTypes != null ) ? Arrays.asList( classpathTypes ) : null ); }
DependencyFilterUtils { public static DependencyFilter classpathFilter( String... classpathTypes ) { return classpathFilter( ( classpathTypes != null ) ? Arrays.asList( classpathTypes ) : null ); } }
DependencyFilterUtils { public static DependencyFilter classpathFilter( String... classpathTypes ) { return classpathFilter( ( classpathTypes != null ) ? Arrays.asList( classpathTypes ) : null ); } private  DependencyFilterUtils(); }
DependencyFilterUtils { public static DependencyFilter classpathFilter( String... classpathTypes ) { return classpathFilter( ( classpathTypes != null ) ? Arrays.asList( classpathTypes ) : null ); } private  DependencyFilterUtils(); static DependencyFilter notFilter( DependencyFilter filter ); static DependencyFilter andFilter( DependencyFilter... filters ); static DependencyFilter andFilter( Collection<DependencyFilter> filters ); static DependencyFilter orFilter( DependencyFilter... filters ); static DependencyFilter orFilter( Collection<DependencyFilter> filters ); static DependencyFilter classpathFilter( String... classpathTypes ); static DependencyFilter classpathFilter( Collection<String> classpathTypes ); }
DependencyFilterUtils { public static DependencyFilter classpathFilter( String... classpathTypes ) { return classpathFilter( ( classpathTypes != null ) ? Arrays.asList( classpathTypes ) : null ); } private  DependencyFilterUtils(); static DependencyFilter notFilter( DependencyFilter filter ); static DependencyFilter andFilter( DependencyFilter... filters ); static DependencyFilter andFilter( Collection<DependencyFilter> filters ); static DependencyFilter orFilter( DependencyFilter... filters ); static DependencyFilter orFilter( Collection<DependencyFilter> filters ); static DependencyFilter classpathFilter( String... classpathTypes ); static DependencyFilter classpathFilter( Collection<String> classpathTypes );  }