Examples of Promotion


Examples of org.jfrog.build.api.release.Promotion

    public void testAddScopesAndPropertiesToExistingCollections() {
        Set<String> initialScopes = Sets.newHashSet("koko");
        Map<String, Collection<String>> initialProperties = Maps.newHashMap();
        initialProperties.put("momo", Sets.<String>newHashSet("popo"));

        Promotion build = new PromotionBuilder().properties(initialProperties).addProperty("jojo", "lolo").
                scopes(initialScopes).addScope("bobo").build();

        Map<String, Collection<String>> properties = build.getProperties();
        Set<String> scopes = build.getScopes();

        assertNotNull(properties, "Properties multimap should have been created.");
        assertNotNull(scopes, "Scope set should have been created.");

        assertFalse(properties.isEmpty(), "Added properties should have been added.");
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.