Fixed broken unit tests:

1. Changed incorrect reference to template object in VelocityEngineFactoryObjectTests.xml
2. Made VelocityEngineFactoryObjectTests.xml embedded resource
This commit is contained in:
erezmazor
2009-06-05 07:31:11 +00:00
parent b12e013584
commit 1c3fb1b352
3 changed files with 2 additions and 5 deletions

View File

@@ -64,7 +64,7 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Template\Velocity\VelocityEngineFactoryObjectTests.xml" />
<EmbeddedResource Include="Template\Velocity\VelocityEngineFactoryObjectTests.xml" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />

View File

@@ -50,9 +50,6 @@ namespace Spring.Template.Velocity.Tests.Template.Velocity
typeof (VelocityEngineFactoryObjectTests)));
VelocityEngine velocityEngine = appContext.GetObject("velocityEngine") as VelocityEngine;
Assert.IsNotNull(velocityEngine);
}
}
}

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net"
xmlns:tx="http://www.springframework.net/tx">
<object id="velocityEngine" type="Spring.Content.Velocity.VelocityEngineFactoryObject, Spring.Content">
<object id="velocityEngine" type="Spring.Template.Velocity.VelocityEngineFactoryObject, Spring.Template.Velocity">
<property name="VelocityProperties">
<dictionary key-type="string" value-type="object">
<entry key="resource.loader" value="assembly"/>