Register ContextNamespaceParser as well known parser in NamespaceParserRegistry
This commit is contained in:
@@ -30,9 +30,7 @@ namespace Spring.Context.Attributes
|
||||
{
|
||||
protected override void CreateApplicationContext()
|
||||
{
|
||||
NamespaceParserRegistry.RegisterParser(typeof(ContextNamespaceParser));
|
||||
_ctx = new XmlApplicationContext(ReadOnlyXmlTestResource.GetFilePath("SimpleScanTest.xml", GetType()));
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -38,7 +38,6 @@ namespace Spring.Context.Attributes
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
NamespaceParserRegistry.RegisterParser(typeof(ContextNamespaceParser));
|
||||
_applicationContext = new XmlApplicationContext(ReadOnlyXmlTestResource.GetFilePath("SimpleScanTest.xml", GetType()));
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ namespace Spring.Context.Config
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
NamespaceParserRegistry.RegisterParser(typeof(ContextNamespaceParser));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace Spring.Context.Config
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
NamespaceParserRegistry.RegisterParser(typeof(ContextNamespaceParser));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -38,7 +38,6 @@ namespace Spring.Context.Config
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
NamespaceParserRegistry.RegisterParser(typeof(ContextNamespaceParser));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -38,7 +38,6 @@ namespace Spring.Context.Config
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
NamespaceParserRegistry.RegisterParser(typeof(ContextNamespaceParser));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -30,11 +30,10 @@ namespace Spring.Context.Config
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
NamespaceParserRegistry.RegisterParser(typeof(ContextNamespaceParser));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Registered()
|
||||
public void RegisteredAsWellKnownParser()
|
||||
{
|
||||
Assert.IsNotNull(NamespaceParserRegistry.GetParser("http://www.springframework.net/context"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user