OSDN Git Service

update
authortama3 <tama3@acee48c3-7b26-0410-bdac-b3d0e5314bbc>
Fri, 12 Sep 2008 08:43:19 +0000 (08:43 +0000)
committertama3 <tama3@acee48c3-7b26-0410-bdac-b3d0e5314bbc>
Fri, 12 Sep 2008 08:43:19 +0000 (08:43 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/stigmata/trunk@301 acee48c3-7b26-0410-bdac-b3d0e5314bbc

README.txt
pom.xml
src/main/java/jp/sourceforge/stigmata/utils/ConfigFileImporter.java
src/main/java/jp/sourceforge/stigmata/utils/WellknownClassManager.java
src/test/java/jp/sourceforge/stigmata/utils/ArrayIteratorTest.java [new file with mode: 0644]

index e0abb54..1c5e094 100755 (executable)
@@ -1,6 +1,6 @@
 
                    Stigmata: Java birthmark toolkit
-                            version 1.2.0
+                            version 2.0.0
                    http://stigmata.sourceforge.jp/
 
                               Copyright 2006-2007 Haruaki Tamada, Ph.D
   Stigmata requires following libraries.
 
   - ASM 2.2.3 (http://asm.objectweb.org/)
-  - Jakarta Commons CLI 1.1 (http://commons.cafebabe.jp/xmlcli/)
-  - XmlCli 1.2.1 (http://talisman.sourceforge.jp/xmlcli/)
-  - Jama 1.0.2 (http://math.nist.gov/javanumerics/jama/)
-    stigmata-1.0.0 or later
-  - BrowserLauncher2 1.3 (http://browserlaunch2.sourceforge.net/)
-    stigmata-1.1.0 or later; as needed
-  - stax-api-1.0.1.jar (http://stax.codehaus.org/)
-    stigmata-1.2.0 or later
-  - stax-1.2.0.jar (http://stax.codehaus.org/)
-    stigmata-1.2.0 or later
+  - Apache Commons DBUtils 1.1 (http://commons.apache.org/dbutils/)
+  - Apache Commons Beanutils 1.7.0 (http://commons.apache.org/beanutils/)
+  - Talisman XmlCli 1.2.2 (http://talisman.sourceforge.jp/xmlcli/)
+  - Talisman MDS 1.0.1 (http://talisman.sourceforge.jp/mds/)
+  - Talisman i18n 1.0.1 (http://talisman.sourceforge.jp/i18n/)
+  - Stigmata Digger 1.0.0 (http://stigmata.sourceforge.jp/digger/)
+
   - JUnit 4.1 (http://www.junit.org/) for testing.
 
 * Author
 
-  Name:        Haruaki TAMADA, Ph.D.
-  Affiliation: Department of Computer Science, Faculty of Computer
-               Science and Engineering, Kyoto Sangyo University
+  Name:        Haruaki TAMADA.
+  Affiliation: Stigmata Project, Sourceforge.jp
   E-mail:      tama3[ at ]users.sourceforge.jp
   Web Page:    http://stigmata.sourceforge.jp/
 
diff --git a/pom.xml b/pom.xml
index 7016e26..73e5e8d 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   <modelVersion>4.0.0</modelVersion>
   <groupId>jp.sourceforge</groupId>
   <artifactId>stigmata</artifactId>
-  <version>1.3.0-SNAPSHOT</version>
+  <version>2.0.0-SNAPSHOT</version>
   <name>stigmata</name>
   <description>Java birthmark toolkit</description>
   <url>http://stigmata.sourceforge.jp/</url>
       <scope>compile</scope>
     </dependency>
     <dependency>
-      <groupId>commons-dbutils</groupId>
-      <artifactId>commons-dbutils</artifactId>
-      <version>1.1</version>
-      <scope>compile</scope>
-    </dependency>
-    <dependency>
       <groupId>jp.sourceforge.talisman</groupId>
       <artifactId>i18n</artifactId>
       <version>1.0.1-SNAPSHOT</version>
index 8076d31..c94e433 100644 (file)
@@ -38,10 +38,6 @@ public class ConfigFileImporter{
         this.environment = environment;
     }
 
-    public ConfigFileImporter(){
-        // generate environment.
-    }
-
     public BirthmarkEnvironment parse(InputStream in) throws IOException{
         try{
             SAXParserFactory factory = SAXParserFactory.newInstance();
index 0293e24..ae99367 100644 (file)
@@ -22,9 +22,15 @@ import org.objectweb.asm.Opcodes;
 public class WellknownClassManager implements Iterable<WellknownClassJudgeRule>{
     private List<WellknownClassJudgeRule> rules = new ArrayList<WellknownClassJudgeRule>();
 
+    /**
+     * default constructor.
+     */
     public WellknownClassManager(){
     }
 
+    /**
+     * constructor with parent WellknownClassManager.
+     */
     public WellknownClassManager(WellknownClassManager manager){
         rules = new ArrayList<WellknownClassJudgeRule>(manager.rules);
     }
diff --git a/src/test/java/jp/sourceforge/stigmata/utils/ArrayIteratorTest.java b/src/test/java/jp/sourceforge/stigmata/utils/ArrayIteratorTest.java
new file mode 100644 (file)
index 0000000..04b4a3c
--- /dev/null
@@ -0,0 +1,32 @@
+package jp.sourceforge.stigmata.utils;
+
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.Test;
+
+public class ArrayIteratorTest{
+    private ArrayIterator<String> iterator;
+    private String[] data = new String[] {
+        "one", "two", "three", "four", "five"
+    };
+
+    @Before
+    public void setup(){
+        iterator = new ArrayIterator<String>(data);
+    }
+
+    @Test
+    public void testBasic(){
+        Assert.assertTrue(iterator.hasNext());
+        Assert.assertEquals(data[0], iterator.next());
+        Assert.assertTrue(iterator.hasNext());
+        Assert.assertEquals(data[1], iterator.next());
+        Assert.assertTrue(iterator.hasNext());
+        Assert.assertEquals(data[2], iterator.next());
+        Assert.assertTrue(iterator.hasNext());
+        Assert.assertEquals(data[3], iterator.next());
+        Assert.assertTrue(iterator.hasNext());
+        Assert.assertEquals(data[4], iterator.next());
+        Assert.assertFalse(iterator.hasNext());
+    }
+}