Package org.netbeans.gradle.model.java

Examples of org.netbeans.gradle.model.java.JavaSourceGroup


import static org.junit.Assert.*;

public class NbJavaModelTest {
    private static JavaSourceGroup createSourceGroup(String name) {
        return new JavaSourceGroup(JavaSourceGroupName.JAVA, Arrays.asList(new File(name + "-src-java")));
    }
View Full Code Here


            rootsList.add(dir);
        }

        List<JavaSourceGroup> result = new ArrayList<>(sourceRootMap.size());
        for (Map.Entry<JavaSourceGroupName, List<File>> entry: sourceRootMap.entrySet()) {
            result.add(new JavaSourceGroup(entry.getKey(), entry.getValue()));
        }
        return result;
    }
View Full Code Here

        Map<JavaSourceGroupName, JavaSourceGroup> expectedMap = sourceGroupMap(expected);

        for (JavaSourceGroup sourceGroup: actual) {
            JavaSourceGroupName name = sourceGroup.getGroupName();
            JavaSourceGroup expectedSourceGroup = expectedMap.get(name);
            expectedMap.remove(name);

            if (expectedSourceGroup == null) {
                throw new AssertionError("Unexpected source group: " + name);
            }

            assertEquals("Source groups (" + name + ") must contain the same source roots.",
                    expectedSourceGroup.getSourceRoots(), sourceGroup.getSourceRoots());
        }

        if (!expectedMap.isEmpty()) {
            fail("Missing expected source groups: " + expectedMap.keySet().toString());
        }
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.model.java.JavaSourceGroup

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.