Reduziertes Testbeispiel angefügt

This commit is contained in:
JanUlrich 2014-10-07 17:47:59 +02:00
parent 383e5bd883
commit 51e0d96174
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import java.util.Vector;
class Matrix extends Vector<Vector<Integer>> {
Matrix mul(Matrix m){
Matrix ret;
ret = new Matrix();
Integer i;
i = 0;
while(i < this.size()) {
Vector<Integer> v1;
Vector<Integer> v2;
v1 = this.elementAt(i);
v2 = new Vector<Integer>();
Integer j;
j = 0;
ret.addElement(v2);
i++;
}
return ret;
}
}

View File

@ -0,0 +1,16 @@
package plugindevelopment.TypeInsertTests;
import java.util.Vector;
import org.junit.Test;
public class ypedMatrixSimpleTest {
private static final String TEST_FILE = "TypedMatrixSimpleTest.jav";
@Test
public void run(){
Vector<String> mustContain = new Vector<String>();
mustContain.add("Integer erg;");
MultipleTypesInsertTester.testSingleInsert(this.TEST_FILE, mustContain);
}
}