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/
<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>
this.environment = environment;
}
- public ConfigFileImporter(){
- // generate environment.
- }
-
public BirthmarkEnvironment parse(InputStream in) throws IOException{
try{
SAXParserFactory factory = SAXParserFactory.newInstance();
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);
}
--- /dev/null
+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());
+ }
+}