| # | Test case [automated] | Description |
| 1 | Constructing DataObject instance I [Done]
| 1.
Load simple_test_module if not loaded yet. 2.
Create new DataObject for file file1.txt using DataObject constructor. 3.
Try create the same DataObject for file file1.txt once again.
|
|
EXPECTED RESULT:
There should be thrown an Exception informing about that the DataObject already exists. |
| 2 | Remove DataLoader from LoaderPool [Done]
| 1.
Remove UL from the LoaderPool using LoaderPoolNode from the core module.
|
|
EXPECTED RESULT:
Check all registered loaders, if removed loader was unregistered. |
| 3 | Constructing DataObject instance II [Done]
| 1.
Create new DataObject for file file1.txt using DataObject constructor.
|
|
EXPECTED RESULT:
The old instance shouldn't be referenced anymore and the DataLoader was removed, so the DataObject should be created. |
| 4 | Adding DataLoder into LoaderPool [Done]
| 1.
Get instance of simple_test_module manifest from the ModuleManager. 2.
Get LoaderSection from this manifest. 3.
Install loaders provided by this module into the LoaderPool.
|
|
EXPECTED RESULT:
Check LoaderPool for presence of this new loader. |
| 5 | Constructing DataObject instance III [Done]
| 1.
Create new DataObject for file file1.txt using DataObject constructor.
|
|
EXPECTED RESULT:
The DataObject should be created, because the old instance isn't after adding new DataLoader referenced any more. |
| 6 | Finding DataObject instance [Done]
| 1.
Find DataObject for file file1.txt using DataObject find(). 2.
From returned DataObject get the DataLoader.
|
|
EXPECTED RESULT:
file1.txt should be recognized by UL DataLoader. |
| 7 | Remove DataLoader from LoaderPool [Done]
| 1.
Remove UL from the LoaderPool using LoaderPoolNode from the core module.
|
|
EXPECTED RESULT:
Check all registered loaders, if removed loader was unregistered. |
| 8 | Finding DataObject instance [Done]
| 1.
Find DataObject for file file1.txt using DataObject find(). 2.
From returned DataObject get the DataLoader.
|
|
EXPECTED RESULT:
file1.txt should be recognized by DefaultDataLoader. |
| 9 | Finding DataObject instance [Done]
| 1.
Find DataObject for file file2.txt using DataObject find(). 2.
From returned DataObject get the DataLoader.
|
|
EXPECTED RESULT:
file2.txt should be recognized by DefaultDataLoader. |
| 10 | Adding DataLoder into LoaderPool [Done]
| 1.
Get instance of simple_test_module manifest from the ModuleManager. 2.
Get LoaderSection from this manifest. 3.
Install loaders provided by this module into the LoaderPool.
|
|
EXPECTED RESULT:
Check LoaderPool for presence of this new loader. |
| 11 | Finding DataObject instance [Done]
| 1.
Find DataObject for file file1.txt using DataObject find(). 2.
From returned DataObject get the DataLoader.
|
|
EXPECTED RESULT:
file1.txt should be recognized by UL DataLoader. |
| 12 | Finding DataObject instance [Done]
| 1.
Find DataObject for file file2.txt using DataObject find(). 2.
From returned DataObject get the DataLoader.
|
|
EXPECTED RESULT:
file2.txt should be recognized by UL DataLoader. |
| 13 | Preferred DataLoader [Done]
| 1.
Check preferred loader for file1.txt.
|
|
EXPECTED RESULT:
Prefered loader should not be set. |
| 14 | Set Preferred DataLoader [Done]
| 1.
Set preferred loader for file1.txt to UL. 2.
Invalidate all DataObjects created by UL and gc them. 3.
Find DataObject for file1.txt.
|
|
EXPECTED RESULT:
UL loader should be used first for next recognition of this file. |
| 15 | First producer [Done]
| 1.
Find DataObject for file1.txt. 2.
Get first producer of this DataObject.
|
|
EXPECTED RESULT:
First producer should be UL loader. |