Пример #1
0
 @Test
 public void testClearMultipleModules() {
   builder.addInvocationMetadataFactoriesClass(invocationMetadataFactory.getClass());
   builder.addApplicationProcessorClass(invocationProcessor.getClass());
   builder.addAttributesHandlerClass(attributesHandler.getClass());
   assertThat(builder.getInvocationMetadataFactoryClasses().size(), is(1));
   assertThat(builder.getApplicationProcessorClasses().size(), is(1));
   assertThat(builder.getAttributesHandlerClasses().size(), is(1));
   assertSame(builder, builder.clearInvocationMetadataFactoriesClass());
   assertTrue(builder.getInvocationMetadataFactoryClasses().isEmpty());
   assertSame(builder, builder.clearApplicationProcessorClass());
   assertTrue(builder.getApplicationProcessorClasses().isEmpty());
   assertSame(builder, builder.clearAttributesHanderClass());
   assertTrue(builder.getAttributesHandlerClasses().isEmpty());
 }