CloneSet46


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19320.977method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11960
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java
21981
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java
319102
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java
Next
Last
Clone Instance
1
Line Count
19
Source Line
60
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java

public void testColumns() throws Exception {
  FileRowColContainer f = new FileRowColContainer("testfiles/test.csv");
  assertNotNull(f);
  assertTrue("Not empty", f.getSize() > 0);
  int myRow = f.nextRow();
  assertEquals(0, myRow);
  assertEquals("a1", f.getColumn(myRow, 0));
  assertEquals("d1", f.getColumn(myRow, 3));
  try {
    f.getColumn(myRow, 4);
    fail("Expected out of bounds");
  }
  catch (IndexOutOfBoundsException
         e) {
  }
  myRow = f.nextRow();
  assertEquals(1, myRow);
  assertEquals("b2", f.getColumn(myRow, 1));
  assertEquals("c2", f.getColumn(myRow, 2));
}


Next
Previous
Clone Instance
2
Line Count
19
Source Line
81
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java

public void testColumnsComma() throws Exception {
  FileRowColContainer f = new FileRowColContainer("testfiles/test.csv", ",");
  assertNotNull(f);
  assertTrue("Not empty", f.getSize() > 0);
  int myRow = f.nextRow();
  assertEquals(0, myRow);
  assertEquals("a1", f.getColumn(myRow, 0));
  assertEquals("d1", f.getColumn(myRow, 3));
  try {
    f.getColumn(myRow, 4);
    fail("Expected out of bounds");
  }
  catch (IndexOutOfBoundsException
         e) {
  }
  myRow = f.nextRow();
  assertEquals(1, myRow);
  assertEquals("b2", f.getColumn(myRow, 1));
  assertEquals("c2", f.getColumn(myRow, 2));
}


First
Previous
Clone Instance
3
Line Count
19
Source Line
102
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/TestFileRowColContainer.java

public void testColumnsTab() throws Exception {
  FileRowColContainer f = new FileRowColContainer("testfiles/test.tsv", "\t");
  assertNotNull(f);
  assertTrue("Not empty", f.getSize() > 0);
  int myRow = f.nextRow();
  assertEquals(0, myRow);
  assertEquals("a1", f.getColumn(myRow, 0));
  assertEquals("d1", f.getColumn(myRow, 3));
  try {
    f.getColumn(myRow, 4);
    fail("Expected out of bounds");
  }
  catch (IndexOutOfBoundsException
         e) {
  }
  myRow = f.nextRow();
  assertEquals(1, myRow);
  assertEquals("b2", f.getColumn(myRow, 1));
  assertEquals("c2", f.getColumn(myRow, 2));
}


Clone AbstractionParameter Count: 2Parameter Bindings

public void [[#variablefefe140]]() throws Exception {
  FileRowColContainer f = new FileRowColContainer( [[#variablefefe0a0]]);
  assertNotNull(f);
  assertTrue("Not empty", f.getSize() > 0);
  int myRow = f.nextRow();
  assertEquals(0, myRow);
  assertEquals("a1", f.getColumn(myRow, 0));
  assertEquals("d1", f.getColumn(myRow, 3));
  try {
    f.getColumn(myRow, 4);
    fail("Expected out of bounds");
  }
  catch (IndexOutOfBoundsException
         e) {
  }
  myRow = f.nextRow();
  assertEquals(1, myRow);
  assertEquals("b2", f.getColumn(myRow, 1));
  assertEquals("c2", f.getColumn(myRow, 2));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fefe140]]
testColumns 
12[[#fefe140]]
testColumnsComma 
13[[#fefe140]]
testColumnsTab 
21[[#fefe0a0]]
"testfiles/test.csv" 
22[[#fefe0a0]]
"testfiles/test.csv", "," 
23[[#fefe0a0]]
"testfiles/test.tsv", "\t"