@Test public void testSetExcludes() throws Exception { FilteredSharedComponentStart starter = new FilteredSharedComponentStart(); assertNotNull(starter.getExcludes()); assertEquals(0, starter.getExcludes().size()); starter.setExcludes(new ArrayList(Arrays.asList("abcde"))); assertNotNull(starter.getExcludes()); assertEquals(1, starter.getExcludes().size()); assertEquals("abcde", starter.getExcludes().get(0)); starter.addExclude("xyz"); assertEquals(2, starter.getExcludes().size()); assertEquals("xyz", starter.getExcludes().get(1)); try { starter.setExcludes(null); fail(); } catch (IllegalArgumentException expected) { } assertEquals(2, starter.getExcludes().size()); assertEquals("abcde", starter.getExcludes().get(0)); assertEquals("xyz", starter.getExcludes().get(1)); }
public void setExcludes(List<String> l) { this.excludes = Args.notNull(l, "excludes"); }
FilteredSharedComponentStart implements SharedComponentLifecycleStrategy { public void setExcludes(List<String> l) { this.excludes = Args.notNull(l, "excludes"); } }
FilteredSharedComponentStart implements SharedComponentLifecycleStrategy { public void setExcludes(List<String> l) { this.excludes = Args.notNull(l, "excludes"); } FilteredSharedComponentStart();  FilteredSharedComponentStart(Boolean threaded); }
FilteredSharedComponentStart implements SharedComponentLifecycleStrategy { public void setExcludes(List<String> l) { this.excludes = Args.notNull(l, "excludes"); } FilteredSharedComponentStart();  FilteredSharedComponentStart(Boolean threaded); @Override void init(Collection<AdaptrisConnection> conns); @Override void start(Collection<AdaptrisConnection> conns); @Override void stop(Collection<AdaptrisConnection> conns); @Override void close(Collection<AdaptrisConnection> conns); Boolean getThreadedStart(); void setThreadedStart(Boolean b); List<String> getIncludes(); void setIncludes(List<String> l); List<String> getExcludes(); void setExcludes(List<String> l); void addInclude(String pattern); void addExclude(String pattern); Collection<AdaptrisConnection> filter(Collection<AdaptrisConnection> original); }
FilteredSharedComponentStart implements SharedComponentLifecycleStrategy { public void setExcludes(List<String> l) { this.excludes = Args.notNull(l, "excludes"); } FilteredSharedComponentStart();  FilteredSharedComponentStart(Boolean threaded); @Override void init(Collection<AdaptrisConnection> conns); @Override void start(Collection<AdaptrisConnection> conns); @Override void stop(Collection<AdaptrisConnection> conns); @Override void close(Collection<AdaptrisConnection> conns); Boolean getThreadedStart(); void setThreadedStart(Boolean b); List<String> getIncludes(); void setIncludes(List<String> l); List<String> getExcludes(); void setExcludes(List<String> l); void addInclude(String pattern); void addExclude(String pattern); Collection<AdaptrisConnection> filter(Collection<AdaptrisConnection> original);  }