advanced parameters/startTimeout.
i18n for japanese.
0 startTimeout should be valid. use default (15000ms).
added compatibility test.

[from now] 2013/02/19 11:24:58

diff --git a/src/test/java/org/jenkinsci/plugins/mongodb/CompatibilityTest.java b/src/test/java/org/jenkinsci/plugins/mongodb/CompatibilityTest.java
new file mode 100644
index 0000000..42347bb
--- /dev/null
+++ b/src/test/java/org/jenkinsci/plugins/mongodb/CompatibilityTest.java
@@ -0,0 +1,32 @@
+package org.jenkinsci.plugins.mongodb;
+
+import hudson.model.FreeStyleProject;
+import org.jvnet.hudson.test.HudsonTestCase;
+import org.jvnet.hudson.test.recipes.LocalData;
+
+/**
+ * @author Kiyotaka Oku
+ */
+public class CompatibilityTest extends HudsonTestCase {
+
+    @LocalData
+    public void test_1_2_to_1_3() {
+
+        MongoDBInstallation[] installations = hudson.getDescriptorByType(MongoDBInstallation.DescriptorImpl.class).getInstallations();
+        assertEquals(1, installations.length);
+
+        MongoDBInstallation inst = installations[0];
+        assertEquals(null, inst.getParameters());
+        assertEquals(0, inst.getStartTimeout());
+
+        FreeStyleProject job = (FreeStyleProject) hudson.getItem("test");
+        MongoBuildWrapper wrapper = (MongoBuildWrapper) job.getBuildWrappers().get(hudson.getDescriptor(MongoBuildWrapper.class));
+
+        assertNotNull(wrapper);
+        assertEquals("mongo", wrapper.getMongodbName());
+        assertEquals("data", wrapper.getDbpath());
+        assertEquals("10000", wrapper.getPort());
+        assertNull(wrapper.getParameters());
+        assertEquals(0, wrapper.getStartTimeout());
+    }
+}
diff --git a/src/test/java/org/jenkinsci/plugins/mongodb/MigrationTest.java b/src/test/java/org/jenkinsci/plugins/mongodb/MigrationTest.java
deleted file mode 100644
index 41844f4..0000000
--- a/src/test/java/org/jenkinsci/plugins/mongodb/MigrationTest.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.jenkinsci.plugins.mongodb;
-
-import hudson.model.FreeStyleProject;
-import org.jvnet.hudson.test.HudsonTestCase;
-import org.jvnet.hudson.test.recipes.LocalData;
-
-/**
- * @author Kiyotaka Oku
- */
-public class MigrationTest extends HudsonTestCase {
-
-    @LocalData
-    public void test_1_2_to_1_3() {
-
-        MongoDBInstallation[] installations = hudson.getDescriptorByType(MongoDBInstallation.DescriptorImpl.class).getInstallations();
-        assertEquals(1, installations.length);
-
-        FreeStyleProject job = (FreeStyleProject) hudson.getItem("test");
-        MongoBuildWrapper wrapper = (MongoBuildWrapper) job.getBuildWrappersList().get(hudson.getDescriptor(MongoBuildWrapper.class));
-
-        assertNotNull(wrapper);
-        assertEquals("mongo", wrapper.getMongodbName());
-        assertEquals("data", wrapper.getDbpath());
-        assertEquals("10000", wrapper.getPort());
-        assertNull(wrapper.getParameters());
-        assertEquals(0, wrapper.getStartTimeout());
-    }
-}
diff --git a/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/config.xml b/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/config.xml
new file mode 100644
index 0000000..7981d80
--- /dev/null
+++ b/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/config.xml
@@ -0,0 +1,2 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<hudson/>
\ No newline at end of file
diff --git a/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/jobs/test/config.xml b/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/jobs/test/config.xml
new file mode 100644
index 0000000..604d20b
--- /dev/null
+++ b/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/jobs/test/config.xml
@@ -0,0 +1,33 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+    <actions/>
+    <description></description>
+    <keepDependencies>false</keepDependencies>
+    <properties/>
+    <scm class="hudson.scm.NullSCM"/>
+    <canRoam>true</canRoam>
+    <disabled>false</disabled>
+    <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+    <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+    <triggers class="vector"/>
+    <concurrentBuild>false</concurrentBuild>
+    <builders>
+        <hudson.tasks.Shell>
+            <command>mongo &lt;&lt; EOF
+                show dbs
+                use hello
+                db.person.save({name:&apos;kiy0taka&apos;})
+                db.person.find()
+                show dbs
+                EOF</command>
+        </hudson.tasks.Shell>
+    </builders>
+    <publishers/>
+    <buildWrappers>
+        <org.jenkinsci.plugins.mongodb.MongoBuildWrapper>
+            <mongodbName>mongo</mongodbName>
+            <dbpath>data</dbpath>
+            <port>10000</port>
+        </org.jenkinsci.plugins.mongodb.MongoBuildWrapper>
+    </buildWrappers>
+</project>
\ No newline at end of file
diff --git a/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/org.jenkinsci.plugins.mongodb.MongoBuildWrapper.xml b/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/org.jenkinsci.plugins.mongodb.MongoBuildWrapper.xml
new file mode 100644
index 0000000..54bd31e
--- /dev/null
+++ b/src/test/resources/org/jenkinsci/plugins/mongodb/CompatibilityTest/test_1_2_to_1_3/org.jenkinsci.plugins.mongodb.MongoBuildWrapper.xml
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<org.jenkinsci.plugins.mongodb.MongoBuildWrapper_-DescriptorImpl>
+    <installations>
+        <org.jenkinsci.plugins.mongodb.MongoDBInstallation>
+            <name>hello</name>
+            <home></home>
+            <properties>
+                <hudson.tools.InstallSourceProperty>
+                    <installers>
+                        <org.jenkinsci.plugins.mongodb.MongoDBInstaller>
+                            <id>osx-i386-0.8.0</id>
+                        </org.jenkinsci.plugins.mongodb.MongoDBInstaller>
+                    </installers>
+                </hudson.tools.InstallSourceProperty>
+            </properties>
+        </org.jenkinsci.plugins.mongodb.MongoDBInstallation>
+    </installations>
+</org.jenkinsci.plugins.mongodb.MongoBuildWrapper_-DescriptorImpl>
\ No newline at end of file
diff --git a/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/config.xml b/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/config.xml
deleted file mode 100644
index 7981d80..0000000
--- a/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/config.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<hudson/>
\ No newline at end of file
diff --git a/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/jobs/test/config.xml b/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/jobs/test/config.xml
deleted file mode 100644
index 604d20b..0000000
--- a/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/jobs/test/config.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<project>
-    <actions/>
-    <description></description>
-    <keepDependencies>false</keepDependencies>
-    <properties/>
-    <scm class="hudson.scm.NullSCM"/>
-    <canRoam>true</canRoam>
-    <disabled>false</disabled>
-    <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
-    <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
-    <triggers class="vector"/>
-    <concurrentBuild>false</concurrentBuild>
-    <builders>
-        <hudson.tasks.Shell>
-            <command>mongo &lt;&lt; EOF
-                show dbs
-                use hello
-                db.person.save({name:&apos;kiy0taka&apos;})
-                db.person.find()
-                show dbs
-                EOF</command>
-        </hudson.tasks.Shell>
-    </builders>
-    <publishers/>
-    <buildWrappers>
-        <org.jenkinsci.plugins.mongodb.MongoBuildWrapper>
-            <mongodbName>mongo</mongodbName>
-            <dbpath>data</dbpath>
-            <port>10000</port>
-        </org.jenkinsci.plugins.mongodb.MongoBuildWrapper>
-    </buildWrappers>
-</project>
\ No newline at end of file
diff --git a/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/org.jenkinsci.plugins.mongodb.MongoBuildWrapper.xml b/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/org.jenkinsci.plugins.mongodb.MongoBuildWrapper.xml
deleted file mode 100644
index 54bd31e..0000000
--- a/src/test/resources/org/jenkinsci/plugins/mongodb/MigrationTest/test_1_2_to_1_3/org.jenkinsci.plugins.mongodb.MongoBuildWrapper.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<org.jenkinsci.plugins.mongodb.MongoBuildWrapper_-DescriptorImpl>
-    <installations>
-        <org.jenkinsci.plugins.mongodb.MongoDBInstallation>
-            <name>hello</name>
-            <home></home>
-            <properties>
-                <hudson.tools.InstallSourceProperty>
-                    <installers>
-                        <org.jenkinsci.plugins.mongodb.MongoDBInstaller>
-                            <id>osx-i386-0.8.0</id>
-                        </org.jenkinsci.plugins.mongodb.MongoDBInstaller>
-                    </installers>
-                </hudson.tools.InstallSourceProperty>
-            </properties>
-        </org.jenkinsci.plugins.mongodb.MongoDBInstallation>
-    </installations>
-</org.jenkinsci.plugins.mongodb.MongoBuildWrapper_-DescriptorImpl>
\ No newline at end of file
upgraded core.