Search in sources :

Example 1 with Dataset

use of org.openforis.collect.relational.model.Dataset in project collect by openforis.

the class RelationalDataConverterTest method testGenerator.

@Test
public void testGenerator() throws Exception {
    RelationalSchemaGenerator rsg = new RelationalSchemaGenerator();
    RelationalSchema rs = rsg.generateSchema(survey, "archenland1");
    List<Table<?>> tables = rs.getTables();
    CollectRecord record = createTestRecord(survey, "123_456");
    Dataset data = rs.createDataset(record);
    data.print(System.out);
// TODO proper integration test
}
Also used : CollectRecord(org.openforis.collect.model.CollectRecord) Table(org.openforis.collect.relational.model.Table) RelationalSchemaGenerator(org.openforis.collect.relational.model.RelationalSchemaGenerator) Dataset(org.openforis.collect.relational.model.Dataset) RelationalSchema(org.openforis.collect.relational.model.RelationalSchema) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 CollectRecord (org.openforis.collect.model.CollectRecord)1 Dataset (org.openforis.collect.relational.model.Dataset)1 RelationalSchema (org.openforis.collect.relational.model.RelationalSchema)1 RelationalSchemaGenerator (org.openforis.collect.relational.model.RelationalSchemaGenerator)1 Table (org.openforis.collect.relational.model.Table)1