diff --git a/test/Spring/Spring.Core.Tests/Spring.Core.Tests.csproj b/test/Spring/Spring.Core.Tests/Spring.Core.Tests.csproj
index be94a107..d932c79f 100644
--- a/test/Spring/Spring.Core.Tests/Spring.Core.Tests.csproj
+++ b/test/Spring/Spring.Core.Tests/Spring.Core.Tests.csproj
@@ -74,5 +74,6 @@
+
\ No newline at end of file
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/AdoDaoTests.cs b/test/Spring/Spring.Data.Integration.Tests/Data/AdoDaoTests.cs
index 94ded6b0..ad95cb9b 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/AdoDaoTests.cs
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/AdoDaoTests.cs
@@ -141,6 +141,12 @@ namespace Spring.Data
}
}
- #endregion
+ protected override void OnSetUp()
+ {
+ TestObjectDao.Cleanup();
+ base.OnSetUp();
+ }
+
+ #endregion
}
}
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/DTCTests.cs b/test/Spring/Spring.Data.Integration.Tests/Data/DTCTests.cs
index a8f0a1ea..3a3759b8 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/DTCTests.cs
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/DTCTests.cs
@@ -50,6 +50,9 @@ namespace Spring.Data
}
[Test]
+#if NETCOREAPP
+ [Ignore("Not supported on .NET Core")]
+#endif
public void DeclarativeWithAttributes()
{
IAccountManager mgr = ctx["accountManager"] as IAccountManager;
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/DTCTestsNoInterfaces.cs b/test/Spring/Spring.Data.Integration.Tests/Data/DTCTestsNoInterfaces.cs
index e5bc9c73..c8e2d11f 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/DTCTestsNoInterfaces.cs
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/DTCTestsNoInterfaces.cs
@@ -44,6 +44,9 @@ namespace Spring.Data
}
[Test]
+#if NETCOREAPP
+ [Ignore("Not supported on .NET Core")]
+#endif
public void DeclarativeWithAttributes()
{
SimpleAccountManager mgr = ctx["accountManager"] as SimpleAccountManager;
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/ITestObjectDao.cs b/test/Spring/Spring.Data.Integration.Tests/Data/ITestObjectDao.cs
index bc7c22dd..cc4b71e5 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/ITestObjectDao.cs
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/ITestObjectDao.cs
@@ -19,5 +19,6 @@ namespace Spring.Data
//
int GetCountByAltMethod(int lowerAgeLimit);
int GetCountByCommandSetter(int lowerAgeLimit);
+ void Cleanup();
}
}
\ No newline at end of file
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/NativeAdoTestObjectDao.cs b/test/Spring/Spring.Data.Integration.Tests/Data/NativeAdoTestObjectDao.cs
index 14592522..724935ff 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/NativeAdoTestObjectDao.cs
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/NativeAdoTestObjectDao.cs
@@ -201,5 +201,10 @@ namespace Spring.Data
{
throw new NotImplementedException();
}
+
+ public void Cleanup()
+ {
+ throw new NotImplementedException();
+ }
}
}
\ No newline at end of file
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/TestObjectDao.cs b/test/Spring/Spring.Data.Integration.Tests/Data/TestObjectDao.cs
index 3dd1b755..6b399d1c 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/TestObjectDao.cs
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/TestObjectDao.cs
@@ -145,5 +145,10 @@ namespace Spring.Data
#endregion
}
- }
+
+ public void Cleanup()
+ {
+ AdoTemplate.ExecuteNonQuery(CommandType.Text, "delete from TestObjects ");
+ }
+ }
}
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/TestTxIsolationLevel.xml b/test/Spring/Spring.Data.Integration.Tests/Data/TestTxIsolationLevel.xml
index 90f24381..9456206b 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/TestTxIsolationLevel.xml
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/TestTxIsolationLevel.xml
@@ -4,9 +4,16 @@
xmlns:tx="http://www.springframework.net/tx"
xmlns:aop="http://www.springframework.net/aop">
+
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/adoTemplateTests.xml b/test/Spring/Spring.Data.Integration.Tests/Data/adoTemplateTests.xml
index 29d0c9e6..d66975ef 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/adoTemplateTests.xml
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/adoTemplateTests.xml
@@ -3,9 +3,16 @@
xmlns:db="http://www.springframework.net/database">
+
+
+
+
+
+
+
diff --git a/test/Spring/Spring.Data.Integration.Tests/Data/declarativeServices.xml b/test/Spring/Spring.Data.Integration.Tests/Data/declarativeServices.xml
index 5239d276..6442a628 100644
--- a/test/Spring/Spring.Data.Integration.Tests/Data/declarativeServices.xml
+++ b/test/Spring/Spring.Data.Integration.Tests/Data/declarativeServices.xml
@@ -2,8 +2,16 @@
+
+
+
+
+
+
+
+
diff --git a/test/Spring/Spring.Data.Integration.Tests/ProviderNameSource.cs b/test/Spring/Spring.Data.Integration.Tests/ProviderNameSource.cs
new file mode 100644
index 00000000..914b21c4
--- /dev/null
+++ b/test/Spring/Spring.Data.Integration.Tests/ProviderNameSource.cs
@@ -0,0 +1,49 @@
+#region License
+
+// /*
+// * Copyright 2018 the original author or authors.
+// *
+// * Licensed under the Apache License, Version 2.0 (the "License");
+// * you may not use this file except in compliance with the License.
+// * You may obtain a copy of the License at
+// *
+// * http://www.apache.org/licenses/LICENSE-2.0
+// *
+// * Unless required by applicable law or agreed to in writing, software
+// * distributed under the License is distributed on an "AS IS" BASIS,
+// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// * See the License for the specific language governing permissions and
+// * limitations under the License.
+// */
+
+#endregion
+
+#region using
+
+using Spring.Objects.Factory.Config;
+
+#endregion
+
+namespace Spring
+{
+ public class ProviderNameSource : IVariableSource
+ {
+ public bool CanResolveVariable(string name)
+ {
+ return name.ToLower() == "providername";
+ }
+
+ public string ResolveVariable(string name)
+ {
+ if (name.ToLower() != "providername")
+ {
+ return null;
+ }
+#if NETCOREAPP
+ return "SqlServer";
+#else
+ return "SqlServer-2.0";
+#endif
+ }
+ }
+}
\ No newline at end of file