|
Home > Archive > Apache JDO Project > February 2006 > expected test results
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
expected test results
|
|
| erik@jpox.org 2006-02-11, 7:45 am |
|
Hi,
Some expected results need to be reviewed
1) testNavigation(org.apache.jdo.tck.query.result.VariableInResult)
expected: [[1, orange]]
got: [[1, orange], [1, orange], [1, orange]]
/*UNIQUE*/ null,
/*RESULT*/ "p.projid, p.name",
/*INTO*/ null,
/*FROM*/ Employee.class,
/*EXCLUDE*/ null,
/*WHERE*/ "projects.contains(p) & p.name == 'orange'",
/*VARIABLES*/ "Project p",
/*PARAMETERS*/ null,
2) testNoNavigation(org.apache.jdo.tck.query.result.VariableInResult)
expects {Project1}, but I think it should be {Project1, Project1, Project1}
/*RESULT*/ "p",
/*INTO*/ null,
/*FROM*/ Employee.class,
/*EXCLUDE*/ null,
/*WHERE*/ "projects.contains(p) & p.name == 'orange'",
/*VARIABLES*/ "Project p",
/*PARAMETERS*/ null,
Currently JPOX creates an invalid SQL for the item 2, at least in my local dev
workspace.
| |
| Craig L Russell 2006-02-11, 5:50 pm |
| | |
| erik@jpox.org 2006-02-11, 5:50 pm |
| > What do you think?
Excellent.
Quoting Craig L Russell <Craig.Russell@Sun.COM>:
> Hi Erik,
>
> You are right on both.
>
> Employees 1, 2, and 3 all work on orange, so there should be three
> result tuples in both cases.
>
> I think we might want to make two test cases out of each of these,
> making four tests in total, and remove duplicates in two of the cases
> by using the distinct keyword, as in
>
>
>
> What do you think?
>
> Craig
>
> On Feb 11, 2006, at 3:09 AM, erik@jpox.org wrote:
>
>
> Craig Russell
> Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
>
|
|
|
|
|