Rat (Release Audit Tool) results

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

*****************************************************
Summary
-------
Generated at: 2017-09-06T07:55:20+02:00
Notes: 0
Binaries: 0
Archives: 0
Standards: 29

Apache Licensed: 27
Generated Documents: 0

JavaDocs are generated and so license header is optional
Generated files do not required license headers

2 Unknown Licenses

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

Unapproved licenses:

  /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/ConventionPluginResourceLoader.java
  /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/StrutsRestTestCase.java

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

Archives:

*****************************************************
  Files with Apache License headers will be marked AL
  Binary files (which do not require AL headers) will be marked B
  Compressed archives will be marked A
  Notices, licenses etc will be marked N
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/pom.xml
 !????? /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/ConventionPluginResourceLoader.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/StrutsJUnit4TestCase.java
 !????? /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/StrutsRestTestCase.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/StrutsSpringJUnit4TestCase.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/StrutsSpringTestCase.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/StrutsTestCase.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/site/site.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/actions/ViewAction.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/convention/StrutsJUnit4ConventionTestCaseTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/JUnitTestAction.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/MySessionBean.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/session/SessionGetAction.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/session/SessionSetAction.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/session/StrutsJUnit4SessionTestCaseTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/StrutsJUnit4TestCaseTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/StrutsSpringJUnit4TestCaseTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/StrutsSpringTestCaseTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/java/org/apache/struts2/StrutsTestCaseTest.java
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/applicationContext.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/struts-convention-configuration.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/struts-session-values-test.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/struts-test.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/struts.xml
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/template-1.ftl
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/template-2.ftl
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/template-session.ftl
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/template2.ftl
  AL    /Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/test/resources/view-success.ftl
 
*****************************************************
 Printing headers for files without AL header...
 
 
=======================================================================
==/Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/ConventionPluginResourceLoader.java
=======================================================================
package org.apache.struts2;

import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;

import java.net.URL;

public class ConventionPluginResourceLoader extends DefaultResourceLoader {

    private static final Logger log = LogManager.getLogger(ConventionPluginResourceLoader.class);

    @Override
    public Resource getResource(String location) {
        if (StringUtils.startsWith(location, "/WEB-INF/")) {
            try {
                URL url = new URL("file:/" + System.getProperty("user.dir") + "/src/main/webapp" + location);
                return new UrlResource(url);
            } catch (Exception e) {
                log.error("Error occurred during get resource for location: {}", location, e);
            }
        }

        return super.getResource(location);
    }
}

=======================================================================
==/Users/lukaszlenart/Projects/Apache/struts/target/checkout/plugins/junit/src/main/java/org/apache/struts2/StrutsRestTestCase.java
=======================================================================
package org.apache.struts2;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionProxy;
import com.opensymphony.xwork2.ActionProxyFactory;
import com.opensymphony.xwork2.config.Configuration;
import com.sun.net.httpserver.HttpsParameters;
import org.apache.struts2.dispatcher.Dispatcher;
import org.apache.struts2.dispatcher.HttpParameters;
import org.apache.struts2.dispatcher.mapper.ActionMapping;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import org.springframework.mock.web.MockPageContext;
import org.springframework.mock.web.MockServletContext;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;

import static org.junit.Assert.assertNotNull;

public class StrutsRestTestCase<T> extends StrutsJUnit4TestCase<T> {

    /**
     * Executes an action and returns it's output (not the result returned from
     * execute()), but the actual output that would be written to the response.
     * For this to work the configured result for the action needs to be JSON,
     * FreeMarker, or Velocity (JSPs can be used with the Embedded JSP plugin)
     *
     * @param uri action uri to test
     * @return execution result
     *
     * @throws ServletException in case of servlet errors
     * @throws UnsupportedEncodingException in case of unsupported encoding
     */
    @Override
    protected String executeAction(String uri) throws ServletException, UnsupportedEncodingException {
        return executeAction("GET", uri);
    }

    /**
     * Executes an action and returns it's output (not the result returned from
     * execute()), but the actual output that would be written to the response.
     * For this to work the configured result for the action needs to be JSON,
     * FreeMarker, or Velocity (JSPs can be used with the Embedded JSP plugin)
     *
     * @param httpMethod HTTP method of request like GET, POST, PUT or DELETE
     * @param uri action uri to test
     * @return execution result