@Test( expected = InstantiationException.class ) public void testCreateException() throws InstantiationException { doReturn( ReportPreProcessor.class ).when( builder ).getImpl(); metaData = new DefaultReportPreProcessorMetaData( builder ); metaData.create(); }
public ReportPreProcessor create() throws InstantiationException { try { return expressionType.newInstance(); } catch ( IllegalAccessException e ) { throw new InstantiationException( "Unable to instantiate " + expressionType + ": IllegalAccessException caught" ); } }
DefaultReportPreProcessorMetaData extends AbstractMetaData implements ReportPreProcessorMetaData { public ReportPreProcessor create() throws InstantiationException { try { return expressionType.newInstance(); } catch ( IllegalAccessException e ) { throw new InstantiationException( "Unable to instantiate " + expressionType + ": IllegalAccessException caught" ); } } }
DefaultReportPreProcessorMetaData extends AbstractMetaData implements ReportPreProcessorMetaData { public ReportPreProcessor create() throws InstantiationException { try { return expressionType.newInstance(); } catch ( IllegalAccessException e ) { throw new InstantiationException( "Unable to instantiate " + expressionType + ": IllegalAccessException caught" ); } } @Deprecated  DefaultReportPreProcessorMetaData( final String bundleLocation, final boolean expert, final boolean preferred,
      final boolean hidden, final boolean deprecated, final Class<? extends ReportPreProcessor> expressionType,
      final HashMap<String, ReportPreProcessorPropertyMetaData> attributes, final SharedBeanInfo beanInfo,
      final boolean autoProcessor, final boolean executeInDesignMode, final MaturityLevel maturityLevel,
      final int compatibilityLevel, final int executionPriority );  DefaultReportPreProcessorMetaData( final ReportPreProcessorMetaDataBuilder builder ); }
DefaultReportPreProcessorMetaData extends AbstractMetaData implements ReportPreProcessorMetaData { public ReportPreProcessor create() throws InstantiationException { try { return expressionType.newInstance(); } catch ( IllegalAccessException e ) { throw new InstantiationException( "Unable to instantiate " + expressionType + ": IllegalAccessException caught" ); } } @Deprecated  DefaultReportPreProcessorMetaData( final String bundleLocation, final boolean expert, final boolean preferred,
      final boolean hidden, final boolean deprecated, final Class<? extends ReportPreProcessor> expressionType,
      final HashMap<String, ReportPreProcessorPropertyMetaData> attributes, final SharedBeanInfo beanInfo,
      final boolean autoProcessor, final boolean executeInDesignMode, final MaturityLevel maturityLevel,
      final int compatibilityLevel, final int executionPriority );  DefaultReportPreProcessorMetaData( final ReportPreProcessorMetaDataBuilder builder ); boolean isExecuteInDesignMode(); Class getPreProcessorType(); ReportPreProcessorPropertyMetaData getPropertyDescription( final String name ); String[] getPropertyNames(); ReportPreProcessorPropertyMetaData[] getPropertyDescriptions(); BeanInfo getBeanDescriptor(); boolean isAutoProcessor(); ReportPreProcessor create(); int getExecutionPriority(); }
DefaultReportPreProcessorMetaData extends AbstractMetaData implements ReportPreProcessorMetaData { public ReportPreProcessor create() throws InstantiationException { try { return expressionType.newInstance(); } catch ( IllegalAccessException e ) { throw new InstantiationException( "Unable to instantiate " + expressionType + ": IllegalAccessException caught" ); } } @Deprecated  DefaultReportPreProcessorMetaData( final String bundleLocation, final boolean expert, final boolean preferred,
      final boolean hidden, final boolean deprecated, final Class<? extends ReportPreProcessor> expressionType,
      final HashMap<String, ReportPreProcessorPropertyMetaData> attributes, final SharedBeanInfo beanInfo,
      final boolean autoProcessor, final boolean executeInDesignMode, final MaturityLevel maturityLevel,
      final int compatibilityLevel, final int executionPriority );  DefaultReportPreProcessorMetaData( final ReportPreProcessorMetaDataBuilder builder ); boolean isExecuteInDesignMode(); Class getPreProcessorType(); ReportPreProcessorPropertyMetaData getPropertyDescription( final String name ); String[] getPropertyNames(); ReportPreProcessorPropertyMetaData[] getPropertyDescriptions(); BeanInfo getBeanDescriptor(); boolean isAutoProcessor(); ReportPreProcessor create(); int getExecutionPriority();  }