Project

General

Profile

Task #6725

Story #6723: test v2 MN and CN buildouts

add new tests for v2 methods

Added by Rob Nahf about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Andrei Buium
Category:
-
Target version:
Start date:
2015-01-06
Due date:
% Done:

100%

Milestone:
None
Product Version:
*
Story Points:
Sprint:

Associated revisions

Revision 15222
Added by Andrei Buium about 9 years ago

Committed SIDIntegrationTests.java which so far contains tests for getSystemMetadata for 18 cases we've come up so far for resolving a SID into a PID.
Contains setup methods for each scenario, hopefully reusable for other tests beyone getSystemMetadata.
The testGetSystemMetadata method uses the setup methods, calls getSystemMetadata with a SID, and then checks if the returned metadata's PID matches what we'd expect.
Also overrode the createTestObject method in ContextAwareTestCaseDataOne, split into two methods, one to be usable by the tests.
refs #6725

Revision 15222
Added by Andrei Buium about 9 years ago

Committed SIDIntegrationTests.java which so far contains tests for getSystemMetadata for 18 cases we've come up so far for resolving a SID into a PID.
Contains setup methods for each scenario, hopefully reusable for other tests beyone getSystemMetadata.
The testGetSystemMetadata method uses the setup methods, calls getSystemMetadata with a SID, and then checks if the returned metadata's PID matches what we'd expect.
Also overrode the createTestObject method in ContextAwareTestCaseDataOne, split into two methods, one to be usable by the tests.
refs #6725

Revision 15234
Added by Andrei Buium about 9 years ago

Continued implementing SID-related integration tests (SIDIntegrationTests renamed to SidCommonIT and lots of functionality rewritten, SidCNIT and SidMNIT added for CN/MN-specific tests). Moved some CN/MNCallAdapter code into CommonCallAdapter. Reverted some changes to ContextAwareTestCaseDataOne because the functionality made more sense in SidCommonIT.

refs #6725

Revision 15234
Added by Andrei Buium about 9 years ago

Continued implementing SID-related integration tests (SIDIntegrationTests renamed to SidCommonIT and lots of functionality rewritten, SidCNIT and SidMNIT added for CN/MN-specific tests). Moved some CN/MNCallAdapter code into CommonCallAdapter. Reverted some changes to ContextAwareTestCaseDataOne because the functionality made more sense in SidCommonIT.

refs #6725

Revision 15240
Added by Andrei Buium about 9 years ago

Just a few fixes and some reorganizing for the SID-related integration tests

refs #6725

Revision 15240
Added by Andrei Buium about 9 years ago

Just a few fixes and some reorganizing for the SID-related integration tests

refs #6725

Revision 15245
Added by Andrei Buium about 9 years ago

Moved updateSystemMetadata() from CN/MNCallAdapter into CommonCallAdapter.

Made improvements to SidCommonIT, SidCNIT, and SidMNIT - abstracting out a few parameters, making tests more readable, etc.

Realized the modifications to ContextAwareTestCaseDataone.createTestObject() were contradictory to the API - obsoletes or obsoletedBy cannot be part of the SystemMetadata at the time of creation. Fixed method signatures.

Also fixed a bug in CNCoreTestImplementations.

refs #6725

Revision 15245
Added by Andrei Buium about 9 years ago

Moved updateSystemMetadata() from CN/MNCallAdapter into CommonCallAdapter.

Made improvements to SidCommonIT, SidCNIT, and SidMNIT - abstracting out a few parameters, making tests more readable, etc.

Realized the modifications to ContextAwareTestCaseDataone.createTestObject() were contradictory to the API - obsoletes or obsoletedBy cannot be part of the SystemMetadata at the time of creation. Fixed method signatures.

Also fixed a bug in CNCoreTestImplementations.

refs #6725

Revision 15251
Added by Andrei Buium about 9 years ago

Split the existing SID test classes into CN, MN, and a common class (SidCN/MNTestImplementations, SidCommonTestImplementations)
Since we're expecting imminent validation on the V2 API methods, the existing PID chain setup methods (for the 18 cases we've recorded) don't make sense for MNs. So I split the setup methods into the CN/MN test implementation classes with the existing ones being the CN setup methods. I wrote new test scenarios for the MN case.

Changing all SID-related tests to match our existing format:
- chanaged the Sid test classes from test classes to Sid*Implementations.java, so it can be used in composition
- created *TestDefinitions.java interfaces for SID-related tests, split up by the API they belong to
- added these ^ interfaces to the *V2IT.java test classes
- added the Sid*Implementations classes as members of the *V2IT.java test classes

Implemented Rob's new test annotations on the new SID tests, and started adding them to the existing tests.

refs #6725

Revision 15251
Added by Andrei Buium about 9 years ago

Split the existing SID test classes into CN, MN, and a common class (SidCN/MNTestImplementations, SidCommonTestImplementations)
Since we're expecting imminent validation on the V2 API methods, the existing PID chain setup methods (for the 18 cases we've recorded) don't make sense for MNs. So I split the setup methods into the CN/MN test implementation classes with the existing ones being the CN setup methods. I wrote new test scenarios for the MN case.

Changing all SID-related tests to match our existing format:
- chanaged the Sid test classes from test classes to Sid*Implementations.java, so it can be used in composition
- created *TestDefinitions.java interfaces for SID-related tests, split up by the API they belong to
- added these ^ interfaces to the *V2IT.java test classes
- added the Sid*Implementations classes as members of the *V2IT.java test classes

Implemented Rob's new test annotations on the new SID tests, and started adding them to the existing tests.

refs #6725

Revision 15252
Added by Andrei Buium about 9 years ago

Working on implemented Rob's new test annotations on the existing tests: added them to CNCoreTestImplementations.

refs #6725

Revision 15252
Added by Andrei Buium about 9 years ago

Working on implemented Rob's new test annotations on the existing tests: added them to CNCoreTestImplementations.

refs #6725

Revision 15270
Added by Andrei Buium about 9 years ago

Refactored the v1-v2 type conversion out of the CommonCallAdapter, added methods for converting in the reverse direction.
refs #6725

Revision 15270
Added by Andrei Buium about 9 years ago

Refactored the v1-v2 type conversion out of the CommonCallAdapter, added methods for converting in the reverse direction.
refs #6725

Revision 15274
Added by Andrei Buium about 9 years ago

Went through all tests in ReadTestImplementations, CNReadTestImplementations, and MNReadTestImplementations and added WebTestName and WebTestDescription annotations to them.
refs #6725

Revision 15274
Added by Andrei Buium about 9 years ago

Went through all tests in ReadTestImplementations, CNReadTestImplementations, and MNReadTestImplementations and added WebTestName and WebTestDescription annotations to them.
refs #6725

Revision 15288
Added by Andrei Buium about 9 years ago

Continued adding documenting annotations to test code.
refs #6725

Revision 15288
Added by Andrei Buium about 9 years ago

Continued adding documenting annotations to test code.
refs #6725

Revision 15305
Added by Andrei Buium about 9 years ago

Continued adding documenting annotations to test code.
refs #6725

Revision 15305
Added by Andrei Buium about 9 years ago

Continued adding documenting annotations to test code.
refs #6725

Revision 15416
Added by Andrei Buium almost 9 years ago

Committing updates to some sid tests and to v2 CNCore tests, adding to system metadata tests.
refs #6725

Revision 15416
Added by Andrei Buium almost 9 years ago

Committing updates to some sid tests and to v2 CNCore tests, adding to system metadata tests.
refs #6725

Revision 15417
Added by Andrei Buium almost 9 years ago

Committing a few more updates to system metadata tests.
refs #6725

Revision 15417
Added by Andrei Buium almost 9 years ago

Committing a few more updates to system metadata tests.
refs #6725

Revision 15424
Added by Andrei Buium almost 9 years ago

Committing some fixes to SystemMetadataChangedTestImplementations
refs #6725

Revision 15424
Added by Andrei Buium almost 9 years ago

Committing some fixes to SystemMetadataChangedTestImplementations
refs #6725

Revision 15426
Added by Andrei Buium almost 9 years ago

Committing a few more fixes to system metadata changed/update tests
refs #6725

Revision 15426
Added by Andrei Buium almost 9 years ago

Committing a few more fixes to system metadata changed/update tests
refs #6725

History

#1 Updated by Rob Nahf about 9 years ago

need to:

  1. test SID behavior for methods that accept SIDs.

  2. create tests for new methods (addFormat?)

  3. ??

#2 Updated by Andrei Buium almost 9 years ago

  • % Done changed from 0 to 30
  • Status changed from New to In Progress

API tests have been added for new methods in existing APIs, plus for MN/CNView and MNPackage APIs.
Also added some functional tests for methods that now take SIDs as well as PIDs.

#3 Updated by Andrei Buium almost 9 years ago

  • Assignee changed from Rob Nahf to Andrei Buium

#4 Updated by Andrei Buium over 8 years ago

  • Status changed from In Progress to Testing
  • % Done changed from 30 to 50

All new API methods are covered by tests. Did a little testing a while back, need to get back to it since things are implemented now.

#5 Updated by Andrei Buium over 8 years ago

  • translation missing: en.field_remaining_hours set to 0.0
  • Status changed from Testing to Closed
  • % Done changed from 50 to 100

Tests against new v2 methods and v2 methods that now use serial IDs are working properly and passing against current trunk implementation.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)