You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by fr...@apache.org on 2006/11/05 11:05:20 UTC
svn commit: r471390 - in /incubator/wicket/trunk/wicket: ./
src/site/template/ src/test/java/ src/test/java/wicket/
src/test/java/wicket/legals/ src/test/java/wicket/util/tester/
Author: frankbille
Date: Sun Nov 5 02:05:19 2006
New Revision: 471390
URL: http://svn.apache.org/viewvc?view=rev&rev=471390
Log:
WIP: An attemt to write an unittest, which checks the headers of the source files in the project. WDYT?
Added:
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java (with props)
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/cssLicense.txt (with props)
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/javaLicense.txt (with props)
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/propertiesLicense.txt (with props)
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/velocityLicense.txt (with props)
incubator/wicket/trunk/wicket/src/test/java/wicket/legals/xmlLicense.txt (with props)
Modified:
incubator/wicket/trunk/wicket/pom.xml
incubator/wicket/trunk/wicket/src/site/template/wicket-site.vm
incubator/wicket/trunk/wicket/src/test/java/log4j.properties
incubator/wicket/trunk/wicket/src/test/java/wicket/TesterTest$MyPage.html
incubator/wicket/trunk/wicket/src/test/java/wicket/util/tester/MockPageParameterPage.html
Modified: incubator/wicket/trunk/wicket/pom.xml
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/pom.xml?view=diff&rev=471390&r1=471389&r2=471390
==============================================================================
--- incubator/wicket/trunk/wicket/pom.xml (original)
+++ incubator/wicket/trunk/wicket/pom.xml Sun Nov 5 02:05:19 2006
@@ -1,3 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Modified: incubator/wicket/trunk/wicket/src/site/template/wicket-site.vm
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/site/template/wicket-site.vm?view=diff&rev=471390&r1=471389&r2=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/site/template/wicket-site.vm (original)
+++ incubator/wicket/trunk/wicket/src/site/template/wicket-site.vm Sun Nov 5 02:05:19 2006
@@ -1,3 +1,20 @@
+#*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *#
+
#macro ( banner $id )
#if ( $siteDescriptor.getChild( $id ) )
#set ( $e = $siteDescriptor.getChild( $id ) )
Modified: incubator/wicket/trunk/wicket/src/test/java/log4j.properties
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/log4j.properties?view=diff&rev=471390&r1=471389&r2=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/log4j.properties (original)
+++ incubator/wicket/trunk/wicket/src/test/java/log4j.properties Sun Nov 5 02:05:19 2006
@@ -1,3 +1,18 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
log4j.debug=false
log4j.rootLogger=DEBUG,Stdout
Modified: incubator/wicket/trunk/wicket/src/test/java/wicket/TesterTest$MyPage.html
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/TesterTest%24MyPage.html?view=diff&rev=471390&r1=471389&r2=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/wicket/TesterTest$MyPage.html (original)
+++ incubator/wicket/trunk/wicket/src/test/java/wicket/TesterTest$MyPage.html Sun Nov 5 02:05:19 2006
@@ -1 +1,17 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<html><body><span wicket:id="label"></span></body></html>
Added: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java?view=auto&rev=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java (added)
+++ incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java Sun Nov 5 02:05:19 2006
@@ -0,0 +1,465 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package wicket.legals;
+
+import java.io.File;
+import java.io.FileFilter;
+import java.io.FileReader;
+import java.io.IOException;
+import java.io.LineNumberReader;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import junit.framework.TestCase;
+import wicket.util.diff.Diff;
+import wicket.util.diff.Revision;
+import wicket.util.string.Strings;
+
+/**
+ * A silly try to create a testcase for running through all files in the project
+ * and check if they have the correct license headers. Lets see if it holds.
+ *
+ * @author Frank Bille Jensen (frankbille)
+ */
+public class ApacheLicenseHeaderTest extends TestCase
+{
+ private static final String LINE_ENDING = System.getProperty("line.separator");
+
+ private interface FileVisitor
+ {
+ /**
+ * @param file
+ */
+ void visitFile(File file);
+ }
+
+ private class SuffixAndIgnoreFileFilter implements FileFilter
+ {
+ private String[] suffixes;
+ private String[] ignoreFiles;
+
+ private SuffixAndIgnoreFileFilter(String[] suffixes)
+ {
+ this(suffixes, null);
+ }
+
+ private SuffixAndIgnoreFileFilter(String[] suffixes, String[] ignoreFiles)
+ {
+ this.suffixes = suffixes;
+ this.ignoreFiles = ignoreFiles;
+ }
+
+ public boolean accept(File pathname)
+ {
+ boolean accept = false;
+
+ if (pathname.isFile())
+ {
+ boolean ignore = false;
+
+ if (ignoreFiles != null)
+ {
+ String relativePathname = pathname.getAbsolutePath();
+ relativePathname = relativePathname.replace(baseDirectory.getAbsolutePath()+System.getProperty("file.separator"), "");
+
+ for (String ignoreFile : ignoreFiles)
+ {
+ if (relativePathname.equals(ignoreFile))
+ {
+ ignore = true;
+ break;
+ }
+ }
+ }
+
+ if (ignore == false)
+ {
+ for (String suffix : suffixes)
+ {
+ if (pathname.getName().endsWith("." + suffix))
+ {
+ accept = true;
+ break;
+ }
+ }
+ }
+ }
+
+ return accept;
+ }
+ }
+
+ private class DirectoryFileFilter implements FileFilter
+ {
+ private String[] ignoreDirectory = new String[] { ".svn", "target" };
+
+ public boolean accept(File pathname)
+ {
+ boolean accept = false;
+
+ if (pathname.isDirectory())
+ {
+ boolean found = false;
+ for (String ignore : ignoreDirectory)
+ {
+ if (pathname.getName().equals(ignore))
+ {
+ found = true;
+ break;
+ }
+ }
+ if (found == false)
+ {
+ accept = true;
+ }
+ }
+
+ return accept;
+ }
+ }
+
+ private File baseDirectory = new File("").getAbsoluteFile();
+ private String javaLicenseHeader;
+ private String xmlLicenseHeader;
+ private String propertiesLicenseHeader;
+ private String cssLicenseHeader;
+ private String velocityLicenseHeader;
+ private Pattern xmlHeader = Pattern.compile(
+ "^(\\<\\?xml version=\"1.0\" encoding=\"[^\"]+\"[ ]*\\?\\>" + LINE_ENDING + ").*",
+ Pattern.DOTALL);
+
+ /**
+ * Construct.
+ */
+ public ApacheLicenseHeaderTest()
+ {
+ super("Test of the legal aspects of the Wicket source code is correct.");
+
+ // Load licenses
+ javaLicenseHeader = loadFile("javaLicense.txt");
+ xmlLicenseHeader = loadFile("xmlLicense.txt");
+ propertiesLicenseHeader = loadFile("propertiesLicense.txt");
+ cssLicenseHeader = loadFile("cssLicense.txt");
+ velocityLicenseHeader = loadFile("velocityLicense.txt");
+ }
+
+ /**
+ * Test all java files.
+ */
+ public void testJavaFiles()
+ {
+ final List<File> badFiles = new ArrayList<File>();
+
+ visitFiles("java", new FileVisitor()
+ {
+ public void visitFile(File file)
+ {
+ if (checkJavaHeader(file) == false)
+ {
+ badFiles.add(file);
+ }
+ }
+ });
+
+ failIncorrectLicenceHeaders(badFiles);
+ }
+
+ /**
+ * Test all html files.
+ */
+ public void testHtmlFiles()
+ {
+ final List<File> badFiles = new ArrayList<File>();
+
+ visitFiles("html", new FileVisitor()
+ {
+ public void visitFile(File file)
+ {
+ if (checkXmlHeader(file) == false)
+ {
+ badFiles.add(file);
+ }
+ }
+ });
+
+ failIncorrectLicenceHeaders(badFiles);
+ }
+
+ /**
+ * Test all properties files.
+ */
+ public void testPropertiesFiles()
+ {
+ final List<File> badFiles = new ArrayList<File>();
+
+ visitFiles("properties", new FileVisitor()
+ {
+ public void visitFile(File file)
+ {
+ if (checkPropertiesHeader(file) == false)
+ {
+ badFiles.add(file);
+ }
+ }
+ });
+
+ failIncorrectLicenceHeaders(badFiles);
+ }
+
+ /**
+ * Test all xml files.
+ */
+ public void testXmlFiles()
+ {
+ final List<File> badFiles = new ArrayList<File>();
+
+ visitFiles(new String[] { "xml", "fml" }, new FileVisitor()
+ {
+ public void visitFile(File file)
+ {
+ if (checkXmlHeader(file) == false)
+ {
+ badFiles.add(file);
+ }
+ }
+ });
+
+ failIncorrectLicenceHeaders(badFiles);
+ }
+
+ /**
+ * Test all velocity files.
+ */
+ public void testVelocityFiles()
+ {
+ final List<File> badFiles = new ArrayList<File>();
+
+ visitFiles("vm", new FileVisitor()
+ {
+ public void visitFile(File file)
+ {
+ if (checkVelocityHeader(file) == false)
+ {
+ badFiles.add(file);
+ }
+ }
+ });
+
+ failIncorrectLicenceHeaders(badFiles);
+ }
+
+ private void failIncorrectLicenceHeaders(List<File> files)
+ {
+ if (files.size() > 0)
+ {
+ StringBuffer failString = new StringBuffer();
+
+ failString.append("The following files didn't have a correct license header:\n");
+
+ for (File file : files)
+ {
+ failString.append(file.getAbsolutePath()).append(LINE_ENDING);
+ }
+
+ fail(failString.toString());
+ }
+ }
+
+ private String extractLicenseHeader(File file, int start, int length)
+ {
+ String header = "";
+ FileReader fileReader = null;
+
+ try
+ {
+ fileReader = new FileReader(file);
+ LineNumberReader lineNumberReader = new LineNumberReader(fileReader);
+
+ for (int i = start; i < length; i++)
+ {
+ header += lineNumberReader.readLine() + LINE_ENDING;
+ }
+ }
+ catch (Exception e)
+ {
+ fail(e.getMessage());
+ }
+ finally
+ {
+ if (fileReader != null)
+ {
+ try
+ {
+ fileReader.close();
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+ }
+ }
+
+ return header.trim();
+ }
+
+ private boolean checkJavaHeader(File file)
+ {
+ String header = extractLicenseHeader(file, 0, 16);
+
+ return javaLicenseHeader.equals(header);
+ }
+
+ private boolean checkXmlHeader(File file)
+ {
+ Revision revision = null;
+
+ try
+ {
+ String header = extractLicenseHeader(file, 0, 17);
+
+ Matcher mat = xmlHeader.matcher(header);
+ if (mat.matches())
+ {
+ header = header.replace(mat.group(1), "");
+ }
+ else
+ {
+ // Then only take the first 16 lines
+ String[] headers = header.split(LINE_ENDING);
+ header = "";
+ for (int i = 0; i < 16; i++)
+ {
+ header += headers[i] + LINE_ENDING;
+ }
+ }
+
+ revision = Diff.diff(xmlLicenseHeader.split(LINE_ENDING), header.split(LINE_ENDING));
+ }
+ catch (Exception e)
+ {
+ fail(e.getMessage());
+ }
+
+ return revision.size() == 0;
+ }
+
+ private boolean checkPropertiesHeader(File file)
+ {
+ Revision revision = null;
+
+ try
+ {
+ String header = extractLicenseHeader(file, 0, 14);
+
+ revision = Diff.diff(propertiesLicenseHeader.split(LINE_ENDING), header
+ .split(LINE_ENDING));
+ }
+ catch (Exception e)
+ {
+ fail(e.getMessage());
+ }
+
+ return revision.size() == 0;
+ }
+
+ private boolean checkVelocityHeader(File file)
+ {
+ Revision revision = null;
+
+ try
+ {
+ String header = extractLicenseHeader(file, 0, 16);
+
+ revision = Diff.diff(velocityLicenseHeader.split(LINE_ENDING), header
+ .split(LINE_ENDING));
+ }
+ catch (Exception e)
+ {
+ fail(e.getMessage());
+ }
+
+ return revision.size() == 0;
+ }
+
+ private void visitFiles(String suffix, FileVisitor fileVisitor)
+ {
+ visitFiles(new String[] { suffix }, null, fileVisitor);
+ }
+
+ private void visitFiles(String suffix, String[] ignoreFiles, FileVisitor fileVisitor)
+ {
+ visitFiles(new String[] { suffix }, ignoreFiles, fileVisitor);
+ }
+
+ private void visitFiles(String[] suffixes, FileVisitor fileVisitor)
+ {
+ visitFiles(suffixes, null, fileVisitor);
+ }
+
+ private void visitFiles(String[] suffixes, String[] ignoreFiles, FileVisitor fileVisitor)
+ {
+ visitDirectory(suffixes, ignoreFiles, baseDirectory, fileVisitor);
+ }
+
+ private void visitDirectory(String[] suffixes, String[] ignoreFiles, File directory, FileVisitor fileVisitor)
+ {
+ File[] files = directory.listFiles(new SuffixAndIgnoreFileFilter(suffixes, ignoreFiles));
+
+ if (files != null)
+ {
+ for (File file : files)
+ {
+ fileVisitor.visitFile(file);
+ }
+ }
+
+ // Find the directories in this directory on traverse deeper
+ files = directory.listFiles(new DirectoryFileFilter());
+
+ if (files != null)
+ {
+ for (File childDirectory : files)
+ {
+ visitDirectory(suffixes, ignoreFiles, childDirectory, fileVisitor);
+ }
+ }
+ }
+
+ /**
+ * @param filename
+ * @return The contents of the file
+ */
+ private String loadFile(String filename)
+ {
+ String contents = null;
+
+ try
+ {
+ File legalsDir = new File(baseDirectory, "src/test/java/wicket/legals");
+ String legalsDirString = legalsDir.getAbsolutePath();
+ contents = new wicket.util.file.File(legalsDirString, filename).readString();
+ }
+ catch (IOException e)
+ {
+ fail(e.getMessage());
+ }
+
+ return contents.trim();
+ }
+}
Propchange: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/ApacheLicenseHeaderTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/cssLicense.txt
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/legals/cssLicense.txt?view=auto&rev=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/wicket/legals/cssLicense.txt (added)
+++ incubator/wicket/trunk/wicket/src/test/java/wicket/legals/cssLicense.txt Sun Nov 5 02:05:19 2006
@@ -0,0 +1,16 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
\ No newline at end of file
Propchange: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/cssLicense.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/javaLicense.txt
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/legals/javaLicense.txt?view=auto&rev=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/wicket/legals/javaLicense.txt (added)
+++ incubator/wicket/trunk/wicket/src/test/java/wicket/legals/javaLicense.txt Sun Nov 5 02:05:19 2006
@@ -0,0 +1,16 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
\ No newline at end of file
Propchange: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/javaLicense.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/propertiesLicense.txt
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/legals/propertiesLicense.txt?view=auto&rev=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/wicket/legals/propertiesLicense.txt (added)
+++ incubator/wicket/trunk/wicket/src/test/java/wicket/legals/propertiesLicense.txt Sun Nov 5 02:05:19 2006
@@ -0,0 +1,14 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
\ No newline at end of file
Propchange: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/propertiesLicense.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/velocityLicense.txt
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/legals/velocityLicense.txt?view=auto&rev=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/wicket/legals/velocityLicense.txt (added)
+++ incubator/wicket/trunk/wicket/src/test/java/wicket/legals/velocityLicense.txt Sun Nov 5 02:05:19 2006
@@ -0,0 +1,16 @@
+#*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *#
\ No newline at end of file
Propchange: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/velocityLicense.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/xmlLicense.txt
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/legals/xmlLicense.txt?view=auto&rev=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/wicket/legals/xmlLicense.txt (added)
+++ incubator/wicket/trunk/wicket/src/test/java/wicket/legals/xmlLicense.txt Sun Nov 5 02:05:19 2006
@@ -0,0 +1,16 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
\ No newline at end of file
Propchange: incubator/wicket/trunk/wicket/src/test/java/wicket/legals/xmlLicense.txt
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/wicket/trunk/wicket/src/test/java/wicket/util/tester/MockPageParameterPage.html
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/wicket/src/test/java/wicket/util/tester/MockPageParameterPage.html?view=diff&rev=471390&r1=471389&r2=471390
==============================================================================
--- incubator/wicket/trunk/wicket/src/test/java/wicket/util/tester/MockPageParameterPage.html (original)
+++ incubator/wicket/trunk/wicket/src/test/java/wicket/util/tester/MockPageParameterPage.html Sun Nov 5 02:05:19 2006
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wicket="http://www.wicketframework.org/">
<head>