
| Key: |
FEST-119
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Alex Ruiz
|
| Reporter: |
Alex Ruiz
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
From Eric Kolotyluk:
OK, The first part of my tests work, but the second part does not. The test code is
@Test public void excerciseAssetTree()
{
JTreeFixture treeFixture = frameFixture.tree();
treeFixture.selectPath("Color/Blue");
treeFixture.requireSelection(1);
treeFixture.selectPath("Color/Green");
treeFixture.requireSelection(2);
treeFixture.selectPath("Color/Red");
treeFixture.requireSelection(3);
treeFixture.selectRow(1);
treeFixture.requireSelection("Color/Blue"); treeFixture.selectRow(2);
treeFixture.requireSelection("Color/Green");
treeFixture.selectRow(3);
treeFixture.requireSelection("Color/Red");
}
As far as I can tell the second set of tests are just the inverse of the first set, so I don't understand why it's failing.
Cheers, Eric
From Jeanette:
Alex,
you can reproduce it with any tree with rootVisible == false.
Problem seems to be that the addRoot-Magic is asymmetric: it happens in selectPath(String) but not in requireSelection(String). The former delegates to JTreeMatchingPathQuery.findVisible which does add the root, the latter to JMPQ.matchingPathFor which doesn't.
BTW, any reason there are two implementations of the addRoot, one implementation in JMPQ, one in JTreeDriver (duplicating the method call in selectPath).
|
|
Description
|
From Eric Kolotyluk:
OK, The first part of my tests work, but the second part does not. The test code is
@Test public void excerciseAssetTree()
{
JTreeFixture treeFixture = frameFixture.tree();
treeFixture.selectPath("Color/Blue");
treeFixture.requireSelection(1);
treeFixture.selectPath("Color/Green");
treeFixture.requireSelection(2);
treeFixture.selectPath("Color/Red");
treeFixture.requireSelection(3);
treeFixture.selectRow(1);
treeFixture.requireSelection("Color/Blue"); treeFixture.selectRow(2);
treeFixture.requireSelection("Color/Green");
treeFixture.selectRow(3);
treeFixture.requireSelection("Color/Red");
}
As far as I can tell the second set of tests are just the inverse of the first set, so I don't understand why it's failing.
Cheers, Eric
From Jeanette:
Alex,
you can reproduce it with any tree with rootVisible == false.
Problem seems to be that the addRoot-Magic is asymmetric: it happens in selectPath(String) but not in requireSelection(String). The former delegates to JTreeMatchingPathQuery.findVisible which does add the root, the latter to JMPQ.matchingPathFor which doesn't.
BTW, any reason there are two implementations of the addRoot, one implementation in JMPQ, one in JTreeDriver (duplicating the method call in selectPath). |
Show » |
Sort Order:
| There are no comments yet on this issue.
|
|