private void addServicesAnnotatedOn(final Class<?> testClass, final List<Object> services) throws InstantiationException, IllegalAccessException { final Services servicesAnnotation = testClass.getAnnotation(Services.class); if (servicesAnnotation != null) { final Service[] serviceAnnotations = servicesAnnotation.value(); for (final Service serviceAnnotation : serviceAnnotations) { addServiceRepresentedBy(serviceAnnotation, services); } } final Service serviceAnnotation = testClass.getAnnotation(Service.class); if (serviceAnnotation != null) { addServiceRepresentedBy(serviceAnnotation, services); } }
public void addServicesAnnotatedOn(Class<?> javaClass) throws InstantiationException, IllegalAccessException { List<Object> services = new ArrayList<Object>(); addServicesAnnotatedOn(javaClass, services); addServices(services); }
ServicesInstallerAnnotatedClass servicesInstaller = new ServicesInstallerAnnotatedClass(); try { servicesInstaller.addServicesAnnotatedOn(this.testClass.getJavaClass()); } catch (InstantiationException e) { throw new NakedObjectException(e);
ServicesInstallerAnnotatedClass servicesInstaller = new ServicesInstallerAnnotatedClass(); try { servicesInstaller.addServicesAnnotatedOn(this.testClass.getJavaClass()); } catch (InstantiationException e) { throw new NakedObjectException(e);
public void addServicesAnnotatedOn(Class<?> javaClass) throws InstantiationException, IllegalAccessException { List<Object> services = new ArrayList<Object>(); addServicesAnnotatedOn(javaClass, services); addServices(services); }
private void addServicesAnnotatedOn(final Class<?> testClass, final List<Object> services) throws InstantiationException, IllegalAccessException { final Services servicesAnnotation = testClass.getAnnotation(Services.class); if (servicesAnnotation != null) { final Service[] serviceAnnotations = servicesAnnotation.value(); for (final Service serviceAnnotation : serviceAnnotations) { addServiceRepresentedBy(serviceAnnotation, services); } } final Service serviceAnnotation = testClass.getAnnotation(Service.class); if (serviceAnnotation != null) { addServiceRepresentedBy(serviceAnnotation, services); } }