Changeset 2733
- Timestamp:
- 08/10/10 11:22:16 (1 year ago)
- Files:
-
- his-extensions/plugins/trunk/correspondence/correspondence-letter/pom.xml (modified) (1 diff)
- his-extensions/plugins/trunk/correspondence/correspondence-letter/src/test/java/org/joiningtracks/his/correspondence/letter/task/DefaultLetterTaskPanelTest.java (modified) (1 diff)
- his-extensions/plugins/trunk/opinio/his-plugin/pom.xml (modified) (1 diff)
- his-extensions/plugins/trunk/opinio/his-plugin/src/test/java/org/joiningtracks/his/plugin/integration/opinio/ui/AbstractQuestionnairePanelTest.java (modified) (1 diff)
- his-extensions/plugins/trunk/pom.xml (modified) (2 diffs)
- his-extensions/plugins/trunk/treatment/importer/pom.xml (modified) (1 diff)
- his-extensions/plugins/trunk/treatment/importer/src/test/java/org/joiningtracks/his/pathway/nok/treatment/forms/surgical/SurgicalDetailsUploadPanelTest.java (modified) (1 diff)
- his-extensions/plugins/trunk/treatment/treatment-base/pom.xml (modified) (1 diff)
- his-extensions/plugins/trunk/treatment/treatment-base/src/test/java/org/joiningtracks/his/pathway/nok/treatment/forms/medication/MedicationFormTest.java (modified) (1 diff)
- his-extensions/plugins/trunk/treatment/treatment-base/src/test/java/org/joiningtracks/his/pathway/nok/treatment/forms/surgical/post/OperatieVerwerkingFormTest.java (modified) (1 diff)
- his-extensions/plugins/trunk/treatment/treatment-base/src/test/java/org/joiningtracks/his/pathway/nok/treatment/xstream/converter/LdapEmployeeConverterTest.java (modified) (2 diffs)
- his/trunk/frontend/internal/src/main/java/org/joiningtracks/his/frontend/employee/WicketApplication.java (modified) (4 diffs)
- his/trunk/frontend/internal/src/main/resources/context/applicationContext.xml (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/AbstractHisWicketPanelTest.java (modified) (2 diffs)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/AbstractWicketPanelTest.java (modified) (5 diffs)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/AllPanelsMarkupTest.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/HomePageTest.java (modified) (2 diffs)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/WicketTestApplication.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/contact/ContactPersonCreatePageTest.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/contract/ContractDetailsPageTest.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/contract/ContractOverviewPageTest.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/PatientCreatePageTest.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/SearchPatientPageTest.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/details/PatientGroupListActionPanelTest.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/details/PatientGroupListDetailPanelTest.java (modified) (1 diff)
- his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/details/PatientTaskDetailPanelTest.java (modified) (1 diff)
- his/trunk/frontend/pom.xml (modified) (1 diff)
- his/trunk/plugin/bridge/src/main/java/org/joiningtracks/his/plugin/bridge/wicketsupport/ConfigurableInjectorBean.java (modified) (2 diffs)
- his/trunk/plugin/bridge/src/main/resources/context/osgiContainerContext.xml (modified) (1 diff)
- his/trunk/plugin/bridge/src/test/java/org/joiningtracks/his/plugin/bridge/wicketsupport/ConfigurableInjectorBeanTest.java (modified) (3 diffs)
- his/trunk/pom.xml (modified) (2 diffs)
- his/trunk/questionnaire/frontend/pom.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
his-extensions/plugins/trunk/correspondence/correspondence-letter/pom.xml
r2686 r2733 94 94 <version>${wicket.version}</version> 95 95 <scope>provided</scope> 96 97 <exclusions>98 <exclusion>99 <groupId>org.slf4j</groupId>100 <artifactId>slf4j-api</artifactId>101 </exclusion>102 </exclusions>103 </dependency>104 105 <dependency>106 <groupId>org.apache.wicket</groupId>107 <artifactId>wicket-spring-annot</artifactId>108 <version>1.3.6</version>109 <scope>provided</scope>110 <optional>true</optional>111 96 112 97 <exclusions> his-extensions/plugins/trunk/correspondence/correspondence-letter/src/test/java/org/joiningtracks/his/correspondence/letter/task/DefaultLetterTaskPanelTest.java
r2682 r2733 91 91 appctx.putBean("appointmentService", appointmentService); 92 92 93 tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(tester.getApplication(), appctx ));93 tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(tester.getApplication(), appctx, true)); 94 94 95 95 Authentication authentication = mock(Authentication.class); his-extensions/plugins/trunk/opinio/his-plugin/pom.xml
r2268 r2733 89 89 <version>${wicket.version}</version> 90 90 <scope>provided</scope> 91 92 <exclusions>93 <exclusion>94 <groupId>org.slf4j</groupId>95 <artifactId>slf4j-api</artifactId>96 </exclusion>97 </exclusions>98 </dependency>99 100 <dependency>101 <groupId>org.apache.wicket</groupId>102 <artifactId>wicket-spring-annot</artifactId>103 <version>1.3.6</version>104 <scope>provided</scope>105 <optional>true</optional>106 91 107 92 <exclusions> his-extensions/plugins/trunk/opinio/his-plugin/src/test/java/org/joiningtracks/his/plugin/integration/opinio/ui/AbstractQuestionnairePanelTest.java
r1843 r2733 24 24 appctx.putBean("questionnaireIntegrationService", questionnaireIntegrationService); 25 25 26 tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(tester.getApplication(), appctx ));26 tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(tester.getApplication(), appctx, true)); 27 27 } 28 28 his-extensions/plugins/trunk/pom.xml
r2732 r2733 38 38 <properties> 39 39 <his.version>1.9.13</his.version> 40 <wicket.version>1.4. 1</wicket.version>40 <wicket.version>1.4.9</wicket.version> 41 41 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 42 42 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> … … 464 464 <dependency> 465 465 <groupId>org.apache.wicket</groupId> 466 <artifactId>wicket-spring-annot</artifactId>467 <version>1.3.6</version>468 </dependency>469 <dependency>470 <groupId>org.apache.wicket</groupId>471 466 <artifactId>wicket-datetime</artifactId> 472 467 <version>${wicket.version}</version> his-extensions/plugins/trunk/treatment/importer/pom.xml
r2709 r2733 88 88 <version>${wicket.version}</version> 89 89 <scope>provided</scope> 90 91 <exclusions>92 <exclusion>93 <groupId>org.slf4j</groupId>94 <artifactId>slf4j-api</artifactId>95 </exclusion>96 </exclusions>97 </dependency>98 99 <dependency>100 <groupId>org.apache.wicket</groupId>101 <artifactId>wicket-spring-annot</artifactId>102 <version>1.3.6</version>103 <scope>provided</scope>104 <optional>true</optional>105 90 106 91 <exclusions> his-extensions/plugins/trunk/treatment/importer/src/test/java/org/joiningtracks/his/pathway/nok/treatment/forms/surgical/SurgicalDetailsUploadPanelTest.java
r2709 r2733 25 25 appctx.putBean("surgicalDetailsFileService",surgicalDetailsFileService); 26 26 27 tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(tester.getApplication(), appctx ));27 tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(tester.getApplication(), appctx, true)); 28 28 } 29 29 his-extensions/plugins/trunk/treatment/treatment-base/pom.xml
r2686 r2733 111 111 <version>${wicket.version}</version> 112 112 <scope>provided</scope> 113 114 <exclusions>115 <exclusion>116 <groupId>org.slf4j</groupId>117 <artifactId>slf4j-api</artifactId>118 </exclusion>119 </exclusions>120 </dependency>121 122 <dependency>123 <groupId>org.apache.wicket</groupId>124 <artifactId>wicket-spring-annot</artifactId>125 <version>1.3.6</version>126 <scope>provided</scope>127 <optional>true</optional>128 113 129 114 <exclusions> his-extensions/plugins/trunk/treatment/treatment-base/src/test/java/org/joiningtracks/his/pathway/nok/treatment/forms/medication/MedicationFormTest.java
r2714 r2733 76 76 appctx.putBean("healthDocumentService", healthDocumentService); 77 77 78 wicketTester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(wicketTester.getApplication(), appctx ));78 wicketTester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(wicketTester.getApplication(), appctx, true)); 79 79 } 80 80 his-extensions/plugins/trunk/treatment/treatment-base/src/test/java/org/joiningtracks/his/pathway/nok/treatment/forms/surgical/post/OperatieVerwerkingFormTest.java
r2709 r2733 83 83 //appctx.putBean("questionnaireIntegrationService", questionnaireIntegrationService); 84 84 85 tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(tester.getApplication(), appctx ));85 tester.getApplication().addComponentInstantiationListener(new SpringComponentInjector(tester.getApplication(), appctx, true)); 86 86 } 87 87 his-extensions/plugins/trunk/treatment/treatment-base/src/test/java/org/joiningtracks/his/pathway/nok/treatment/xstream/converter/LdapEmployeeConverterTest.java
r2507 r2733 19 19 import org.apache.wicket.spring.injection.annot.test.AnnotApplicationContextMock; 20 20 import static org.easymock.EasyMock.expect; 21 22 import org.apache.wicket.util.tester.WicketTester; 21 23 import org.easymock.classextension.EasyMock; 22 24 import static org.easymock.classextension.EasyMock.replay; … … 38 40 @Before 39 41 public void setUp() { 42 WicketTester tester = new WicketTester(); 43 40 44 mockApplicationContext = EasyMock.createMock(ApplicationContext.class); 41 45 ldapEmployeeService = EasyMock.createMock(LdapEmployeeService.class); his/trunk/frontend/internal/src/main/java/org/joiningtracks/his/frontend/employee/WicketApplication.java
r1471 r2733 20 20 import org.apache.wicket.application.IComponentInstantiationListener; 21 21 import org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest; 22 import org.apache.wicket.injection.ConfigurableInjector; 23 import org.apache.wicket.injection.web.InjectorHolder; 22 24 import org.apache.wicket.protocol.http.WebRequest; 23 25 import org.apache.wicket.security.hive.HiveMind; … … 60 62 private String applicationVersion; 61 63 private IComponentInstantiationListener componentInstantiationListener; 64 private ConfigurableInjector configurableInjector; 62 65 private HisClassResolver osgiClassResolver; 63 66 … … 71 74 super.init(); 72 75 76 // Set given ConfigurableInjector. 77 InjectorHolder.setInjector(configurableInjector); 73 78 // Make injection of spring beans in wicket-related classes possible using @SpringBean. 74 79 addComponentInstantiationListener(componentInstantiationListener); … … 173 178 } 174 179 180 public void setConfigurableInjector(ConfigurableInjector configurableInjector) { 181 this.configurableInjector = configurableInjector; 182 } 183 175 184 protected Object getHiveKey() { 176 185 return "staticHiveKey"; his/trunk/frontend/internal/src/main/resources/context/applicationContext.xml
r1318 r2733 23 23 <property name="authenticationManager" ref="authenticationManager"/> 24 24 <property name="componentInstantiationListener" ref="wicketInstantiationListener"/> 25 <property name="configurableInjector" ref="wicketComponentInjector"/> 25 26 <property name="osgiClassResolver" ref="hisClassResolver"/> 26 27 </bean> his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/AbstractHisWicketPanelTest.java
r1808 r2733 1 1 /* 2 * Copyright 2008-20 09Stichting JoiningTracks, The Netherlands2 * Copyright 2008-2010 Stichting JoiningTracks, The Netherlands 3 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 4 * you may not use this file except in compliance with the License. … … 16 16 package org.joiningtracks.his.frontend.employee; 17 17 18 import org.apache.wicket.injection.web.InjectorHolder; 18 19 import org.apache.wicket.protocol.http.WebApplication; 19 20 import org.apache.wicket.spring.injection.annot.SpringComponentInjector; 20 import org.apache.wicket.spring.injection.annot.test.AnnotApplicationContextMock;21 21 import org.junit.After; 22 22 23 23 public abstract class AbstractHisWicketPanelTest extends AbstractWicketPanelTest { 24 24 25 protected WebApplication initializeWebApplication(AnnotApplicationContextMock appctx){ 26 WicketApplication application = new WicketApplication(); 25 protected WebApplication createWebApplication() { 27 26 28 application.setComponentInstantiationListener(new SpringComponentInjector(application, appctx)); 29 application.setOsgiClassResolver(new HisClassResolver()); 27 WicketApplication wicketApplication = new WicketApplication() { 28 @Override 29 protected void init() { 30 try { 31 appctx = initializeAllServiceMocks(); 32 setConfigurableInjector(InjectorHolder.getInjector()); 33 setComponentInstantiationListener(new SpringComponentInjector(this, appctx, true)); 34 } catch (Exception e) { 35 throw new RuntimeException(e); 36 } 37 super.init(); 38 } 39 }; 30 40 31 return application; 41 42 wicketApplication.setOsgiClassResolver(new HisClassResolver()); 43 44 return wicketApplication; 32 45 } 33 46 34 47 @After 35 48 public final void destroyActionFactory(){ his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/AbstractWicketPanelTest.java
r2274 r2733 1 1 /* 2 * Copyright 2008-20 09Stichting JoiningTracks, The Netherlands2 * Copyright 2008-2010 Stichting JoiningTracks, The Netherlands 3 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 4 * you may not use this file except in compliance with the License. … … 16 16 package org.joiningtracks.his.frontend.employee; 17 17 18 import org.apache.wicket.injection.ConfigurableInjector; 18 19 import org.apache.wicket.protocol.http.WebApplication; 19 20 import org.apache.wicket.spring.injection.annot.test.AnnotApplicationContextMock; … … 21 22 import org.joiningtracks.his.data.model.LdapEmployee; 22 23 import org.joiningtracks.his.plugin.OsgiUtils; 24 import org.joiningtracks.his.plugin.bridge.wicketsupport.ConfigurableInjectorBean; 25 import org.joiningtracks.his.plugin.bridge.wicketsupport.MultiContextFieldValueFactory; 23 26 import org.joiningtracks.his.plugin.contract.ContractPropertyProvider; 24 27 import org.joiningtracks.his.service.ldap.LdapEmployeeService; … … 49 52 @Before 50 53 public final void setUp() throws Exception { 51 appctx = initializeAllServiceMocks(); 52 application = initializeWebApplication(appctx); 53 54 application = createWebApplication(); 54 55 wicketTester = new WicketTester(application); 55 56 } 56 57 pr ivateAnnotApplicationContextMock initializeAllServiceMocks() throws Exception {57 58 protected AnnotApplicationContextMock initializeAllServiceMocks() throws Exception { 58 59 AnnotApplicationContextMock appctx = new AnnotApplicationContextMock(); 59 60 createServiceMocks(appctx, getServices("org/joiningtracks/his/service", ".*Service")); … … 68 69 } 69 70 70 protected abstract WebApplication initializeWebApplication(AnnotApplicationContextMock appctx);71 protected abstract WebApplication createWebApplication(); 71 72 72 73 private void addBean(AnnotApplicationContextMock appctx, String beanName, Class beanClass){ his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/AllPanelsMarkupTest.java
r1808 r2733 17 17 18 18 import org.apache.wicket.markup.html.panel.Panel; 19 import org.apache.wicket.util.tester.WicketTester; 19 20 import org.junit.Test; 20 21 import org.slf4j.Logger; his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/HomePageTest.java
r1749 r2733 49 49 appctx.putBean("frontpagePanelManager", WicketTestApplication.createMockFrontpagePanelManager()); 50 50 51 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));51 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 52 52 53 53 } … … 85 85 appctx.putBean("frontpagePanelManager", WicketTestApplication.createMockFrontpagePanelManager()); 86 86 87 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));87 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 88 88 89 89 his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/WicketTestApplication.java
r1749 r2733 63 63 64 64 // Make injection of spring beans in wicket-related classes possible using @SpringBean. 65 addComponentInstantiationListener(new SpringComponentInjector(this, appctx ));65 addComponentInstantiationListener(new SpringComponentInjector(this, appctx, true)); 66 66 67 67 ProviderManager authMan = new ProviderManager(); his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/contact/ContactPersonCreatePageTest.java
r1749 r2733 78 78 replay(medicalPositionService); 79 79 80 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));80 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 81 81 } 82 82 his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/contract/ContractDetailsPageTest.java
r2284 r2733 65 65 replay(osgiUtils); 66 66 67 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));67 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 68 68 } 69 69 his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/contract/ContractOverviewPageTest.java
r1749 r2733 37 37 replay(contractService); 38 38 39 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));39 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 40 40 } 41 41 his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/PatientCreatePageTest.java
r1749 r2733 90 90 replay(contactPersonService); 91 91 92 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));92 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 93 93 } 94 94 his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/SearchPatientPageTest.java
r1749 r2733 55 55 appctx.putBean("frontpagePanelManager", WicketTestApplication.createMockFrontpagePanelManager()); 56 56 57 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));57 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 58 58 } 59 59 his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/details/PatientGroupListActionPanelTest.java
r1471 r2733 51 51 52 52 // make sure the @SpringBean lookups work 53 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));53 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 54 54 } 55 55 his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/details/PatientGroupListDetailPanelTest.java
r2670 r2733 52 52 appctx.putBean("osgiUtils", osgiUtils); 53 53 appctx.putBean("patientGroupService", patientGroupService); 54 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));54 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 55 55 } 56 56 his/trunk/frontend/internal/src/test/java/org/joiningtracks/his/frontend/employee/patient/details/PatientTaskDetailPanelTest.java
r2693 r2733 70 70 71 71 72 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx ));72 application.addComponentInstantiationListener(new SpringComponentInjector(application, appctx, true)); 73 73 74 74 _tasks = setupTasks(); his/trunk/frontend/pom.xml
r2732 r2733 84 84 <groupId>org.apache.wicket</groupId> 85 85 <artifactId>wicket-spring</artifactId> 86 <scope>compile</scope>87 </dependency>88 89 <dependency>90 <groupId>org.apache.wicket</groupId>91 <artifactId>wicket-spring-annot</artifactId>92 86 <scope>compile</scope> 93 87 </dependency> his/trunk/plugin/bridge/src/main/java/org/joiningtracks/his/plugin/bridge/wicketsupport/ConfigurableInjectorBean.java
r1367 r2733 3 3 import org.apache.wicket.injection.ConfigurableInjector; 4 4 import org.apache.wicket.injection.IFieldValueFactory; 5 import org.apache.wicket.injection.web.InjectorHolder;6 import org.springframework.beans.factory.InitializingBean;7 5 8 6 /** 9 * The Spring Bean version of the {@link ConfigurableInjector}. It registers itself as the injector for Wicket.7 * The Spring Bean version of the {@link ConfigurableInjector}. 10 8 */ 11 public class ConfigurableInjectorBean extends ConfigurableInjector implements InitializingBean { 12 9 public class ConfigurableInjectorBean extends ConfigurableInjector { 13 10 private IFieldValueFactory fieldValueFactory; 14 11 … … 20 17 this.fieldValueFactory = fieldValueFactory; 21 18 } 22 23 public void afterPropertiesSet() {24 InjectorHolder.setInjector(this);25 }26 19 } his/trunk/plugin/bridge/src/main/resources/context/osgiContainerContext.xml
r2688 r2733 89 89 </list> 90 90 </property> 91 <property name="postFix" value=";version=1.4. 1"/>91 <property name="postFix" value=";version=1.4.9"/> 92 92 </bean> 93 93 <bean class="org.joiningtracks.his.plugin.packageresolvers.PrefixPackageResolver"> his/trunk/plugin/bridge/src/test/java/org/joiningtracks/his/plugin/bridge/wicketsupport/ConfigurableInjectorBeanTest.java
r1178 r2733 2 2 3 3 import static junit.framework.Assert.assertSame; 4 5 import org.apache.wicket.Application; 4 6 import org.apache.wicket.injection.NoopFieldValueFactory; 5 7 import org.apache.wicket.injection.web.InjectorHolder; 8 import org.apache.wicket.util.tester.WicketTester; 6 9 import org.junit.Test; 7 10 … … 10 13 @Test 11 14 public void testInjectorBeanRegistersItselfOnInitialization() { 15 WicketTester tester = new WicketTester(); 16 12 17 ConfigurableInjectorBean testObject = new ConfigurableInjectorBean(); 18 InjectorHolder.setInjector(testObject); 13 19 14 20 final NoopFieldValueFactory fieldValueFactory = new NoopFieldValueFactory(); … … 17 23 assertSame(fieldValueFactory, testObject.getFieldValueFactory()); 18 24 19 testObject.afterPropertiesSet();20 21 25 assertSame(testObject, InjectorHolder.getInjector()); 22 26 } his/trunk/pom.xml
r2732 r2733 37 37 38 38 <properties> 39 <wicket.version>1.4. 1</wicket.version>39 <wicket.version>1.4.9</wicket.version> 40 40 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 41 41 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> … … 484 484 <dependency> 485 485 <groupId>org.apache.wicket</groupId> 486 <artifactId>wicket-spring-annot</artifactId>487 <version>1.3.6</version>488 </dependency>489 <dependency>490 <groupId>org.apache.wicket</groupId>491 486 <artifactId>wicket-datetime</artifactId> 492 487 <version>${wicket.version}</version> his/trunk/questionnaire/frontend/pom.xml
r2732 r2733 33 33 <properties> 34 34 <jetty.version>6.1.10</jetty.version> 35 <wicket.version>1.4. 1</wicket.version>35 <wicket.version>1.4.9</wicket.version> 36 36 </properties> 37 37 … … 85 85 <artifactId>wicket-spring</artifactId> 86 86 <version>${wicket.version}</version> 87 </dependency>88 89 <dependency>90 <groupId>org.apache.wicket</groupId>91 <artifactId>wicket-spring-annot</artifactId>92 <version>1.3.6</version>93 87 </dependency> 94 88
