Examples of PermutationArtifact


Examples of com.googlecode.mgwt.linker.linker.PermutationArtifact

    SortedSet<PermutationArtifact> pas = linkedSet.find(PermutationArtifact.class);

    Assert.assertEquals(1, pas.size());

    PermutationArtifact permutationArtifact = pas.iterator().next();

    // is the permutation name okay?
    Assert.assertEquals("strong", permutationArtifact.getPermutationName());

    // are the bindind properties okay?
    Set<BindingProperty> bindingProperties = permutationArtifact.getBindingProperties();
    Assert.assertEquals(2, bindingProperties.size());
    Assert.assertTrue(bindingProperties.contains(new BindingProperty("prop1", "v1")));
    Assert.assertTrue(bindingProperties.contains(new BindingProperty("prop2", "v2")));

    // are the files okay?
    Set<String> permutationFiles = permutationArtifact.getPermutationFiles();

    Assert.assertEquals(2, permutationFiles.size());

    Assert.assertTrue(permutationFiles.contains("strong/2.test"));
    Assert.assertTrue(permutationFiles.contains("strong/1.test"));
View Full Code Here

Examples of com.googlecode.mgwt.linker.linker.PermutationArtifact

    files.add("perm1_file1");
    files.add("perm1_file2");
    HashSet<BindingProperty> bpSet = new HashSet<BindingProperty>();
    bpSet.add(new BindingProperty("sel1", "1"));

    artifactSet.add(new PermutationArtifact(PermutationMapLinker.class, "perm1", files, bpSet));

    files = new HashSet<String>();
    files.add("perm2_file1");
    files.add("perm2_file2");
    bpSet = new HashSet<BindingProperty>();
    bpSet.add(new BindingProperty("sel1", "2"));

    artifactSet.add(new PermutationArtifact(PermutationMapLinker.class, "perm2", files, bpSet));

    ArtifactSet linkedSet = permutationMapLinker.link(null, linkerContext, artifactSet, false);

    SortedSet<SyntheticArtifact> pas = linkedSet.find(SyntheticArtifact.class);
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.