We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original Reporter: Jay Rainey
This ticket is blocked by :
This ticket is blocks : TRAC7640, TRAC9084
== Implementation ==
There needs to exist support for multiple catalogs within Mantid, which can be achieved via a composite pattern.
CompositeCatalog
ICatalog
m_catalogs
add()
== Unit test ==
A test class needs to be created for this composite class to verify the functionality works as expected.
Create a test class (CompositeCatalogTest).
CompositeCatalogTest
Create a DummyCatalog class within the test class that extends ICatalog and then overrides all methods (to verify that each work).
DummyCatalog
Have a static counter in each method, in order to verify when they are called.
Create a test method for each ICatalog method.
DummyCatalogs
Keywords: ICAT
The text was updated successfully, but these errors were encountered:
This issue was originally trac ticket 9026
Sorry, something went wrong.
No branches or pull requests
Original Reporter: Jay Rainey
This ticket is blocked by :
This ticket is blocks :
TRAC7640,TRAC9084== Implementation ==
There needs to exist support for multiple catalogs within Mantid, which can be achieved via a composite pattern.
CompositeCatalog
) needs to be created.ICatalog
instances (shared pointers) namedm_catalogs
.m_catalogs
using anadd()
method.ICatalog
and override all the parents methods.m_catalogs
and call the exact method from the catalog.== Unit test ==
A test class needs to be created for this composite class to verify the functionality works as expected.
Create a test class (
CompositeCatalogTest
).Create a
DummyCatalog
class within the test class that extendsICatalog
and then overrides all methods (to verify that each work).Have a static counter in each method, in order to verify when they are called.
Create a test method for each
ICatalog
method.Create several (3-5)
DummyCatalogs
in each method, and call the relatedICatalog
method, verifying that the counter increased as expected.Keywords: ICAT
The text was updated successfully, but these errors were encountered: