Revision: 1251
Author: mathiasbr
Date: 2006-07-28 06:16:57 -0700 (Fri, 28 Jul 2006)
ViewCVS: http://svn.sourceforge.net/spring-rich-c/?rev=1251&view=rev
Log Message:
-----------
fix tests to use ApplicationWindowFactory
Modified Paths:
--------------
trunk/spring-richclient/support/src/test/java/org/springframework/richclient/security/support/DefaultSecurityControllerManagerTests.java
trunk/spring-richclient/support/src/test/resources/org/springframework/richclient/security/support/test-security-controller-ctx.xml
Modified:
trunk/spring-richclient/support/src/test/java/org/springframework/richclient/security/support/DefaultSecurityControllerManagerTests.java
===================================================================
---
trunk/spring-richclient/support/src/test/java/org/springframework/richclient/security/support/DefaultSecurityControllerManagerTests.java
2006-07-28 12:54:07 UTC (rev 1250)
+++
trunk/spring-richclient/support/src/test/java/org/springframework/richclient/security/support/DefaultSecurityControllerManagerTests.java
2006-07-28 13:16:57 UTC (rev 1251)
@@ -9,6 +9,8 @@
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.richclient.application.Application;
import org.springframework.richclient.application.ApplicationServicesLocator;
+import org.springframework.richclient.application.ApplicationWindow;
+import org.springframework.richclient.application.ApplicationWindowFactory;
import
org.springframework.richclient.application.config.ApplicationWindowConfigurer;
import
org.springframework.richclient.application.config.DefaultApplicationLifecycleAdvisor;
import
org.springframework.richclient.application.support.DefaultApplicationWindow;
@@ -162,6 +164,12 @@
assertFalse( "Object should not be enabled", cmdWrite.isEnabled() );
}
+
+ public static class TestApplicationWindowFactory implements
ApplicationWindowFactory {
+ public ApplicationWindow createApplicationWindow() {
+ return new TestApplicationWindow();
+ }
+ }
/**
* Special ApplicationWindow class for testing.
Modified:
trunk/spring-richclient/support/src/test/resources/org/springframework/richclient/security/support/test-security-controller-ctx.xml
===================================================================
---
trunk/spring-richclient/support/src/test/resources/org/springframework/richclient/security/support/test-security-controller-ctx.xml
2006-07-28 12:54:07 UTC (rev 1250)
+++
trunk/spring-richclient/support/src/test/resources/org/springframework/richclient/security/support/test-security-controller-ctx.xml
2006-07-28 13:16:57 UTC (rev 1251)
@@ -5,8 +5,8 @@
<bean id="securityAwareConfigurer"
class="org.springframework.richclient.security.SecurityAwareConfigurer"
lazy-init="false" />
- <bean id="applicationWindowPrototype"
-
class="org.springframework.richclient.security.support.DefaultSecurityControllerManagerTests$TestApplicationWindow"
+ <bean id="applicationWindowFactory"
+
class="org.springframework.richclient.security.support.DefaultSecurityControllerManagerTests$TestApplicationWindowFactory"
lazy-init="true"/>
<bean id="serviceLocator"
class="org.springframework.richclient.application.ApplicationServicesLocator">
@@ -20,6 +20,7 @@
<property name="applicationObjectConfigurerId">
<idref bean="applicationObjectConfigurer" />
</property>
+ <property name="applicationWindowFactoryId"><idref
bean="applicationWindowFactory"/></property>
</bean>
<bean id="applicationObjectConfigurer" depends-on="serviceLocator"
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs