Examples of applyToMyPrimitive()


Examples of org.openstreetmap.josm.gui.conflict.pair.tags.TagMergeItem.applyToMyPrimitive()

        TagMergeItem item = new TagMergeItem("key", "myvalue", "theirvalue");
        item.decide(MergeDecisionType.KEEP_MINE);

        Node n1 = new Node(1);
        n1.put("key", "oldvalue");
        item.applyToMyPrimitive(n1);
        assertEquals("myvalue", n1.get("key"));

        n1 = new Node(1);
        item.applyToMyPrimitive(n1);
        assertEquals("myvalue", n1.get("key"));
View Full Code Here

Examples of org.openstreetmap.josm.gui.conflict.pair.tags.TagMergeItem.applyToMyPrimitive()

        n1.put("key", "oldvalue");
        item.applyToMyPrimitive(n1);
        assertEquals("myvalue", n1.get("key"));

        n1 = new Node(1);
        item.applyToMyPrimitive(n1);
        assertEquals("myvalue", n1.get("key"));

    }

    @Test()
View Full Code Here

Examples of org.openstreetmap.josm.gui.conflict.pair.tags.TagMergeItem.applyToMyPrimitive()

        TagMergeItem item = new TagMergeItem("key", "myvalue", "theirvalue");
        item.decide(MergeDecisionType.KEEP_THEIR);

        Node n1 = new Node(1);
        n1.put("key", "oldvalue");
        item.applyToMyPrimitive(n1);
        assertEquals("theirvalue", n1.get("key"));

        n1 = new Node(1);
        item.applyToMyPrimitive(n1);
        assertEquals("theirvalue", n1.get("key"));
View Full Code Here

Examples of org.openstreetmap.josm.gui.conflict.pair.tags.TagMergeItem.applyToMyPrimitive()

        n1.put("key", "oldvalue");
        item.applyToMyPrimitive(n1);
        assertEquals("theirvalue", n1.get("key"));

        n1 = new Node(1);
        item.applyToMyPrimitive(n1);
        assertEquals("theirvalue", n1.get("key"));
    }

    @Test()
    public void test_applyToMyPrimitive_3() {
View Full Code Here

Examples of org.openstreetmap.josm.gui.conflict.pair.tags.TagMergeItem.applyToMyPrimitive()

        // item.decide(MergeDecisionType.KEEP_THEIR);

        Node n1 = new Node(1);
        n1.put("key", "oldvalue");
        try {
            item.applyToMyPrimitive(n1);
            fail("expected IllegalStateException");
        } catch(IllegalStateException e) {
            // OK
        }
    }
View Full Code Here

Examples of org.openstreetmap.josm.gui.conflict.pair.tags.TagMergeItem.applyToMyPrimitive()

    @Test()
    public void test_applyToMyPrimitive_4() {
        TagMergeItem item = new TagMergeItem("key", "myvalue", "theirvalue");

        try {
            item.applyToMyPrimitive(null);
            fail("expected IllegalArgumentException");
        } catch(IllegalArgumentException e) {
            // OK
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.