Package org.codehaus.dna.tools.verifier

Examples of org.codehaus.dna.tools.verifier.VerifyIssue


        if( 0 != issues.size() )
        {
            final int count = issues.size();
            for( int i = 0; i < count; i++ )
            {
                final VerifyIssue issue = (VerifyIssue)issues.get( i );
                System.out.println(
                    "issue.getDescription() = " + issue.getDescription() );
            }
        }
        assertEquals( "issues.length", 0, issues.size() );
    }
View Full Code Here


                                    final String message,
                                    final boolean error,
                                    final boolean warning )
    {
        assertEquals( "issues.length", 1, issues.size() );
        final VerifyIssue issue = (VerifyIssue)issues.get( 0 );
        assertEquals( "issues[0].isWarning", warning, issue.isWarning() );
        assertEquals( "issues[0].isError", error, issue.isError() );
        assertEquals( "issues[0].description", message, issue.getDescription() );
    }
View Full Code Here

    public void testVerifyIssueAsError()
        throws Exception
    {
        final String description = "Here I stand.";
        final int level = VerifyIssue.ERROR;
        final VerifyIssue issue = new VerifyIssue( level, description );
        assertEquals( "description", description, issue.getDescription() );
        assertEquals( "isError", true, issue.isError() );
        assertEquals( "isWarning", false, issue.isWarning() );
    }
View Full Code Here

    public void testVerifyIssueAsWarning()
        throws Exception
    {
        final String description = "Here I stand.";
        final int level = VerifyIssue.WARNING;
        final VerifyIssue issue = new VerifyIssue( level, description );
        assertEquals( "description", description, issue.getDescription() );
        assertEquals( "isError", false, issue.isError() );
        assertEquals( "isWarning", true, issue.isWarning() );
    }
View Full Code Here

    public void testVerifyIssueAsNotice()
        throws Exception
    {
        final String description = "Here I stand.";
        final int level = VerifyIssue.NOTICE;
        final VerifyIssue issue = new VerifyIssue( level, description );
        assertEquals( "description", description, issue.getDescription() );
        assertEquals( "isError", false, issue.isError() );
        assertEquals( "isWarning", false, issue.isWarning() );
    }
View Full Code Here

    public void testNulldescriptionPassedToCtor()
        throws Exception
    {
        try
        {
            new VerifyIssue( VerifyIssue.ERROR, null );
        }
        catch( final NullPointerException npe )
        {
            assertEquals( "npe.getMessage()", "description", npe.getMessage() );
            return;
View Full Code Here

TOP

Related Classes of org.codehaus.dna.tools.verifier.VerifyIssue

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.