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:
@@ -64,7 +64,7 @@
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Template\Velocity\VelocityEngineFactoryObjectTests.xml" />
|
||||
<EmbeddedResource Include="Template\Velocity\VelocityEngineFactoryObjectTests.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Properties\" />
|
||||
|
||||
@@ -50,9 +50,6 @@ namespace Spring.Template.Velocity.Tests.Template.Velocity
|
||||
typeof (VelocityEngineFactoryObjectTests)));
|
||||
VelocityEngine velocityEngine = appContext.GetObject("velocityEngine") as VelocityEngine;
|
||||
Assert.IsNotNull(velocityEngine);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user