CloneSet584


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28210.977statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
128109
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/category/junit/CategoryToPieDatasetTests.java
228151
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/category/junit/CategoryToPieDatasetTests.java
Next
Last
Clone Instance
1
Line Count
28
Source Line
109
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/category/junit/CategoryToPieDatasetTests.java

// check negative index throws exception
try {
  /* Number n = */
  d1.getValue(-1);
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}
// check index == getItemCount() throws exception
try {
  /* Number n = */
  d1.getValue(d1.getItemCount());
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}
// test null source
CategoryToPieDataset p1 = new CategoryToPieDataset(null, TableOrder.BY_COLUMN, 0);
try {
  /* Number n = */
  p1.getValue(0);
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}


First
Previous
Clone Instance
2
Line Count
28
Source Line
151
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/category/junit/CategoryToPieDatasetTests.java

// check negative index throws exception
try {
  /* Number n = */
  d1.getKey(-1);
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}
// check index == getItemCount() throws exception
try {
  /* Number n = */
  d1.getKey(d1.getItemCount());
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}
// test null source
CategoryToPieDataset p1 = new CategoryToPieDataset(null, TableOrder.BY_COLUMN, 0);
try {
  /* Number n = */
  p1.getKey(0);
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}


Clone AbstractionParameter Count: 1Parameter Bindings

// check negative index throws exception
try {
  /* Number n = */
  d1. [[#variable18c86720]](-1);
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}
// check index == getItemCount() throws exception
try {
  /* Number n = */
  d1. [[#variable18c86720]](d1.getItemCount());
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}
// test null source
CategoryToPieDataset p1 = new CategoryToPieDataset(null, TableOrder.BY_COLUMN, 0);
try {
  /* Number n = */
  p1. [[#variable18c86720]](0);
  fail("Expected IndexOutOfBoundsException.");
}
catch (IndexOutOfBoundsException
       e) {
// this is expected
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18c86720]]
getValue 
12[[#18c86720]]
getKey