use of org.talend.components.jira.tjiraoutput.TJiraOutputProperties in project components by Talend.
the class JiraSourceOrSinkTestIT method setUp.
/**
* Prepares required instances for tests
*/
@Before
public void setUp() {
AvroRegistry registry = new AvroRegistry();
Schema stringSchema = registry.getConverter(String.class).getSchema();
Schema.Field jsonField = new Schema.Field("json", stringSchema, null, null, Order.ASCENDING);
schema = Schema.createRecord("jira", null, null, false, Collections.singletonList(jsonField));
schema.addProp(TALEND_IS_LOCKED, "true");
outputProperties = new TJiraOutputProperties("root");
outputProperties.connection.hostUrl.setValue(HOST_PORT);
outputProperties.connection.basicAuthentication.userId.setValue("userIdValue");
outputProperties.connection.basicAuthentication.password.setValue("passwordValue");
outputProperties.resource.setValue(Resource.ISSUE);
outputProperties.schema.schema.setValue(schema);
outputProperties.action.setValue(Action.INSERT);
}
Aggregations