Examples of JarContentChecker


Examples of org.apache.maven.plugin.ejb.utils.JarContentChecker

        throws IOException
    {
        String checkedJarFile = project.getBuild().getDirectory() + "/" + fileName;
        if ( expectedFiles != null )
        {
            final JarContentChecker inclusionChecker = new JarContentChecker();

            // set expected jar contents
            for (String expectedFile : expectedFiles) {
                inclusionChecker.addFile(new File(expectedFile));
            }
            assertTrue( inclusionChecker.isOK( new JarFile( checkedJarFile ) ) );
        }
        if ( unexpectedFiles != null )
        {
            final JarContentChecker exclusionChecker = new JarContentChecker();
            for (String unexpectedFile : unexpectedFiles) {
                exclusionChecker.addFile(new File(unexpectedFile));
            }
            assertFalse( exclusionChecker.isOK( new JarFile( checkedJarFile ) ) );
        }


    }
View Full Code Here

Examples of org.apache.maven.plugin.ejb.utils.JarContentChecker

        throws IOException
    {
        String checkedJarFile = project.getBuild().getDirectory() + "/" + fileName;
        if ( expectedFiles != null )
        {
            final JarContentChecker inclusionChecker = new JarContentChecker();

            // set expected jar contents
            for ( int i = 0; i < expectedFiles.length; i++ )
            {
                String expectedFile = expectedFiles[i];
                inclusionChecker.addFile( new File( expectedFile ) );
            }
            assertTrue( inclusionChecker.isOK( new JarFile( checkedJarFile ) ) );
        }
        if ( unexpectedFiles != null )
        {
            final JarContentChecker exclusionChecker = new JarContentChecker();
            for ( int i = 0; i < unexpectedFiles.length; i++ )
            {
                String unexpectedFile = unexpectedFiles[i];
                exclusionChecker.addFile( new File( unexpectedFile ) );
            }
            assertFalse( exclusionChecker.isOK( new JarFile( checkedJarFile ) ) );
        }


    }
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.