ddm.setPrimaryKey(new String[]{"entero"});
DBSource dbsd = new DBSource(null, 0, "src/test/resources/testdb", "sa", "",
"nuevo", "jdbc:hsqldb:file");
ds.createDataSource(new DBSourceCreation(dbsd, ddm));
ds.registerDataSource("nuevoDataSource", new DBTableSourceDefinition(dbsd));
DataSource d = ds.getDataSource("nuevoDataSource");
d.start();
assertTrue(d.check(0, ValueFactory.createNullValue()) == null);
assertTrue(d.check(0, ValueFactory.createValue("")) == null);
assertTrue(d.check(0, ValueFactory.createValue("aa")) == null);
assertTrue(d.check(0, ValueFactory.createValue("aaaaaa")) != null);
assertTrue(d.check(1, ValueFactory.createNullValue()) == null);
assertTrue(d.check(1, ValueFactory.createValue((byte) 2)) == null);
assertTrue(d.check(2, ValueFactory.createValue(2234.3)) == null);
assertTrue(d.check(2, ValueFactory.createValue(23432.3)) != null);
assertTrue(d.check(2, ValueFactory.createValue(2.323)) != null);
d.stop();
}