7374757677787980818283
); MatcherAssert.assertThat( hooks.iterate(), Matchers.<Hook>iterableWithSize(1) ); hooks.remove(hook.number()); MatcherAssert.assertThat( hooks.iterate(), Matchers.emptyIterable() ); }
9293949596979899100101102
final Hook hook = hooks.create( // @checkstyle MultipleStringLiterals (1 line) "geocommit", Collections.<String, String>emptyMap() ); MatcherAssert.assertThat( hooks.get(hook.number()), Matchers.notNullValue() ); } /**
129130131132133134135136137138139
final Hook hook = hooks.create( "geocommit", Collections.<String, String>emptyMap() ); MatcherAssert.assertThat( hooks.iterate().iterator().next().number(), Matchers.equalTo(hook.number()) ); } /** * Create a repo to work with.