/** * Creates void and integer data types for the given model-root (which is presumed to not already * possess them), which are to be used with the given domain (which may be null). * * <p>This is useful for tests that don't load a model, but instead directly create all the model * elements they manipulate. */ public static void createMockDefaultDataTypes(Ooaofooa modelRoot, Domain_c forDomain) { // create a void data type DataType_c dataType = new DataType_c(modelRoot); dataType.setName("void"); dataType.relateAcrossR14To(forDomain); dataType.relateAcrossR17To(new CoreDataType_c(modelRoot)); // create an integer data type dataType = new DataType_c(modelRoot); dataType.setName("integer"); dataType.relateAcrossR14To(forDomain); dataType.relateAcrossR17To(new CoreDataType_c(modelRoot)); }