StructuresImporterTest.cs

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Renamed Ringtoets folder. WTI-1931

  1. … 15714 more files in changeset.
Changed copyright year. Paired with lubbers. WTI-1828

  1. … 6095 more files in changeset.
Rename (Core)UtilsResources to (Core)UtilResources Related to Issue [WTI-1505]

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

Former-commit-id: 3e11966a39b5153186958c643b763923bb6c0e32

Former-commit-id: 9971c0c407374663f99f15c6858c58e9670f9ef7

  1. … 21 more files in changeset.
Rename Core.Common.Utils.* to Core.Common.Util.* Related to Issue [WTI-1505]

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

Former-commit-id: cbdb6083b66a0f5e31e8d646a50ec7b6d506babb

Former-commit-id: 1e007d66918a5408581dc8e47b78130d5cd299c5

  1. … 841 more files in changeset.
Merge from branch 1289

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

Former-commit-id: ba3056d252e5c6e4ca7694457d6ac85073639d97

Former-commit-id: 7bce824a3d3e04d9e23e441c42e22972210259b3

  1. … 151 more files in changeset.
Unified the UpdateDataStrategyBase with the SurfaceLineUpdateDataStrategyBase again. Related to Issue [WTI-1289]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/branches/WTI-1289@10759 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 89548b886f1788b065f7244472145cbb954cde75

Former-commit-id: 5125c70b8eaab6502caa71cbfec835ced3f46a79

  1. … 48 more files in changeset.
Promoted the calls of the IStructureUpdateStrategy.UpdateStructuresWithImportedData to the baseclass: - Promoted CreateStructures to the base class in order to extract a template method when importing structures - Adjusted tests of the baseclass Related to Issue [WTI-1184]

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

Former-commit-id: 968c8924304971284efe2a9ef1cd148d80b303c1

Former-commit-id: 120c7133b8eea79f26df09bc36923be597ff3902

  1. … 4 more files in changeset.
Connected IStructureUpdateStrategy in the StabilityPointStructuresImporter: - Promoted IStructureUpdateStrategy constructor argument to the base class for all the importers - Changed tests, removed obsolete test for the stability point structures importer that assures the uniqueness of stability point structure items after the import action. Test can be removed because the import target is of type ObservableUniqueItemCollectionWithSourcePath Related to Issue [WTI-1184]

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

Former-commit-id: b8a80a6198f68d7ff1ac8eec44b242faa47a8180

Former-commit-id: 7fa24bf70d0a6e1935c3d25dc055633fd11a4080

  1. … 8 more files in changeset.
Implemented notification of observers after importing structure data for closing and height. Related to Issue [WTI-1181]

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

Former-commit-id: f062aba76d221167dbb6620c8b5069c5d815142c

Former-commit-id: 801cea4cf804fe8813c5d7e2348679c1e92ee54b

  1. … 6 more files in changeset.
Removed RingtoetsPipingSurfaceLineUpdateException.cs Related to Issue [WTI-1172]

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

Former-commit-id: 2f09683f772476fa0fb12c63fdecfc4ba4037884

Former-commit-id: b1a38b56fdd0f1c65f3365bb633c96c389cc0667

  1. … 14 more files in changeset.
Added GetUpdateDataFailedLogMessageText to IImporterMessageProvider Related to Issue [WTI-1172]

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

Former-commit-id: fec2a1c046594a587bada99619016b8e2399ec58

Former-commit-id: 168a1bba8abc9cfcf48ef24038f848473ab801a9

  1. … 8 more files in changeset.
Updated StructuresImporter to be created with an IMessageProvider Related to Issue [WTI-1172]

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

Former-commit-id: 453343e707a0d527884af959b9e4e72b1cc8ee11

Former-commit-id: 8cc80a8389a1a3950eeab507d00e87ef9df7aa57

  1. … 13 more files in changeset.
Implemented fail-fast for StructuresImporter. Related to Issue [WTI-1194]

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

Former-commit-id: 2c02ad63f33722e9616978ecc8d73b7417ac5ba4

Former-commit-id: 98c39fd134d4308f2c6c659e0a1e9f6ae9ec4d54

  1. … 6 more files in changeset.
Error and fail fast instead of warnings. Related to Issue [WTI-1194]

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

Former-commit-id: 28e164f41f1d784962c04f3374ceab46a8d3c29d

Former-commit-id: c921a651494c85e61b8d40ee28b2dbac77eab05a

  1. … 4 more files in changeset.
Moved test data from from integration closer to where they are used. Fixed test expectancies. Related to Issue [WTI-1194]

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

Former-commit-id: 3ac6a6b2f0cb6fb330da41f6d826f49d38682482

Former-commit-id: 5b3e08523720135d0af8b103a1da29a3016d48e5

  1. … 173 more files in changeset.
Updated license headers in ringtoets common. Related to Issue [WTI-1242]

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

Former-commit-id: ce33ce275ba930662636e02ef99d91e788db8757

Former-commit-id: 2a4583aeb892e314df72a61727f806c446493577

  1. … 551 more files in changeset.
Changed all local vars to consts if possible. Related to Issue [WTI-1242]

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

Former-commit-id: 4684a5017b9aff9f6175f7d781cb29409f50a18e

Former-commit-id: 853c649ebc49a9513535e40ec705d5b928af0bc4

  1. … 283 more files in changeset.
Code cleanup: Ringtoets.Common Ringtoets.DuneErosion Ringtoets.HydraRing Ringtoets.Integration Related to Issue [WTI-1242]

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

Former-commit-id: 0032433ea9de109c256ed5de15ebb145f6be74fc

Former-commit-id: b5477e384031933ad12287ee6958f4f68d7f9566

  1. … 429 more files in changeset.
- Updated texts of ValidateFilePath Added method GetFullPath that throws only ArgumentExceptions Related to Issue [WTI-1060]

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

Former-commit-id: c17a15c75b90157638db91f8a04112cafacf43d8

Former-commit-id: 0eed903d451361194e8d2111d155a0755c633259

  1. … 33 more files in changeset.
- Updated texts - Changed ValidateFilePath to write the chars Path.GetFileName validates against (Path.GetInvalidPathChars()) in its exception Related to Issue [WTI-1060]

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

Former-commit-id: 2035c7d87c781c6d0cc8fa7a3fdd46eb85a9b7e1

Former-commit-id: 0bb23d23531231bb7c07834ec39505714bb049a7

  1. … 24 more files in changeset.
Incorporated comments review 1385: (Editorial) - Made the spelling of "Canceled" or "Uncancelable (opposed to "Cancelled" or "Uncancellable") consistent throughout the application.

Note:

"Cancellation" is legit U.S. spelling and therefore unchanged. "Cancelation" is not common and rarely used.

Related to Issue [WTI-490]

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

Former-commit-id: 665e259f03237740e63d6441088354043dae52f2

Former-commit-id: 98c98ae04c081843c7bab2c55946744a8d06dad2

  1. … 35 more files in changeset.
- Added NotifyProgress calls when adding data to the data model - Synchronised message values across all the importers

Note:

No tests are available to verify the cancel behaviour for the FeatureBasedMapData because it has no NotifyProgress (and consequently no SetProgress handle to set the Action it should execute during the import)

Related to Issue [WTI-490]

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

Former-commit-id: ee82e9d839a1acfffb0ccb4ff219a30856c744e7

Former-commit-id: a79f8f2e64e63d1e9bac5672052dc8bc143bf91f

  1. … 18 more files in changeset.
Merged revision(s) 7595-7638 from branches/WTI-490:

Merged revision(s) 7537-7594 from trunk

........

Initial commit of changes from kleijn:

- Removed HandleUserCancellingImport: FileImporter should not decide on its own how to handle Canceled actions. Consequently removed the messages that are generated by these handles

- Added logic to the importers: Cancelling is not possible when putting data on the data model. Action will always execute when it is in this stage

- Added branching paths in the activity: Import() returns false when it has failed or is cancelled

Note: failing tests will be fixed in following commits

........

Fixed tests of the FileImporterBase and Activity:

- Checks on the states are made for the 4 different paths of the Import:

-- Import successful, canceled or not

-- Import not successful, canceled or not

- Moved logging from the activity to the importer

- Added tests to assert mentioned behaviour

........

Fixed tests of the PipingSurfaceLinesCsvImporter:

- Added test to verify behaviour when canceling at the two stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Added resource value for the ImportActivity (missing file commit)

........

Fixed tests of the PipingSoilProfilesImporter:

- Added test to verify behaviour when canceling at the three stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Cleaned redundant brackets

........

Fixed tests of the StructuresImporter:

- Added test to verify behaviour when canceling at the two stages during the import. Test regarding cancelling while Creating structures is missing

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

Adjusted test in PipingSoilProfilesImporterTest

- Changed initial value of the result to make clear that the value is set correctly

........

Fixed tests of the ProfilesImporters:

- Added test to verify behaviour when canceling at the two stages during the import. Test regarding cancelling while Creating structures is missing

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Removed obsolete Cancel call in the PipingSoilProfilesImporterTest

........

FileImporters should call Observers in case the import was successfull AND was cancelled at an uncancellable stage.

Note: test is missing to verify this behaviour

........

Fixed tests of the ProfilesImporters:

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Temporarily removed the Cancel tests, because the FeatureBasedMapDataImporter does not have a handle for NotifyProgress. Hence, Cancel method cannot be invoked when Import is running.

........

Fixed tests of the FailureMechanismSectionsImporter:

- Added test to verify behaviour when canceling at the three stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Cleaned up tests in the StructuresImporterTest

........

Fixed tests of the ReferenceLineImporter:

- Added test to verify behaviour when canceling at the two stages during the import

- Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

........

Related to Issue [WTI-490]

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

Former-commit-id: 1c355702dfbd410c7c4733529d8db9e243496eba

Former-commit-id: 75c614862d018947936ef85e3775a125c425c032

  1. … 26 more files in changeset.
Fixed tests of the FailureMechanismSectionsImporter: - Added test to verify behaviour when canceling at the three stages during the import - Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

- Cleaned up tests in the StructuresImporterTest

Related to Issue [WTI-490]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/branches/WTI-490@7636 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 23833a1f4ab3ad81a333e16378aed3b8bbbfc8dc

Former-commit-id: a49e8600ea0079ae498547eb7ea55a3832ed1292

  1. … 2 more files in changeset.
Fixed tests of the StructuresImporter: - Added test to verify behaviour when canceling at the two stages during the import. Test regarding cancelling while Creating structures is missing - Reverted changes related to HandleUserCancellingImport: messages are written by the LogImportCanceledMessage and handled adequately by the base

Adjusted test in PipingSoilProfilesImporterTest

- Changed initial value of the result to make clear that the value is set correctly

Related to Issue [WTI-490]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/branches/WTI-490@7630 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: e2edd56f05d391faac7470b1bb75dd6f40ae025f

Former-commit-id: e741664a290587da194a47ee9a587e542c76df02

  1. … 4 more files in changeset.
Cleanup of redundant code. Usings around Observer and RecursiveObserver in tests. Added missing assertions in StructuresImporterTest. Related to Issue [WTI-1008]

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

Former-commit-id: 9ccef14b391e704d281bf0faff92d0c939a8772f

Former-commit-id: a756b06bb38731d29379ec9fb39b4f6d0133fe72

  1. … 23 more files in changeset.
used lower case after colon when using FileReaderErrorMessageBuilder. Added FirstToLower method in StringExtensions. Related to Issue [WTI-948]

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

Former-commit-id: e9d3cccc3d91f565fc53bdfffabb2449c517437e

Former-commit-id: b80c97fbcc39c0000d0348fb5fa4591371f53bed

  1. … 58 more files in changeset.
Changed "standaard deviation" to "standaardafwijking" Changed "binnen het bereik" to "in het bereik" Related to Issue [WTI-577]

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

Former-commit-id: 59cb9983de9d2aa838675df3a7891714bc1a9f7a

Former-commit-id: daffa4ce36964f4f6f6920d7cb0a3994292d0e2b

  1. … 10 more files in changeset.
* Test coverage for VarianceValue conversion in ClosingStructuresImporter and HeightStructuresImporter. * Test coverage for GetStandardDeviation and GetCoefficientOfVariation of StructuresImporter. * Improved message format. Related to Issue [WTI-631]

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

Former-commit-id: 18b4b62769a0251d6a51aff07065ae2e2bc1c9a2

Former-commit-id: e49264a589e5420a3a7bbe5d0fdd858d7a9f238e

  1. … 25 more files in changeset.
Fixed test cases. Related to Issue [WTI-579]

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

Former-commit-id: 05db23cde5bb971531601a2926b504b278187c75

Former-commit-id: e586198a7a64c7dcedc6a81b4ea7827d890e223e

  1. … 11 more files in changeset.