Skip to content

Commit

Permalink
Finish Test of Pairwise Algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
cnkmym committed Mar 6, 2013
1 parent 33aa2a9 commit a282f8b
Show file tree
Hide file tree
Showing 38 changed files with 2,185 additions and 2,011 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ local.properties
# PDT-specific
.buildpath

#################
## Maven
#################
target/

#################
## Visual Studio
Expand Down
5 changes: 5 additions & 0 deletions data/testData.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{id:0,name:Param0,values:[a,b]}
{id:1,name:Param1,values:[c,d,e,f]}
{id:2,name:Param2,values:[01,001]}
{id:3,name:Param3,values:[g,h,i]}
{id:4,name:Param4,values:[j,k]}
29 changes: 29 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>jp.co.worksap.ate</groupId>
<artifactId>jPICT</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Java Pairwise Independent COmbination Testing</name>
<url>http://www.worksap.co.jp</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2</version>
</dependency>
</dependencies>
</project>
36 changes: 18 additions & 18 deletions src/AllPairFactor.java
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
public class AllPairFactor {
private int factorId;
private String factorName;
private String[] values;
private int factorId;
private String factorName;
private String[] values;

public int getFactorId() {
return factorId;
}
public int getFactorId() {
return factorId;
}

public String getFactorName() {
return factorName;
}
public String getFactorName() {
return factorName;
}

public String[] getValues() {
return values;
}
public String[] getValues() {
return values;
}

public AllPairFactor(int factorId, String factorName, String[] values) {
super();
this.factorId = factorId;
this.factorName = factorName;
this.values = values;
}
public AllPairFactor(int factorId, String factorName, String[] values) {
super();
this.factorId = factorId;
this.factorName = factorName;
this.values = values;
}

}
1,401 changes: 693 additions & 708 deletions src/AllPairGenerator.java

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/FactorValue.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
public class FactorValue {
private int factorIndex;
private String value;
private int factorIndex;
private String value;

public int getFacorIndex() {
return factorIndex;
}
public int getFacorIndex() {
return factorIndex;
}

public String getValue() {
return value;
}
public String getValue() {
return value;
}

public FactorValue(int factorId, String value) {
this.factorIndex = factorId;
this.value = value;
}
public FactorValue(int factorId, String value) {
this.factorIndex = factorId;
this.value = value;
}
}
37 changes: 18 additions & 19 deletions src/Main.java
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@

import java.util.List;

public class Main {

public static void main(String[] args) {
System.out.println("\nBegin pair-wise testset generation\n");
public static void main(String[] args) {
System.out.println("\nBegin pair-wise testset generation\n");

AllPairGenerator generator = new AllPairGenerator();
AllPairGenerator generator = new AllPairGenerator();

displayResults(generator.generateFromFile());
displayResults(generator.generateFromFile());

System.out.println("\nEnd\n");
}
System.out.println("\nEnd\n");
}

private static void displayResults(List<List<FactorValue>> patterns) {
// Display results
private static void displayResults(List<List<FactorValue>> patterns) {
// Display results

System.out.println("\nResult testsets: \n");
int index = 0;
for (List<FactorValue> pattern : patterns) {
System.out.print(index++ + ": ");
for (FactorValue value : pattern) {
System.out.print(value.getValue() + " ");
}
System.out.println();
}
}
System.out.println("\nResult testsets: \n");
int index = 0;
for (List<FactorValue> pattern : patterns) {
System.out.print(index++ + ": ");
for (FactorValue value : pattern) {
System.out.print(value.getValue() + " ");
}
System.out.println();
}
}

}
32 changes: 0 additions & 32 deletions src/jqict/Main.java

This file was deleted.

69 changes: 0 additions & 69 deletions src/jqict/algorithm/fullcombination/FullCombinationAlgorithm.java

This file was deleted.

Loading

0 comments on commit a282f8b

Please sign in to comment.