CloneSet485


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14320.960method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114270
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/time/junit/TimeSeriesCollectionTests.java
214161
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/time/ohlc/junit/OHLCSeriesCollectionTests.java
314171
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/xy/junit/XYSeriesCollectionTests.java
Next
Last
Clone Instance
1
Line Count
14
Source Line
270
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/time/junit/TimeSeriesCollectionTests.java

/**
 * A test for bug report 1170825.
 */
public void test1170825() {
  TimeSeries s1 = new TimeSeries("Series1");
  TimeSeriesCollection dataset = new TimeSeriesCollection();
  dataset.addSeries(s1);
  try {
    /* TimeSeries s = */
    dataset.getSeries(1);
  }
  catch (IllegalArgumentException
         e) {
  // correct outcome
  }
  catch (IndexOutOfBoundsException
         e) {
    assertTrue(false); // wrong outcome
  }
}


Next
Previous
Clone Instance
2
Line Count
14
Source Line
161
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/time/ohlc/junit/OHLCSeriesCollectionTests.java

/**
 * A test for bug report 1170825 (originally affected XYSeriesCollection, 
 * this test is just copied over).
 */
public void test1170825() {
  OHLCSeries s1 = new OHLCSeries("Series1");
  OHLCSeriesCollection dataset = new OHLCSeriesCollection();
  dataset.addSeries(s1);
  try {
    /* XYSeries s = */
    dataset.getSeries(1);
  }
  catch (IllegalArgumentException
         e) {
  // correct outcome
  }
  catch (IndexOutOfBoundsException
         e) {
    assertTrue(false); // wrong outcome
  }
}


First
Previous
Clone Instance
3
Line Count
14
Source Line
171
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/xy/junit/XYSeriesCollectionTests.java

/**
 * A test for bug report 1170825.
 */
public void test1170825() {
  XYSeries s1 = new XYSeries("Series1");
  XYSeriesCollection dataset = new XYSeriesCollection();
  dataset.addSeries(s1);
  try {
    /* XYSeries s = */
    dataset.getSeries(1);
  }
  catch (IllegalArgumentException
         e) {
  // correct outcome
  }
  catch (IndexOutOfBoundsException
         e) {
    assertTrue(false); // wrong outcome
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * A test for bug report 1170825 (originally affected XYSeriesCollection, 
     * this test is just copied over).
     */
/**
     * A test for bug report 1170825.
     */
public void test1170825() {
   [[#variable18c6b140]] s1 = new [[#variable18c6b140]]("Series1");
   [[#variable18c6ba60]] dataset = new [[#variable18c6ba60]]();
  dataset.addSeries(s1);
  try {
    /* XYSeries s = */
    /* TimeSeries s = */
    dataset.getSeries(1);
  }
  catch (IllegalArgumentException
         e) {
  // correct outcome
  }
  catch (IndexOutOfBoundsException
         e) {
    assertTrue(false); // wrong outcome
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18c6b140]]
TimeSeries 
12[[#18c6b140]]
OHLCSeries 
13[[#18c6b140]]
XYSeries 
21[[#18c6ba60]]
TimeSeriesCollection 
22[[#18c6ba60]]
OHLCSeriesCollection 
23[[#18c6ba60]]
XYSeriesCollection