diff --git a/src/it/localizer/invoker.properties b/src/it/localizer/invoker.properties new file mode 100644 index 0000000000..66f78f2f48 --- /dev/null +++ b/src/it/localizer/invoker.properties @@ -0,0 +1,2 @@ +# release.skipTests normally set in jenkins-release profile since release:perform would do the tests +invoker.goals=-Dstyle.color=always -ntp -Pjenkins-release -Drelease.skipTests=false clean verify diff --git a/src/it/localizer/pom.xml b/src/it/localizer/pom.xml new file mode 100644 index 0000000000..fedf5ca4f9 --- /dev/null +++ b/src/it/localizer/pom.xml @@ -0,0 +1,32 @@ + + + 4.0.0 + + org.jenkins-ci.plugins + plugin + @project.version@ + + + org.jenkins-ci.plugins.its + localizer + 1.0-SNAPSHOT + hpi + + 2.277.4 + 8 + true + + + + repo.jenkins-ci.org + https://repo.jenkins-ci.org/public/ + + + + + repo.jenkins-ci.org + https://repo.jenkins-ci.org/public/ + + + diff --git a/src/it/localizer/src/main/java/test/X.java b/src/it/localizer/src/main/java/test/X.java new file mode 100644 index 0000000000..1c920c2212 --- /dev/null +++ b/src/it/localizer/src/main/java/test/X.java @@ -0,0 +1,9 @@ +package test; + +public class X { + + public static String label() { + return Messages.label(); + } + +} diff --git a/src/it/localizer/src/main/resources/index.jelly b/src/it/localizer/src/main/resources/index.jelly new file mode 100644 index 0000000000..2f655e510a --- /dev/null +++ b/src/it/localizer/src/main/resources/index.jelly @@ -0,0 +1,2 @@ + +
diff --git a/src/it/localizer/src/main/resources/test/Messages.properties b/src/it/localizer/src/main/resources/test/Messages.properties new file mode 100644 index 0000000000..8a311c7deb --- /dev/null +++ b/src/it/localizer/src/main/resources/test/Messages.properties @@ -0,0 +1 @@ +label=Whatever diff --git a/src/it/localizer/src/test/java/test/XTest.java b/src/it/localizer/src/test/java/test/XTest.java new file mode 100644 index 0000000000..4a14d1188b --- /dev/null +++ b/src/it/localizer/src/test/java/test/XTest.java @@ -0,0 +1,13 @@ +package test; + +import org.junit.Test; +import static org.junit.Assert.*; + +public class XTest { + + @Test + public void label() throws Exception { + assertEquals("Whatever", X.label()); + } + +}