@Test public void testCreateClass() throws Exception { BaseClass testXClass = new BaseClass(); this.mocker.getComponentUnderTest().createClass(testXClass); assertEquals(10, testXClass.getFieldList().size()); }
@Override protected void createClass(BaseClass xclass) { xclass.addTextField("applicationName", "Application Name", 64); xclass.addTextField("applicationId", "Application Identifier", 64); xclass.addTextField("eventType", "Event type", 64); xclass.addTextField("applicationIcon", "Event icon", 64); xclass.addTextField("eventTypeIcon", "Event Type icon", 64); xclass.addTextField("eventDescription", "Event description", 64); xclass.addStaticListField("listenTo", "Listen to …", 64, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addStaticListField("objectType", "Object type", 256, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addTextAreaField("validationExpression", "Validation expression", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); xclass.addTextAreaField("target", "Target", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); }
EventClassDocumentInitializer extends AbstractMandatoryClassInitializer { @Override protected void createClass(BaseClass xclass) { xclass.addTextField("applicationName", "Application Name", 64); xclass.addTextField("applicationId", "Application Identifier", 64); xclass.addTextField("eventType", "Event type", 64); xclass.addTextField("applicationIcon", "Event icon", 64); xclass.addTextField("eventTypeIcon", "Event Type icon", 64); xclass.addTextField("eventDescription", "Event description", 64); xclass.addStaticListField("listenTo", "Listen to …", 64, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addStaticListField("objectType", "Object type", 256, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addTextAreaField("validationExpression", "Validation expression", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); xclass.addTextAreaField("target", "Target", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); } }
EventClassDocumentInitializer extends AbstractMandatoryClassInitializer { @Override protected void createClass(BaseClass xclass) { xclass.addTextField("applicationName", "Application Name", 64); xclass.addTextField("applicationId", "Application Identifier", 64); xclass.addTextField("eventType", "Event type", 64); xclass.addTextField("applicationIcon", "Event icon", 64); xclass.addTextField("eventTypeIcon", "Event Type icon", 64); xclass.addTextField("eventDescription", "Event description", 64); xclass.addStaticListField("listenTo", "Listen to …", 64, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addStaticListField("objectType", "Object type", 256, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addTextAreaField("validationExpression", "Validation expression", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); xclass.addTextAreaField("target", "Target", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); } EventClassDocumentInitializer(); }
EventClassDocumentInitializer extends AbstractMandatoryClassInitializer { @Override protected void createClass(BaseClass xclass) { xclass.addTextField("applicationName", "Application Name", 64); xclass.addTextField("applicationId", "Application Identifier", 64); xclass.addTextField("eventType", "Event type", 64); xclass.addTextField("applicationIcon", "Event icon", 64); xclass.addTextField("eventTypeIcon", "Event Type icon", 64); xclass.addTextField("eventDescription", "Event description", 64); xclass.addStaticListField("listenTo", "Listen to …", 64, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addStaticListField("objectType", "Object type", 256, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addTextAreaField("validationExpression", "Validation expression", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); xclass.addTextAreaField("target", "Target", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); } EventClassDocumentInitializer();  }
EventClassDocumentInitializer extends AbstractMandatoryClassInitializer { @Override protected void createClass(BaseClass xclass) { xclass.addTextField("applicationName", "Application Name", 64); xclass.addTextField("applicationId", "Application Identifier", 64); xclass.addTextField("eventType", "Event type", 64); xclass.addTextField("applicationIcon", "Event icon", 64); xclass.addTextField("eventTypeIcon", "Event Type icon", 64); xclass.addTextField("eventDescription", "Event description", 64); xclass.addStaticListField("listenTo", "Listen to …", 64, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addStaticListField("objectType", "Object type", 256, true, false, "", INPUT, STATIC_LIST_FIELD_SEPARATOR); xclass.addTextAreaField("validationExpression", "Validation expression", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); xclass.addTextAreaField("target", "Target", 40, 3, TextAreaClass.ContentType.VELOCITY_CODE); } EventClassDocumentInitializer();   }