/** * Create a minimal valid test microschema. * * @return */ public static MicroschemaModel createMinimalValidMicroschema() { MicroschemaModel schema = new MicroschemaModelImpl(); schema.setName("test"); schema.validate(); return schema; }
public static MicroschemaModel mockGeolocationMicroschema() { MicroschemaModel microschema = new MicroschemaModelImpl(); microschema.setName("geolocation"); microschema.setDescription("Microschema for Geolocations"); microschema.addField(new NumberFieldSchemaImpl().setName("longitude").setLabel("Longitude").setRequired(true)); microschema.addField(new NumberFieldSchemaImpl().setName("latitude").setLabel("Latitude").setRequired(true)); return microschema; }