1 package uba.db.sql.language;
2
3 import junit.framework.TestCase;
4 import uba.db.testhelpers.TestUtils;
5
6 /***
7 * @version $Revision: 1.3 $
8 */
9 public class StringValueTest extends TestCase {
10 /***
11 * Test de igualdad entre dos instancias.
12 */
13 public void testEquals() throws Exception {
14 TestUtils.assertEqualsImplementation(new StringValue("a"),
15 new StringValue("a"),
16 new StringValue("b"));
17 }
18
19 /***
20 * Test: evaluar el valor en un contexto.
21 */
22 public void testValueWith() throws Exception {
23 EvaluationContext context = new MockEvaluationContext();
24 StringValue stringValue = new StringValue("a");
25 assertEquals("a", stringValue.valueWith(context));
26 }
27 }