You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2015/06/25 10:07:04 UTC

[14/14] wicket git commit: WICKET-5926 Arquillian Support with Container ServletContext in BaseWicketTester/WicketTester.

WICKET-5926 Arquillian Support with Container ServletContext in BaseWicketTester/WicketTester.

Add Apache licence headers


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/ea1dc12e
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/ea1dc12e
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/ea1dc12e

Branch: refs/heads/master
Commit: ea1dc12e41c9f68322a56e3c1c271df4f0800a79
Parents: 967aeb4
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Jun 25 11:05:47 2015 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Jun 25 11:05:47 2015 +0300

----------------------------------------------------------------------
 .../arquillian/testing/dao/ContactDao.java      | 28 ++++++++++---
 .../arquillian/testing/dao/ContactDaoBean.java  | 33 +++++++++++----
 .../arquillian/testing/model/Contact.java       | 16 ++++++++
 .../arquillian/testing/pages/InsertContact.java | 41 ++++++++++++++-----
 .../arquillian/testing/pages/ListContacts.java  | 25 +++++++++---
 .../util/ResourceWebApplicationPath.java        | 13 +-----
 .../src/main/resources/META-INF/persistence.xml | 16 ++++++++
 .../src/main/webapp/WEB-INF/beans.xml           | 16 ++++++++
 .../src/main/webapp/WEB-INF/web.xml             | 16 ++++++++
 .../WEB-INF/wicket-arquillian-testing-ds.xml    | 16 ++++++++
 .../src/main/webapp/pages/InsertContact.html    | 17 ++++++++
 .../src/main/webapp/pages/ListContacts.html     | 17 ++++++++
 .../testing/ApacheLicenceHeaderTest.java        | 42 ++++++++++++++++++++
 .../src/test/resources/arquillian.xml           | 16 ++++++++
 .../src/test/webapp/WEB-INF/web.xml             | 16 ++++++++
 15 files changed, 288 insertions(+), 40 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDao.java
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDao.java b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDao.java
index 3615244..e2cd94c 100644
--- a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDao.java
+++ b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDao.java
@@ -1,4 +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.
+ */
+/*
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
  * contributors by the @authors tag. See the copyright.txt in the
@@ -27,14 +43,14 @@ import org.apache.wicket.arquillian.testing.model.Contact;
  * @author Filippo Diotalevi
  */
 @Local
-public interface ContactDao {
-
+public interface ContactDao
+{
     /**
      * Returns the currently available contacts.
      *
      * @return every contact in the database
      */
-    public List<Contact> getContacts();
+    List<Contact> getContacts();
 
     /**
      * Returns a specific Contact from DB.
@@ -42,7 +58,7 @@ public interface ContactDao {
      * @param id The Id for the Contact
      * @return The specified Contact object
      */
-    public Contact getContact(Long id);
+    Contact getContact(Long id);
 
     /**
      * Persist a new Contact in the DB.
@@ -50,12 +66,12 @@ public interface ContactDao {
      * @param name The name of the new Contact
      * @param email The e-mail address of the new Contact
      */
-    public void addContact(String name, String email);
+    void addContact(String name, String email);
 
     /**
      * Removes a specific item from the DB.
      *
      * @param modelObject The specific Contact object, which we wants to remove
      */
-    public void remove(Contact modelObject);
+    void remove(Contact modelObject);
 }

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDaoBean.java
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDaoBean.java b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDaoBean.java
index fb1cb08..a7982c1 100644
--- a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDaoBean.java
+++ b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/dao/ContactDaoBean.java
@@ -1,4 +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.
+ */
+/*
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
  * contributors by the @authors tag. See the copyright.txt in the
@@ -28,15 +44,15 @@ import org.apache.wicket.arquillian.testing.model.Contact;
  * A bean which manages Contact entities.
  */
 @Stateless
-public class ContactDaoBean implements ContactDao {
-
+public class ContactDaoBean implements ContactDao
+{
     @PersistenceContext
     private EntityManager em;
 
-
     @Override
     @SuppressWarnings("unchecked")
-    public List<Contact> getContacts() {
+    public List<Contact> getContacts()
+    {
         return em.createQuery("SELECT c FROM Contact c").getResultList();
     }
 
@@ -44,7 +60,8 @@ public class ContactDaoBean implements ContactDao {
      * Get Contact by ID.
      */
     @Override
-    public Contact getContact(Long id) {
+    public Contact getContact(Long id)
+    {
         return em.find(Contact.class, id);
     }
 
@@ -52,7 +69,8 @@ public class ContactDaoBean implements ContactDao {
      * Add a new Contact.
      */
     @Override
-    public void addContact(String name, String email) {
+    public void addContact(String name, String email)
+    {
         em.merge(new Contact(null, name, email));
     }
 
@@ -60,7 +78,8 @@ public class ContactDaoBean implements ContactDao {
      * Remove a Contact.
      */
     @Override
-    public void remove(Contact modelObject) {
+    public void remove(Contact modelObject)
+    {
         Contact managed = em.merge(modelObject);
         em.remove(managed);
         em.flush();

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/model/Contact.java
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/model/Contact.java b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/model/Contact.java
index 947333b..e5a2bcc 100644
--- a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/model/Contact.java
+++ b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/model/Contact.java
@@ -1,4 +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.
+ */
+/*
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
  * contributors by the @authors tag. See the copyright.txt in the

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/InsertContact.java
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/InsertContact.java b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/InsertContact.java
index 902b6d6..e78831a 100644
--- a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/InsertContact.java
+++ b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/InsertContact.java
@@ -1,4 +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.
+ */
+/*
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
  * contributors by the @authors tag. See the copyright.txt in the
@@ -31,8 +47,8 @@ import org.apache.wicket.model.PropertyModel;
  * @author Filippo Diotalevi
  */
 @SuppressWarnings("serial")
-public class InsertContact extends WebPage {
-    
+public class InsertContact extends WebPage
+{
     private Form<Contact> insertForm;
     
     private String name;
@@ -42,8 +58,8 @@ public class InsertContact extends WebPage {
     @Inject
     private ContactDao contactDao;
 
-    
-    public InsertContact() {
+    public InsertContact()
+    {
         add(new FeedbackPanel("feedback"));
 
         insertForm = new Form<Contact>("insertForm") {
@@ -55,28 +71,31 @@ public class InsertContact extends WebPage {
             }
         };
 
-        insertForm.add(new RequiredTextField<String>("name",
+        insertForm.add(new RequiredTextField<>("name",
                 new PropertyModel<String>(this, "name")));
-        insertForm.add(new RequiredTextField<String>("email", new PropertyModel<String>(this,
+        insertForm.add(new RequiredTextField<>("email", new PropertyModel<String>(this,
                 "email")));
         add(insertForm);
     }
 
     
-    public String getEmail() {
+    public String getEmail()
+    {
         return email;
     }
 
-    public void setEmail(String email) {
+    public void setEmail(String email)
+    {
         this.email = email;
     }
 
-    public String getName() {
+    public String getName()
+    {
         return name;
     }
 
-    public void setName(String name) {
+    public void setName(String name)
+    {
         this.name = name;
     }
-
 }

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/ListContacts.java
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/ListContacts.java b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/ListContacts.java
index 4694438..f08ff55 100644
--- a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/ListContacts.java
+++ b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/pages/ListContacts.java
@@ -1,4 +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.
+ */
+/*
  * JBoss, Home of Professional Open Source
  * Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
  * contributors by the @authors tag. See the copyright.txt in the
@@ -33,8 +49,8 @@ import org.apache.wicket.markup.html.list.ListView;
  * @author Filippo Diotalevi
  */
 @SuppressWarnings("serial")
-public class ListContacts extends WebPage {
-
+public class ListContacts extends WebPage
+{
     // Inject the ContactDao using @Inject
     @Inject
     private ContactDao contactDao;
@@ -43,8 +59,8 @@ public class ListContacts extends WebPage {
     private String welcome;
 
     // Set up the dynamic behavior for the page, widgets bound by id
-    public ListContacts() {
-
+    public ListContacts()
+    {
         // Add the dynamic welcome message, specified in web.xml
         add(new Label("welcomeMessage", welcome));
         add(new ListView<Contact>("contacts", contactDao.getContacts()) {
@@ -66,5 +82,4 @@ public class ListContacts extends WebPage {
             }
         });
     }
-
 }

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/util/ResourceWebApplicationPath.java
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/util/ResourceWebApplicationPath.java b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/util/ResourceWebApplicationPath.java
index 292c771..d647626 100644
--- a/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/util/ResourceWebApplicationPath.java
+++ b/testing/wicket-arquillian/src/main/java/org/apache/wicket/arquillian/testing/util/ResourceWebApplicationPath.java
@@ -29,8 +29,6 @@ import org.apache.wicket.util.resource.IResourceStream;
  * Maintain a list of paths which might either be ordinary folders of the filesystem or relative
  * paths to the web application's servlet context.
  * 
- * @author Johan Compagner
- * 
  * @author felipecalmeida
  * 		Modified to look inside servletContext and same package as Application.
  */
@@ -56,14 +54,10 @@ public final class ResourceWebApplicationPath implements IResourceFinder
 		this.servletContext = servletContext;
 	}
 
-	/**
-	 * 
-	 * @see org.apache.wicket.util.file.IResourceFinder#find(Class, String)
-	 */
+	@Override
 	public IResourceStream find(final Class<?> clazz, final String pathname)
 	{
-
-		if (pathname.startsWith(WEB_INF) == false)
+		if (pathname != null && pathname.startsWith(WEB_INF) == false)
 		{
 			try
 			{
@@ -82,9 +76,6 @@ public final class ResourceWebApplicationPath implements IResourceFinder
 		return null;
 	}
 
-	/**
-	 * @see java.lang.Object#toString()
-	 */
 	@Override
 	public String toString()
 	{

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/resources/META-INF/persistence.xml
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/resources/META-INF/persistence.xml b/testing/wicket-arquillian/src/main/resources/META-INF/persistence.xml
index e42cebe..49b98fb 100644
--- a/testing/wicket-arquillian/src/main/resources/META-INF/persistence.xml
+++ b/testing/wicket-arquillian/src/main/resources/META-INF/persistence.xml
@@ -1,5 +1,21 @@
 <?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.
+-->
+<!--
     JBoss, Home of Professional Open Source
     Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
     contributors by the @authors tag. See the copyright.txt in the

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/webapp/WEB-INF/beans.xml
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/webapp/WEB-INF/beans.xml b/testing/wicket-arquillian/src/main/webapp/WEB-INF/beans.xml
index e7488ad..8c6322f 100644
--- a/testing/wicket-arquillian/src/main/webapp/WEB-INF/beans.xml
+++ b/testing/wicket-arquillian/src/main/webapp/WEB-INF/beans.xml
@@ -1,5 +1,21 @@
 <?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.
+-->
+<!--
     JBoss, Home of Professional Open Source
     Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
     contributors by the @authors tag. See the copyright.txt in the

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/webapp/WEB-INF/web.xml b/testing/wicket-arquillian/src/main/webapp/WEB-INF/web.xml
index cafe4bd..1118849 100644
--- a/testing/wicket-arquillian/src/main/webapp/WEB-INF/web.xml
+++ b/testing/wicket-arquillian/src/main/webapp/WEB-INF/web.xml
@@ -1,5 +1,21 @@
 <?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.
+-->
+<!--
     JBoss, Home of Professional Open Source
     Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
     contributors by the @authors tag. See the copyright.txt in the

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/webapp/WEB-INF/wicket-arquillian-testing-ds.xml
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/webapp/WEB-INF/wicket-arquillian-testing-ds.xml b/testing/wicket-arquillian/src/main/webapp/WEB-INF/wicket-arquillian-testing-ds.xml
index af137fe..cc13b92 100644
--- a/testing/wicket-arquillian/src/main/webapp/WEB-INF/wicket-arquillian-testing-ds.xml
+++ b/testing/wicket-arquillian/src/main/webapp/WEB-INF/wicket-arquillian-testing-ds.xml
@@ -1,5 +1,21 @@
 <?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.
+-->
+<!--
     JBoss, Home of Professional Open Source
     Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
     contributors by the @authors tag. See the copyright.txt in the

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/webapp/pages/InsertContact.html
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/webapp/pages/InsertContact.html b/testing/wicket-arquillian/src/main/webapp/pages/InsertContact.html
index 309531e..a9636b2 100644
--- a/testing/wicket-arquillian/src/main/webapp/pages/InsertContact.html
+++ b/testing/wicket-arquillian/src/main/webapp/pages/InsertContact.html
@@ -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.
+-->
 <!--
     JBoss, Home of Professional Open Source
     Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/main/webapp/pages/ListContacts.html
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/main/webapp/pages/ListContacts.html b/testing/wicket-arquillian/src/main/webapp/pages/ListContacts.html
index d6613bd..b2bb4ca 100644
--- a/testing/wicket-arquillian/src/main/webapp/pages/ListContacts.html
+++ b/testing/wicket-arquillian/src/main/webapp/pages/ListContacts.html
@@ -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.
+-->
 <!--
     JBoss, Home of Professional Open Source
     Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/test/java/org/apache/wicket/arquillian/testing/ApacheLicenceHeaderTest.java
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/test/java/org/apache/wicket/arquillian/testing/ApacheLicenceHeaderTest.java b/testing/wicket-arquillian/src/test/java/org/apache/wicket/arquillian/testing/ApacheLicenceHeaderTest.java
new file mode 100644
index 0000000..ac5aa02
--- /dev/null
+++ b/testing/wicket-arquillian/src/test/java/org/apache/wicket/arquillian/testing/ApacheLicenceHeaderTest.java
@@ -0,0 +1,42 @@
+/*
+ * 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 org.apache.wicket.arquillian.testing;
+
+import java.util.Arrays;
+
+import org.apache.wicket.util.license.ApacheLicenseHeaderTestCase;
+
+/**
+ * Test that the license headers are in place in this project. The tests are run
+ * from {@link ApacheLicenseHeaderTestCase}, but you can add project specific
+ * tests here if needed.
+ * 
+ * @author Frank Bille Jensen (frankbille)
+ */
+public class ApacheLicenceHeaderTest extends ApacheLicenseHeaderTestCase
+{
+	/**
+	 * Construct.
+	 */
+	public ApacheLicenceHeaderTest()
+	{
+//		xmlIgnore.add(".settings");
+//		xmlIgnore.add("src/main/resources/META-INF/beans.xml");
+//		xmlIgnore.add("src/test/java/simplelogger.properties");
+//		xmlPrologIgnore = Arrays.asList("src");
+	}
+}

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/test/resources/arquillian.xml
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/test/resources/arquillian.xml b/testing/wicket-arquillian/src/test/resources/arquillian.xml
index e80f901..ae8ef29 100644
--- a/testing/wicket-arquillian/src/test/resources/arquillian.xml
+++ b/testing/wicket-arquillian/src/test/resources/arquillian.xml
@@ -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.
+-->
 <arquillian xmlns="http://jboss.org/schema/arquillian"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

http://git-wip-us.apache.org/repos/asf/wicket/blob/ea1dc12e/testing/wicket-arquillian/src/test/webapp/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/testing/wicket-arquillian/src/test/webapp/WEB-INF/web.xml b/testing/wicket-arquillian/src/test/webapp/WEB-INF/web.xml
index 4266a83..54c8105 100644
--- a/testing/wicket-arquillian/src/test/webapp/WEB-INF/web.xml
+++ b/testing/wicket-arquillian/src/test/webapp/WEB-INF/web.xml
@@ -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.
+-->
 <!-- JBoss, Home of Professional Open Source Copyright 2013, Red Hat, Inc. 
 	and/or its affiliates, and individual contributors by the @authors tag. See 
 	the copyright.txt in the distribution for a full listing of individual contributors.