Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects/Factory/Xml
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv23687/test/Spring/Spring.Core.Tests/Objects/Factory/Xml
Modified Files:
XmlListableObjectFactoryTests.cs
Log Message:
fixed SPRNET-920
Index: XmlListableObjectFactoryTests.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects/Factory/Xml/XmlListableObjectFactoryTests.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** XmlListableObjectFactoryTests.cs 22 Aug 2007 08:50:11 -0000 1.6
--- XmlListableObjectFactoryTests.cs 5 Apr 2008 13:35:35 -0000 1.7
***************
*** 91,94 ****
--- 91,98 ----
parent.RegisterObjectDefinition("rod", new RootObjectDefinition(typeof (TestObject), new MutablePropertyValues(m)));
+ // for testing dynamic ctor arguments + parent.GetObject() call propagation
+ parent.RegisterObjectDefinition("namedfather", new RootObjectDefinition(typeof(TestObject), false));
+ parent.RegisterObjectDefinition("typedfather", new RootObjectDefinition(typeof(TestObject), false));
+
// add unsupported IObjectDefinition implementation...
UnsupportedObjectDefinitionImplementation unsupportedDefinition = new UnsupportedObjectDefinitionImplementation();
***************
*** 96,101 ****
--- 100,109 ----
this.factory = new XmlObjectFactory(new ReadOnlyXmlTestResource("test.xml", GetType()), parent);
+
+ // TODO: should this be allowed?
+ //this.factory.RegisterObjectDefinition("typedfather", new RootObjectDefinition(typeof(object), false));
this.factory.AddObjectPostProcessor(new AnonymousClassObjectPostProcessor());
this.factory.AddObjectPostProcessor(new LifecycleObject.PostProcessor());
+
this.factory.PreInstantiateSingletons();
}
|