1
0
Fork 0
liza/test/validate
Mike Gerwitz 2045c76f7e Integrate Store into DataValidator, ValidStateMonitor
ValidStateMonitor now uses a Store in place of the original primitive
object-based diff format.  The original format is translated by
DataValidator.  The code is in a transitional state, and considering
the amount of time we spend on various areas of this project, will
likely stay this way for a while.

* src/validate/DataValidator.js
  (__construct): Accept Store factory parameter.
  (_store_factory): Add field.
  (_createStores): Add method.
  (_validate): Handle Store.
  (updateFailures): Add method.
  (_populateStore): Add method.

* test/validate/DataValidatorTest.js: Add tests.

* src/validate/ValidStateMonitor.js
  (update): Enforce Store diff.
    Wait to process failures until fixes are calculated.
  (_checkFailureFix): Handle asynchronous, Promise-based diff.
  (_checkCauseFix): Extract logic from _checkCauseFix.

* test/validate/ValidStateMonitorTest.js:
  Modify test cases to be Promise-based and handle async calls where
  appropriate.  That was a friggin' expensive mess.

DEV-2296
2017-01-29 22:44:27 -05:00
..
formatter Replace Currency formatter with StringFormat 2016-12-01 08:47:23 -05:00
DataValidatorTest.js Integrate Store into DataValidator, ValidStateMonitor 2017-01-29 22:44:27 -05:00
FailureTest.js Add Failure#merge 2016-04-28 11:31:42 -04:00
ValidStateMonitorTest.js Integrate Store into DataValidator, ValidStateMonitor 2017-01-29 22:44:27 -05:00