use of org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties in project components by Talend.
the class MarkLogicInputPropertiesTest method testGetConnectionProperties.
@Test
public void testGetConnectionProperties() {
MarkLogicConnectionProperties connectionProperties = new MarkLogicConnectionProperties("connectionProperties");
connectionProperties.init();
testInputProperties.init();
testInputProperties.connection.referencedComponent.setReference(connectionProperties);
assertEquals(connectionProperties, testInputProperties.getConnectionProperties());
}
use of org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties in project components by Talend.
the class MarkLogicOutputPropertiesTest method testGetConnectionProperties.
@Test
public void testGetConnectionProperties() {
MarkLogicConnectionProperties connectionProperties = new MarkLogicConnectionProperties("connectionProperties");
connectionProperties.init();
testOutputProperties.init();
testOutputProperties.connection.referencedComponent.setReference(connectionProperties);
assertEquals(connectionProperties, testOutputProperties.getConnectionProperties());
}
use of org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties in project components by Talend.
the class MarkLogicOutputPropertiesTest method testUseExistedConnectionHideConnectionWidget.
@Test
public void testUseExistedConnectionHideConnectionWidget() {
MarkLogicConnectionProperties someConnection = new MarkLogicConnectionProperties("connection");
testOutputProperties.init();
someConnection.init();
testOutputProperties.connection.referencedComponent.setReference(someConnection);
testOutputProperties.connection.referencedComponent.componentInstanceId.setValue(MarkLogicConnectionDefinition.COMPONENT_NAME + "_1");
testOutputProperties.refreshLayout(testOutputProperties.getForm(Form.MAIN));
boolean isConnectionHostPropertyHidden = testOutputProperties.connection.getForm(Form.MAIN).getWidget(testOutputProperties.connection.host).isHidden();
boolean isConnectionPortPropertyHidden = testOutputProperties.connection.getForm(Form.MAIN).getWidget(testOutputProperties.connection.port).isHidden();
boolean isUserNameHidden = testOutputProperties.connection.getForm(Form.MAIN).getWidget(testOutputProperties.connection.username).isHidden();
boolean isPasswordHidden = testOutputProperties.connection.getForm(Form.MAIN).getWidget(testOutputProperties.connection.password).isHidden();
boolean isConnectionDatabasePropertyHidden = testOutputProperties.connection.getForm(Form.MAIN).getWidget(testOutputProperties.connection.database).isHidden();
assertTrue(isConnectionHostPropertyHidden);
assertTrue(isConnectionPortPropertyHidden);
assertTrue(isUserNameHidden);
assertTrue(isPasswordHidden);
assertTrue(isConnectionDatabasePropertyHidden);
}
use of org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties in project components by Talend.
the class MarkLogicDataSourceTest method setup.
@Before
public void setup() {
datasource = new MarkLogicDataSource();
datastore = new MarkLogicConnectionProperties("datastore");
datastore.init();
MarkLogicDatasetProperties dataset = new MarkLogicDatasetProperties("dataset");
dataset.setDatastoreProperties(datastore);
dataset.init();
datasource.initialize(null, dataset);
}
use of org.talend.components.marklogic.tmarklogicconnection.MarkLogicConnectionProperties in project components by Talend.
the class MarkLogicDatastoreRuntimeTest method setup.
@Before
public void setup() {
datastoreRuntime = new MarkLogicDatastoreRuntime();
MarkLogicConnectionProperties datastore = new MarkLogicConnectionProperties("datastore");
datastore.referencedComponent.componentInstanceId.setValue("reference");
datastoreRuntime.initialize(null, datastore);
}
Aggregations