Rat (Release Audit Tool) results

The following document contains the results of Rat (Release Audit Tool).

*****************************************************
Summary
-------
Generated at: 2021-09-21T14:17:01+02:00

Notes: 2
Binaries: 0
Archives: 0
Standards: 37

Apache Licensed: 35
Generated Documents: 0

JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.

2 Unknown Licenses

*****************************************************

Files with unapproved licenses:

  src/test/org/apache/fulcrum/parser/ParameterParserWithFulcrumPoolTest.java
  src/test/org/apache/fulcrum/parser/pool/CookieParserPoolTest.java

*****************************************************

*****************************************************
  Files with Apache License headers will be marked AL
  Binary files (which do not require any license headers) will be marked B
  Compressed archives will be marked A
  Notices, licenses etc. will be marked N
  AL    .asf.yaml
  N     LICENSE.txt
  N     NOTICE.txt
  AL    pom.xml
  AL    src/changes/changes.xml
  AL    src/java/org/apache/fulcrum/parser/BaseValueParser.java
  AL    src/java/org/apache/fulcrum/parser/CookieParser.java
  AL    src/java/org/apache/fulcrum/parser/CSVParser.java
  AL    src/java/org/apache/fulcrum/parser/DataStreamParser.java
  AL    src/java/org/apache/fulcrum/parser/DefaultCookieParser.java
  AL    src/java/org/apache/fulcrum/parser/DefaultParameterParser.java
  AL    src/java/org/apache/fulcrum/parser/DefaultParserService.java
  AL    src/java/org/apache/fulcrum/parser/ParameterParser.java
  AL    src/java/org/apache/fulcrum/parser/ParserService.java
  AL    src/java/org/apache/fulcrum/parser/ParserServiceSupport.java
  AL    src/java/org/apache/fulcrum/parser/pool/BaseValueParserFactory.java
  AL    src/java/org/apache/fulcrum/parser/pool/BaseValueParserPool.java
  AL    src/java/org/apache/fulcrum/parser/pool/CookieParserFactory.java
  AL    src/java/org/apache/fulcrum/parser/pool/CookieParserPool.java
  AL    src/java/org/apache/fulcrum/parser/pool/DefaultParameterParserFactory.java
  AL    src/java/org/apache/fulcrum/parser/pool/DefaultParameterParserPool.java
  AL    src/java/org/apache/fulcrum/parser/StringValueParser.java
  AL    src/java/org/apache/fulcrum/parser/TSVParser.java
  AL    src/java/org/apache/fulcrum/parser/ValueParser.java
  AL    src/site/site.xml
  AL    src/test/org/apache/fulcrum/parser/BaseValueParserTest.java
  AL    src/test/org/apache/fulcrum/parser/CookieParserTest.java
  AL    src/test/org/apache/fulcrum/parser/ParameterParserTest.java
 !????? src/test/org/apache/fulcrum/parser/ParameterParserWithFulcrumPoolTest.java
  AL    src/test/org/apache/fulcrum/parser/ParserServiceTest.java
  AL    src/test/org/apache/fulcrum/parser/pool/BaseValueParserPoolTest.java
 !????? src/test/org/apache/fulcrum/parser/pool/CookieParserPoolTest.java
  AL    src/test/org/apache/fulcrum/parser/pool/ParameterParserPoolTest.java
  AL    src/test/org/apache/fulcrum/parser/PropertyBean.java
  AL    src/test/TestComponentConfig.xml
  AL    src/test/TestComponentConfigWithFulcrumPool.xml
  AL    src/test/TestRoleConfig.xml
  AL    src/test/TestRoleConfigWithFulcrumPool.xml
  AL    xdocs/index.xml
 
*****************************************************

 Printing headers for text files without a valid license header...
 
=====================================================
== File: src/test/org/apache/fulcrum/parser/ParameterParserWithFulcrumPoolTest.java
=====================================================
package org.apache.fulcrum.parser;

import static org.junit.jupiter.api.Assertions.fail;

import org.apache.avalon.framework.component.ComponentException;
import org.junit.jupiter.api.BeforeEach;

/**
 * Basic test that ParameterParser instantiates.
 *
 * @author <a href="epugh@opensourceconnections.com">Eric Pugh</a>
 * @version $Id: ParameterParserTest.java 1848895 2018-12-13 21:04:26Z painter $
 */
public class ParameterParserWithFulcrumPoolTest extends ParameterParserTest
{

    @Override
    @BeforeEach
    public void setUpBefore() throws Exception
    {
        try
        {
            setConfigurationFileName("src/test/TestComponentConfigWithFulcrumPool.xml");
            
            setRoleFileName( "src/test/TestRoleConfigWithFulcrumPool.xml");
            
            parserService = (ParserService)this.lookup(ParserService.ROLE);
            parameterParser = parserService.getParser(DefaultParameterParser.class);

        }
        catch (ComponentException e)
        {
            e.printStackTrace();
            fail(e.getMessage());
        }
    }

}

=====================================================
== File: src/test/org/apache/fulcrum/parser/pool/CookieParserPoolTest.java
=====================================================
package org.apache.fulcrum.parser.pool;


import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.Mockito.mock;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.avalon.framework.component.ComponentException;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.apache.fulcrum.parser.DefaultCookieParser;
import org.apache.fulcrum.parser.ParserService;
import org.apache.fulcrum.testcontainer.BaseUnit5Test;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;



/**
 * Test the CookieParserFactory and CookieParserPool classes.
 *
 * @author <a href="mailto:painter@apache.org">Jeffery Painter</a>
 * @version $Id: CookieParserPoolTest.java 222043 2019-01-17 08:17:33Z painter $
 */
public class CookieParserPoolTest extends BaseUnit5Test 
{
	private DefaultCookieParser parser;
    private ParserService parserService;
    
    /** 
     * Use commons pool to manage value parsers 
     */
    private CookieParserPool cookieParserPool;

    /**
     * Performs any initialization that must happen before each test is run.
     * @throws Exception if parser service not found
     */
    @BeforeEach
    public void setUp() throws Exception
    {
        try
        {
            parserService = (ParserService)this.lookup(ParserService.ROLE);
            

    		// Define the default configuration