Package org.openengsb.core.services.internal.deployer.connector.ConnectorFile

Examples of org.openengsb.core.services.internal.deployer.connector.ConnectorFile.ChangeSet


    public void testUpdateAddNewProperty_shouldShowChangedValueInResult() throws Exception {
        FileUtils.writeLines(connectorFile, Arrays.asList("domainType=d",
            "connectorType=c", "property.foo=bar,42"));
        ConnectorFile fileObject = new ConnectorFile(connectorFile);
        FileUtils.writeLines(connectorFile, Arrays.asList("property.foo=bar,42", "property.test=xxx"));
        ChangeSet update = fileObject.getChanges(connectorFile);
        update.getChangedProperties().entriesOnlyOnRight().containsKey("test");
    }
View Full Code Here


        FileUtils.writeLines(connectorFile, Arrays.asList("domainType=d",
            "connectorType=c", "property.foo=bar"));
        ConnectorFile fileObject = new ConnectorFile(connectorFile);
        FileUtils.writeLines(connectorFile, Arrays.asList("domainType=d",
            "connectorType=c", "property.foo=bar,42"));
        ChangeSet update = fileObject.getChanges(connectorFile);
        update.getChangedProperties().entriesOnlyOnRight().containsKey("test");
    }
View Full Code Here

    private void doUpdate(File artifact) throws Exception {
        ConnectorFile connectorFile = oldConfigs.get(artifact);
        final String connectorId = connectorFile.getName();
        ConnectorDescription persistenceContent = serviceManager.getAttributeValues(connectorId);
        ChangeSet changes = connectorFile.getChanges(artifact);

        final ConnectorDescription newDescription;
        try {
            newDescription = applyChanges(persistenceContent, changes);
            connectorFile.update(artifact);
View Full Code Here

TOP

Related Classes of org.openengsb.core.services.internal.deployer.connector.ConnectorFile.ChangeSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.