Application.Ringtoets.Migration.Test

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Final changes to the migrator: - Adjusted inquiry such that it is consistent with the console application - Updated XMLDoc - Refactored RingtoetsProjectMigratorTest: -- Extracted general method which asserts the messages from the inquiry helper -- Added tests to assert behaviour of the migrator when the file to migrate to locks (unable to write) -- Replaced all DirectoryDisposeHelpers with the FileDisposeHelpers, because the SaveFileDialog interactions are now obsolete -- Some minor cleanup

Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8636 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 024a738fb573f6a4a968fba23eb6b54b859b8596

Former-commit-id: acf833a66fdc442a399e5251063d7b6baa08fc0b

    • -51
    • +124
    ./RingtoetsProjectMigratorTest.cs
  1. … 4 more files in changeset.
Incorporated the RingtoetsProjectMigrator in the StorageCommandHandler: - Fixed compilation errors of affected tests -- Introduced mocks where necessary - Ran DeltaresClean Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8618 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: d546ad32067db464f96e9faa5a55aaa2b5eef6ca

Former-commit-id: c73bfdeaf395de90207b9bdedc43baf05869ac0b

  1. … 14 more files in changeset.
Removed dependency on the SaveFileDialog: - Converted tests to incorporate the IInquiryHelper - Removed unused references - Added tests to verify behaviour when migration is supposed to fail: -- Unsupported version -- Target path is the same as the source path

Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8598 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 868f6ce88911e3381c40092e7576dd62834eadbd

Former-commit-id: f4f76a6956d026ac4ba4c68a6ea82bb3b6f75fd5

    • -136
    • +139
    ./RingtoetsProjectMigratorTest.cs
  1. … 2 more files in changeset.
Investigate alternative for failing SaveDialogTests on the buildserver: - Expanded the IInquiryHelper with a GetTargetFileLocation which takes a file filter and a suggested initial name as argument - Incorporated mentioned feature in the RingtoetsProjectMigrator - Adjusted failing tests Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8594 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 5dcba28f6f531f2c0cc17da88348f279e582a6e1

Former-commit-id: b94f1c1b7bad927661d5eae11fecd6e414e30e71

    • -79
    • +73
    ./RingtoetsProjectMigratorTest.cs
  1. … 4 more files in changeset.
Disabled the savefile dialog tests to investigate the hanging on the buildserver Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8586 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 785c6908dcbcf286ce817aa319a9c9cd588e58d5

Former-commit-id: 1c8658fa1dd2bc9d3617823aee335fa7b309a77f

    • -207
    • +208
    ./RingtoetsProjectMigratorTest.cs
- Fixed failing tests: used Path.Combine to get the desired target path - Introduced a IMigrateProject: -- Will be used to inject the RingtoetsProjectMigrator in the StorageCommandHandler Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8584 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: a91dcf37e1ce0202f18834db2b39a8f26fa28191

Former-commit-id: cced646b70846232ac83e9628e40cd58cbea1d2a

    • -0
    • +4
    ./Application.Ringtoets.Migration.Test.csproj
  1. … 4 more files in changeset.
Created RingtoetsProjectMigrator: - GUI handler for determining when a file should be migrated and performs the migration - Added tests - Removed unused reference Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8580 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: d94000a2583fb23bc4f5a00fdaf6ebe6764791a3

Former-commit-id: 23536a9d5c9045d0ba7526835a4da47bab7b0ff4

    • -0
    • +40
    ./Application.Ringtoets.Migration.Test.csproj
    • -0
    • +440
    ./RingtoetsProjectMigratorTest.cs
  1. … 6 more files in changeset.
Created new Application.Migration project which will be responsible for the GUI migration logic - Updated License - Corrected the GlobalAssembly reference Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8519 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 23dbbb0d041401d4be9ae3b62d361b0ea6a34f82

Former-commit-id: 21f778a456d7422b2f532c48ff3324901f13a663

    • -1
    • +6
    ./Application.Ringtoets.Migration.Test.csproj
Created new Application.Migration project which will be responsible for the GUI migration logic - Updated License - Renamed and moved existing Application.Migration projects: -- Application.Migration --> Application.Migration.Core which will serve as the main library for all related Migration Ringtoets functionality -- Application.MigrationConsole --> Application.Migration.Console -- Updated the TestDataPath to point to the correct path Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8518 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 26428f30b3c9f36ab105d8aa3a93e3df6449211b

Former-commit-id: dcb9d35bd6a34039e0d7b5a66b001036eed19c95

    • -65
    • +2
    ./Application.Ringtoets.Migration.Test.csproj
    • -40
    • +0
    ./RingtoetsDatabaseQueryBuilderTest.cs
    • -124
    • +0
    ./RingtoetsDatabaseSourceFileTest.cs
    • -242
    • +0
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
    • binary
    ./test-data/UnsupportedVersion8.rtd
  1. … 79 more files in changeset.
- Used nameof methods instead of random path to create test file names. - Bubbled IOException when trying to delete a test file and it fails so we know that the file is not deleted. Paired with @janssen

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8412 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: e808c5751086faf8a2b72d918e1074adb5044314

Former-commit-id: 4ba1926135f291f4b4a4ecb3debc1e7712f492c3

    • -5
    • +5
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
  1. … 25 more files in changeset.
* More tests now write to Scratchpad folder instead of some test data path (or to temp) Related to Issue [WTI-1088]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8381 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 52b0d6344e1d95add3b4fb21d5fc94c6cabdd09f

Former-commit-id: 8971cf5a936306f7e587726a9e1c205a79758950

    • -5
    • +5
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
  1. … 32 more files in changeset.
Modified old project to contain values that are invalid in the new version of projects. Related to Issue [WTI-1070]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8285 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: a08d37df2b95d3b82dbcfe71b7a4f1b36f773097

Former-commit-id: 18e1210a8a794ce19fcb6e50e38497302fa78f33

- Updated texts Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8224 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f6c28a3cf3890d7739e3f084ca0f4fcf7640e320

Former-commit-id: e3b698b0078df6750460ad154b53b8d585ce964f

    • -6
    • +8
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
  1. … 10 more files in changeset.
- Updated texts Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8215 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 68650ad5922e20b88aa738c2210247718418450c

Former-commit-id: f6d8c7a149f3210a91ff604a419ad58307f33301

  1. … 2 more files in changeset.
- Updated texts Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8196 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 3ba9b10bd5ee3c9252c80fb3ecc8700e483bbf5c

Former-commit-id: a219d79996006a6c4ff9ab9b597b9ce321dd72db

    • -4
    • +4
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
  1. … 11 more files in changeset.
Fixed migration script so that it works when there are more than one assessment sections in one project. Updated the FullTestProject164.rtd with the demo project. Now, the project consists of (this should be the standard for future releases): - A FullTestProject - A demo assessment section Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8191 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 69e0442bf211245524f227615ec6319208905d59

Former-commit-id: 0c6fcb27eebccbf51762ad9de6c57a533efe514f

  1. … 1 more file in changeset.
Fixed Dispose implementation, see: * https://msdn.microsoft.com/en-us/library/fs2xkftw(v=vs.110).aspx * https://msdn.microsoft.com/en-us/library/ms182329.aspx Modified test names according to review suggestions paired with berg_jl Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8173 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 0309ea4270612fcb1bcc18fc4a5e736b9d1722d2

Former-commit-id: 8e47735d6edd9e2f33431dd21d6f9c686651c976

  1. … 4 more files in changeset.
Applied method to lock the files in FileDisposeHelper where possible Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8150 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 67621ad852eab313bb0d99c8dda5d629855744ad

Former-commit-id: 4d57b4761a5442330b5e001af2c718a25dae097c

    • -2
    • +3
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
  1. … 5 more files in changeset.
Introduced ValidateVersion and used where possible Refactored ConsoleHelper.GetWindowWidth Created test case source for Valid and Invalid Ringtoets versions Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8141 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f0424502c7e1f90654dc31ea041ff7fa20f92254

Former-commit-id: 377895345b2dd85a3e894d7d5c63a60cb3b13cb0

  1. … 8 more files in changeset.
Review related changes Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8138 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: a49ab132bc83e24096bab6c44313eff9822ddaac

Former-commit-id: 93877f5bf2e9e6cc5190c466524b3e1a3f6e8be0

  1. … 17 more files in changeset.
Linked minimum database version for migration to RingtoetsVersionHelper Updated migration with new minimum version Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8067 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 6eb7cad3ce90b6ade3917b0fedc39cf302441011

Former-commit-id: e98ea607aec97db86055198a61af55acf3e47110

    • -0
    • +4
    ./Application.Ringtoets.Migration.Test.csproj
    • -2
    • +2
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
  1. … 7 more files in changeset.
Added exception handling for VersionedFileComparer Added coverage for VersionedFileComparer Added single quotes surrounding "version" in messages Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8058 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 5d87ebf9e7b068e515bbaac29664b7e76916a4fb

Former-commit-id: 072aacd56a266acb0b6e579a76d70ba1c0190061

    • -2
    • +2
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
  1. … 7 more files in changeset.
Various review related changes

Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8048 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 470dff7df1471130399ed0aa37152fd2be9eccae

Former-commit-id: 800301e395949ce32878b0584b551fccc7ed3a84

  1. … 1 more file in changeset.
Fixed FullTestProject164.rtd such that all ForeshoreProfiles have names Removed DefaultEnvironmentControl.cs Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8046 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 6e6bf42d5fe9fd264b0eb5d6ddf56f91bfc8fb39

Former-commit-id: 18deb6429671294e9f2829c19e26040f154aea31

  1. … 8 more files in changeset.
Various review related changes Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8036 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 0ea760c603ca2f9027e48c58e3ab01246b84ebad

Former-commit-id: de1b1c0100b80f5c09f21ae9e3102b1dd6e8f8c8

    • -4
    • +5
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
  1. … 3 more files in changeset.
Changed license of Migrator to GNU Lesser General Public License Various review related changes Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8034 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 9f0ef06051d4b46e8dd8e42c4f72cf35ae2c07ca

Former-commit-id: cb795f6985db519fc3dfc11b1e5290d76aac76f1

  1. … 65 more files in changeset.
Paired with ~berg_jl to possibly refactor parts of Migration Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8025 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: b543dd74b8f248a2237f65d6065d7a20e1604585

Former-commit-id: e4b5dc7b2ebefcf63624e175be545eb7daecfa72

  1. … 6 more files in changeset.
Fixed test paths in Application.Ringtoets.Migration Changed Demo164.rtd to FullTestProject164.rtd, since it is a more complete testcase Created new test project: FullTestProject171.rtd Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7996 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 793262d9233b175e27062326f046a1f278e586ae

Former-commit-id: 6f1e05aac81181b12e573115fe698ef72e1f90b6

    • -7
    • +7
    ./RingtoetsSqLiteDatabaseFileMigratorTest.cs
    • binary
    ./test-data/FullTestProject171.rtd
  1. … 1 more file in changeset.
Updated XMLdoc Added test for ConsoleOutput.Dispose Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7994 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 42788323d4a1662970edfa851cf1b00ec6caee75

Former-commit-id: dcd3711e27ef3731dc6473585d65a895500d4cca

  1. … 12 more files in changeset.
Created Test util projects for Migration.Scripts.Data Renamed ValidateFilePathIsWritable to CreateFileIfNotExists, since it also creates the file Related to Issue [WTI-1060]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7988 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: abafe76f7888e3a3b20b814ccae92372aadb747b

Former-commit-id: 5dc5de346f588c0ff0fe3728da01f1a070bd75a6

  1. … 10 more files in changeset.