diff --git a/core/pom.xml b/core/pom.xml index 2ccfd9e..ccb1ef1 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -39,7 +39,6 @@ piccolo2d-core bundle - Piccolo2D Core scm:svn:http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/core @@ -50,7 +49,7 @@ maven-checkstyle-plugin - 2.9 + 2.9.1 ${basedir}/src/build/conf/checkstyle.xml false @@ -58,9 +57,9 @@ maven-javadoc-plugin - 2.8 + 2.9 - ${jdk.version} + true false package @@ -73,20 +72,16 @@ - maven-surefire-report-plugin - 2.7.1 - - maven-changelog-plugin 2.2 - maven-jxr-plugin - 2.2 + 2.3 + + + maven-surefire-report-plugin + 2.14 org.codehaus.mojo @@ -103,13 +98,12 @@ maven-project-info-reports-plugin - 2.3.1 + 2.4 maven-pmd-plugin - 2.5 + 3.0.1 - ascii ${jdk.version} @@ -121,25 +115,16 @@ org.codehaus.mojo findbugs-maven-plugin - 2.3.1 + 2.5.2 - - true - true - true - target/site false org.codehaus.mojo cobertura-maven-plugin - 2.4 + 2.5.2 - - xml - html - org.piccolo2d.examples.* diff --git a/examples/pom.xml b/examples/pom.xml index abfa70d..d9df84a 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -40,7 +40,6 @@ piccolo2d-examples Piccolo2D Examples bundle - org.piccolo2d @@ -56,7 +55,6 @@ - org.apache.maven.plugins maven-assembly-plugin @@ -71,4 +69,12 @@ + + + + maven-project-info-reports-plugin + 2.4 + + + diff --git a/extras/pom.xml b/extras/pom.xml index 137cfcc..60cb272 100644 --- a/extras/pom.xml +++ b/extras/pom.xml @@ -39,7 +39,6 @@ piccolo2d-extras bundle - Piccolo2D Extras @@ -47,12 +46,6 @@ piccolo2d-core ${project.version} - - org.easytesting - fest-swing-junit - 1.2a4 - test - scm:svn:http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/extras @@ -63,17 +56,17 @@ maven-checkstyle-plugin - 2.9 + 2.9.1 ${basedir}/src/build/conf/checkstyle.xml - false + false maven-javadoc-plugin - 2.8 + 2.9 - ${jdk.version} + true false package @@ -86,20 +79,16 @@ - maven-surefire-report-plugin - 2.7.1 - - maven-changelog-plugin 2.2 - maven-jxr-plugin - 2.2 + 2.3 + + + maven-surefire-report-plugin + 2.14 org.codehaus.mojo @@ -116,13 +105,12 @@ maven-project-info-reports-plugin - 2.3.1 + 2.4 maven-pmd-plugin - 2.5 + 3.0.1 - ascii ${jdk.version} @@ -134,34 +122,29 @@ org.codehaus.mojo findbugs-maven-plugin - 2.3.1 + 2.5.2 - - true - true - true - target/site false org.codehaus.mojo cobertura-maven-plugin - 2.4 + 2.5.2 - - xml - html - org.piccolo2d.examples.* org.piccolo2d.examples.pswing.* org.piccolo2d.examples.swt.* - org.piccolo2d.tutorial.* + org.piccolo2d.tutorial.* - org/piccolo2d/examples/** + org/piccolo2d/examples/** + org/piccolo2d/**/*Test.class + org/piccolo2d/extras/**/*Test.class + org/piccolo2d/**/Mock*.class + org/piccolo2d/extras/**/Mock*.class diff --git a/extras/src/test/java/org/piccolo2d/extras/pswing/PSwingFESTTest.java b/extras/src/test/java/org/piccolo2d/extras/pswing/PSwingFESTTest.java deleted file mode 100644 index 85b05e2..0000000 --- a/extras/src/test/java/org/piccolo2d/extras/pswing/PSwingFESTTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright (c) 2008-2011, Piccolo2D project, http://piccolo2d.org - * Copyright (c) 1998-2008, University of Maryland - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, are permitted provided - * that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of conditions - * and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, this list of conditions - * and the following disclaimer in the documentation and/or other materials provided with the - * distribution. - * - * None of the name of the University of Maryland, the name of the Piccolo2D project, or the names of its - * contributors may be used to endorse or promote products derived from this software without specific - * prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A - * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR - * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF - * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package org.piccolo2d.extras.pswing; - -import java.awt.Component; -import java.awt.Dimension; -import java.awt.Point; - -import javax.swing.JFrame; -import javax.swing.JList; - -import junit.framework.TestCase; - -import org.fest.swing.core.MouseButton; -import org.fest.swing.core.MouseClickInfo; -import org.fest.swing.exception.ComponentLookupException; -import org.fest.swing.fixture.FrameFixture; -import org.fest.swing.fixture.JListFixture; -import org.piccolo2d.extras.pswing.PSwing; -import org.piccolo2d.extras.pswing.PSwingCanvas; - -/** - * The PSwingFESTTest is a TestCase designed to ensure Piccolo2D plays - * well with the FEST GUI Testing Framework. - */ -public class PSwingFESTTest extends TestCase { - private FrameFixture frameFixture; - - public void setUp() { - JFrame frame = new JFrame(); - PSwingCanvas swingCanvas = new PSwingCanvas(); - swingCanvas.setName("canvas"); - swingCanvas.setPreferredSize(new Dimension(300, 300)); - - JList testList = new JList(new String[] { "One", "Two", "Three" }); - testList.setName("testList"); - swingCanvas.getLayer().addChild(new PSwing(testList)); - - frame.getContentPane().add(swingCanvas); - frame.pack(); - - frameFixture = new FrameFixture(frame); - frameFixture.show(); - } - - public void tearDown() { - frameFixture.cleanUp(); - } - - public void testFESTThrowsExceptionWhenComponentNotFound() { - try { - frameFixture.list("invalidListName"); - } - catch (ComponentLookupException expected) { - // Expected - } - } - - public void testUnderlyingSwingComponentsAreAccessibleToFEST() { - JListFixture listFixture = frameFixture.list("testList"); - listFixture.selectItem("One"); - listFixture.requireVisible(); - - assertFirstElementOfListSelected(); - } - - //TODO: Make this work while running in headlesss mode under Xvnc - /* public void testClickingOnPSwingPassesThroughToComponent() { - Component canvas = frameFixture.robot.finder().findByName("canvas"); - assertNotNull(canvas); - - Point point = canvas.getLocationOnScreen(); - Point firstElementPoint = new Point(point.x + 5, point.y + 5); - frameFixture.robot.click(firstElementPoint, MouseButton.LEFT_BUTTON, 1); - - assertFirstElementOfListSelected(); - }*/ - - private void assertFirstElementOfListSelected() { - JListFixture listFixture = frameFixture.list("testList"); - - String[] selection = listFixture.selection(); - assertNotNull(selection); - assertFalse(0 == selection.length); - assertEquals("One", selection[0]); - } -} diff --git a/parent/pom.xml b/parent/pom.xml index 4f86d52..160fcca 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -31,45 +31,28 @@ --> 4.0.0 + + org.sonatype.oss + oss-parent + 7 + org.piccolo2d piccolo2d-parent 3.0-SNAPSHOT pom Piccolo2D Parent A revolutionary way to create robust, full-featured graphical applications in Java and C#, with striking visual effects such as zooming, animation and multiple representations. + http://www.piccolo2d.org 1.6 UTF-8 UTF-8 - http://www.piccolo2d.org/java - ${httpbase}/site - - - - - - - - ${httpsitebase}/${project.artifactId}/${project.version} Google Code http://code.google.com/p/piccolo2d/issues/list 1995 - - hudson - http://allain.homelinux.org:2121/ - Piccolo2D Announce @@ -231,52 +214,56 @@ maven-assembly-plugin - 2.2-beta-4 + 2.4 maven-clean-plugin - 2.4.1 + 2.5 maven-compiler-plugin - 2.3.2 + 3.1 - true - true - ascii - false - false - ${jdk.version} - false - true ${jdk.version} ${jdk.version} maven-enforcer-plugin - 1.1.1 - - - maven-deploy-plugin - 2.5 - - - maven-gpg-plugin 1.2 + maven-deploy-plugin + 2.7 + + + maven-install-plugin + 2.4 + + + maven-gpg-plugin + 1.4 + + + maven-jar-plugin + 2.4 + + maven-javadoc-plugin - 2.8 + 2.9 - ${jdk.version} + true false package - maven-jar-plugin - 2.3.1 + org.apache.maven.plugins + maven-release-plugin + 2.4.1 + + release + maven-scm-plugin @@ -286,12 +273,20 @@ + maven-resources-plugin + 2.6 + + maven-site-plugin - 3.1 + 3.2 + + + maven-source-plugin + 2.2.1 maven-surefire-plugin - 2.8 + 2.14 org.apache.felix @@ -318,10 +313,10 @@ - [3.0.4,) + [3.0.5,) - 1.6 + [1.6,) @@ -345,50 +340,5 @@ junit test - - - - - maven.site - ${piccolo2d.file.site.base} - - - sonatype-nexus-staging - Nexus Release Repository - http://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - release-sign-artifacts - - - signArtifacts - true - - - - - - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - - - - + diff --git a/pom.xml b/pom.xml index 43a6b14..5a8efa3 100644 --- a/pom.xml +++ b/pom.xml @@ -45,8 +45,14 @@ scm:svn:https://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk http://code.google.com/p/piccolo2d/source/browse/piccolo2d.java/trunk - - + + + + maven-project-info-reports-plugin + 2.4 + + + parent core diff --git a/swt-examples/pom.xml b/swt-examples/pom.xml index b923585..38a4453 100644 --- a/swt-examples/pom.xml +++ b/swt-examples/pom.xml @@ -39,7 +39,6 @@ piccolo2d-swt-examples bundle - Piccolo2D SWT Examples scm:svn:http://piccolo2d.googlecode.com/svn/piccolo2d.java/trunk/swt-examples @@ -56,7 +55,6 @@ - org.apache.maven.plugins maven-assembly-plugin @@ -71,4 +69,12 @@ + + + + maven-project-info-reports-plugin + 2.4 + + + diff --git a/swt/pom.xml b/swt/pom.xml index 41b0c5b..d5c3365 100644 --- a/swt/pom.xml +++ b/swt/pom.xml @@ -39,7 +39,6 @@ piccolo2d-swt bundle - Piccolo2D SWT @@ -73,17 +72,17 @@ maven-checkstyle-plugin - 2.9 + 2.9.1 ${basedir}/src/build/conf/checkstyle.xml - false + false maven-javadoc-plugin - 2.8 + 2.9 - ${jdk.version} + true false package @@ -96,20 +95,16 @@ - maven-surefire-report-plugin - 2.7.1 - - maven-changelog-plugin 2.2 - maven-jxr-plugin - 2.2 + 2.3 + + + maven-surefire-report-plugin + 2.14 org.codehaus.mojo @@ -126,13 +121,12 @@ maven-project-info-reports-plugin - 2.3.1 + 2.4 maven-pmd-plugin - 2.5 + 3.0.1 - ascii ${jdk.version} @@ -144,39 +138,34 @@ org.codehaus.mojo findbugs-maven-plugin - 2.3.1 + 2.5.2 - - true - true - true - target/site - false + false org.codehaus.mojo cobertura-maven-plugin - 2.4 + 2.5.2 - - xml - html - org.piccolo2d.examples.* org.piccolo2d.examples.pswing.* org.piccolo2d.examples.swt.* - org.piccolo2d.tutorial.* + org.piccolo2d.tutorial.* - org/piccolo2d/examples/** + org/piccolo2d/examples/** + org/piccolo2d/**/*Test.class + org/piccolo2d/extras/**/*Test.class + org/piccolo2d/**/Mock*.class + org/piccolo2d/extras/**/Mock*.class - +