525354555657585960
this.regexes.add( regex ); } public Regex createRegex() { Regex regex = new Regex(); this.regexes.add( regex ); return regex; }
3435363738394041424344
check = new ConfigCheck(); } public void testAddRegex() { Regex regex = new Regex(); check.addRegex( regex ); Set regexes = check.getRegexes();
4748495051525354555657
assertTrue( regexes.contains( regex ) ); } public void testCreateRegex() { Regex regex = check.createRegex(); Set regexes = check.getRegexes(); assertEquals( 1, regexes.size() );