Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.963 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 636 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/renderer/junit/AbstractRendererTests.java |
2 | 7 | 649 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/chart/renderer/junit/AbstractRendererTests.java |
| |||||
/** * Test that setting the positive item label position for ALL series does * in fact work. */ public void testSetPositiveItemLabelPosition() { BarRenderer r = new BarRenderer(); r.setPositiveItemLabelPosition(new ItemLabelPosition(ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT)); assertEquals(new ItemLabelPosition(ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT), r.getPositiveItemLabelPosition(0, 0)); } |
| |||||
/** * Test that setting the negative item label position for ALL series does * in fact work. */ public void testSetNegativeItemLabelPosition() { BarRenderer r = new BarRenderer(); r.setNegativeItemLabelPosition(new ItemLabelPosition(ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT)); assertEquals(new ItemLabelPosition(ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT), r.getNegativeItemLabelPosition(0, 0)); } |
| |||
/** * Test that setting the negative item label position for ALL series does * in fact work. */ /** * Test that setting the positive item label position for ALL series does * in fact work. */ public void [[#variable18e4ada0]]() { BarRenderer r = new BarRenderer(); r. [[#variable18e4ad00]](new ItemLabelPosition(ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT)); assertEquals(new ItemLabelPosition(ItemLabelAnchor.INSIDE1, TextAnchor.BASELINE_LEFT), r. [[#variable18e4ac80]](0, 0)); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18e4ada0]] | testSetPositiveItemLabelPosition |
1 | 2 | [[#18e4ada0]] | testSetNegativeItemLabelPosition |
2 | 1 | [[#18e4ad00]] | setPositiveItemLabelPosition |
2 | 2 | [[#18e4ad00]] | setNegativeItemLabelPosition |
3 | 1 | [[#18e4ac80]] | getPositiveItemLabelPosition |
3 | 2 | [[#18e4ac80]] | getNegativeItemLabelPosition |