Package org.netbeans.gradle.model

Examples of org.netbeans.gradle.model.BuilderIssue


                String message = "testFailingProjectQuery-message";
                ProjectInfoBuilder<?> builder = TestBuilders.failingProjectInfoBuilder(message);
                BuilderResult result = fetchSingleProjectInfoWithError(connection, builder);
                assertNotNull("Required result for FailingProjectInfoBuilder.", result);

                BuilderIssue issue = result.getIssue();
                assertNotNull("Required issue for FailingProjectInfoBuilder", issue);

                assertEquals("Expected approriate builder name.", builder.getName(), issue.getName());
                String issueMessage = issue.getException().getMessage();
                if (!issueMessage.contains(message)) {
                    fail("Issue message is invalid: " + issueMessage);
                }
            }
        });
View Full Code Here


                BuildInfoBuilder<?> builder = TestBuilders.failingBuildInfoBuilder(message);

                BuilderResult result = fetchSingleBuildInfoWithError(connection, builder);
                assertNotNull("Required result for FailingBuildInfoBuilder.", result);

                BuilderIssue issue = result.getIssue();
                assertNotNull("Required issue for FailingBuildInfoBuilder", issue);

                assertEquals("Expected approriate builder name.", builder.getName(), issue.getName());
                String issueMessage = issue.getException().getMessage();
                if (!issueMessage.contains(message)) {
                    fail("Issue message is invalid: " + issueMessage);
                }
            }
        });
View Full Code Here

    }

    private static void verifySerializationError(BuilderResult result) {
        assertNotNull("Must have a result with a serialization issue.", result);

        BuilderIssue issue = result.getIssue();
        assertNotNull("Must have a serialization issue.", issue);

        assertTrue("Cause must be a serialization error.",
                issue.getException().getMessage().contains("NotSerializableException"));
    }
View Full Code Here

    }

    private static void verifyDeserializationError(BuilderResult result) {
        assertNotNull("Must have a result with a deserialization issue.", result);

        BuilderIssue issue = result.getIssue();
        assertNotNull("Must have a deserialization issue.", issue);

        assertTrue("Cause must be a ClassNotFoundException error.",
                issue.getException().getMessage().contains("ClassNotFoundException"));
    }
View Full Code Here

            Throwable issue) {
        if (issue == null) {
            return null;
        }

        return new BuilderIssue(getNameOfBuilder(builder), issue);
    }
View Full Code Here

            Throwable issue) {
        if (issue == null) {
            return null;
        }

        return new BuilderIssue(getNameOfBuilder(builder), issue);
    }
View Full Code Here

            if (builderResults == null) {
                return;
            }

            for (BuilderResult builderResult: builderResults) {
                BuilderIssue issue = builderResult.getIssue();
                if (issue != null) {
                    issues.add(ModelLoadIssues.builderError(
                            mainProject,
                            projectModels,
                            extension,
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.model.BuilderIssue

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.