Revision 45080 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/test/java/org/gvsig/expressionevaluator/TestExpressionBuilder.java
TestExpressionBuilder.java | ||
---|---|---|
95 | 95 |
|
96 | 96 |
Code code = compiler.compileExpression(filter); |
97 | 97 |
link(code); |
98 |
assertEquals("EXISTS(SELECT(TUPLE(\"LID_ACCIDENTE\"), \"ARENA2_VEHICULOS\", ((\"ARENA2_VEHICULOS\".\"ID_ACCIDENTE\" = \"ARENA2_ACCIDENTES\".\"LID_ACCIDENTE\") AND (\"MODELO\" = '307')), TUPLE(), TUPLE(), 1), 'EXISTS123')", code.toString());
|
|
98 |
assertEquals("EXISTS(SELECT(TUPLE(\"LID_ACCIDENTE\"), \"ARENA2_VEHICULOS\", ((GETATTR(\"ARENA2_VEHICULOS\", 'ID_ACCIDENTE') = GETATTR(\"ARENA2_ACCIDENTES\", 'LID_ACCIDENTE')) AND (\"MODELO\" = '307')), TUPLE(), TUPLE(), 1), 'EXISTS123')", code.toString());
|
|
99 | 99 |
} |
100 | 100 |
|
101 | 101 |
public void testForeintValue1() { |
... | ... | |
104 | 104 |
|
105 | 105 |
ExpressionBuilder.Function value = builder.foreing_value("SENTIDO", "DESCRIPCION"); |
106 | 106 |
String s = value.toString(new DALFormatter()); |
107 |
assertEquals("FOREING_VALUE(ARRAY['SENTIDO', 'DESCRIPCION'])", s);
|
|
107 |
assertEquals("FOREING_VALUE('SENTIDO.DESCRIPCION')", s);
|
|
108 | 108 |
|
109 | 109 |
} |
110 | 110 |
} |
Also available in: Unified diff