OSDN Git Service

テストメソッドの名称を日本語からアルファベットに変更した
authoryuuhayashi <hayashi.yuu@gmail.com>
Mon, 7 Feb 2022 21:59:22 +0000 (06:59 +0900)
committeryuuhayashi <hayashi.yuu@gmail.com>
Mon, 7 Feb 2022 21:59:22 +0000 (06:59 +0900)
pom.xml
src/test/java/osm/jp/gpx/ElementMapTRKSEGTest.java
src/test/java/osm/jp/gpx/Fixture.java
src/test/java/osm/jp/gpx/ImportPictureTest.java

diff --git a/pom.xml b/pom.xml
index 63481af..f6ebd8c 100644 (file)
--- a/pom.xml
+++ b/pom.xml
               <goal>wget</goal>
             </goals>
             <configuration>
-              <url>http://surveyor.mydns.jp/data/Sony20170518.tar.gz</url>
-              <unpack>false</unpack>
+              <url>http://surveyor.mydns.jp/archiva/repository/haya4/adjustgpx-data/Sony20170518/4/Sony20170518-4.zip</url>
+              <unpack>true</unpack>
               <outputDirectory>${project.build.directory}/test-classes/imgdata</outputDirectory>
             </configuration>
           </execution>
               <goal>wget</goal>
             </goals>
             <configuration>
-              <url>http://surveyor.mydns.jp/data/WiMiUS20170518.tar.gz</url>
-              <unpack>false</unpack>
+              <url>http://surveyor.mydns.jp/archiva/repository/haya4/adjustgpx-data/WiMiUS20170518/2/WiMiUS20170518-2.zip</url>
+              <unpack>true</unpack>
               <outputDirectory>${project.build.directory}/test-classes/imgdata</outputDirectory>
             </configuration>
           </execution>
               <goal>wget</goal>
             </goals>
             <configuration>
-              <url>http://surveyor.mydns.jp/data/separate.tar.gz</url>
-              <unpack>false</unpack>
+              <url>http://surveyor.mydns.jp/archiva/repository/haya4/adjustgpx-data/separate/1/separate-1.zip</url>
+              <unpack>true</unpack>
               <outputDirectory>${project.build.directory}/test-classes/imgdata</outputDirectory>
             </configuration>
           </execution>
           <tagNameFormat>v@{project.version}</tagNameFormat>
         </configuration>
       </plugin>
-    
     </plugins>
-    
-    
   </build>
-  
 </project>
index eadc092..280bed9 100644 (file)
@@ -21,7 +21,7 @@ import static org.hamcrest.CoreMatchers.*;
 public class ElementMapTRKSEGTest {
 
     @RunWith(Theories.class)
-    public static class 各種GPXファイルを食わせる {
+    public static class testGpxFiles {
         static class Fixture {
             String gpxSourcePath;              // GPXファイル(オリジナル)
             int segCount;                              // GPXファイルに含まれるTRKSEGノードの数
@@ -59,8 +59,12 @@ public class ElementMapTRKSEGTest {
                osm.jp.gpx.AppParametersTest.delTestData("AdjustTime.ini");
         }
 
+        /**
+         * TRKSEGを読み込む
+         * @param dataset
+         */
         @Theory
-        public void TRKSEGを読み込む(Fixture dataset) {
+        public void readTRKSEG(Fixture dataset) {
             try {
                 System.out.println("GPX file: "+ dataset.gpxSourcePath);
                 GpxFile gpx = new GpxFile(new AppParameters(), new File(dataset.gpxSourcePath));
@@ -77,8 +81,11 @@ public class ElementMapTRKSEGTest {
                        }
         }
         
+        /**
+         * test整形されていないGPX
+         */
         @Test
-        public void test整形されていないGPX() {
+        public void testUnreformatGPX() {
                String gpxSourcePath = "target/test-classes/gpx/2020-02-29 13.35.58 Day.gpx";
             try {
                 System.out.println("GPX file: "+ gpxSourcePath);
index f9215e0..1809d84 100644 (file)
@@ -2,8 +2,6 @@ package osm.jp.gpx;
 
 import org.junit.experimental.theories.DataPoints;
 
-import osm.jp.gpx.Expecter;
-
 public class Fixture {
     String comment;                            // テスト概要(コメント)
     String tarFilePath;                        // TARデータ
index ebcf388..8de71c3 100644 (file)
@@ -18,8 +18,13 @@ public class ImportPictureTest {
     @DataPoints
     public static Fixture[] datas = Fixture.datas;
 
+    /**
+     * パラメータテスト
+     * @param dataset
+     * @throws Exception
+     */
     @Theory
-    public void パラメータテスト(Fixture dataset) throws Exception {
+    public void testParameter(Fixture dataset) throws Exception {
         setup(dataset);
         testdo(dataset.iniFilePath);
         Expecter.check(dataset);