Java 类org.jfree.chart.urls.CustomPieURLGenerator 实例源码

项目:ccu-historian    文件:PiePlotTest.java   
/**
 * Check cloning of the urlGenerator field.
 */
@Test
public void testCloning_URLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getURLGenerator() != p2.getURLGenerator());
}
项目:ccu-historian    文件:PiePlotTest.java   
/**
 * Check cloning of the legendLabelURLGenerator field.
 */
@Test
public void testCloning_LegendLabelURLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setLegendLabelURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getLegendLabelURLGenerator()
            != p2.getLegendLabelURLGenerator());
}
项目:jfreechart    文件:PiePlotTest.java   
/**
 * Check cloning of the urlGenerator field.
 */
@Test
public void testCloning_URLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getURLGenerator() != p2.getURLGenerator());
}
项目:jfreechart    文件:PiePlotTest.java   
/**
 * Check cloning of the legendLabelURLGenerator field.
 */
@Test
public void testCloning_LegendLabelURLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setLegendLabelURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getLegendLabelURLGenerator()
            != p2.getLegendLabelURLGenerator());
}
项目:aya-lang    文件:PiePlotTest.java   
/**
 * Check cloning of the urlGenerator field.
 */
@Test
public void testCloning_URLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getURLGenerator() != p2.getURLGenerator());
}
项目:aya-lang    文件:PiePlotTest.java   
/**
 * Check cloning of the legendLabelURLGenerator field.
 */
@Test
public void testCloning_LegendLabelURLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setLegendLabelURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getLegendLabelURLGenerator()
            != p2.getLegendLabelURLGenerator());
}
项目:ECG-Viewer    文件:PiePlotTest.java   
/**
 * Check cloning of the urlGenerator field.
 */
@Test
public void testCloning_URLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getURLGenerator() != p2.getURLGenerator());
}
项目:ECG-Viewer    文件:PiePlotTest.java   
/**
 * Check cloning of the legendLabelURLGenerator field.
 */
@Test
public void testCloning_LegendLabelURLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setLegendLabelURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getLegendLabelURLGenerator()
            != p2.getLegendLabelURLGenerator());
}
项目:astor    文件:CustomPieURLGeneratorTests.java   
/**
 * Some checks for the equals() method.
 */
public void testEquals() {
    CustomPieURLGenerator g1 = new CustomPieURLGenerator();
    CustomPieURLGenerator g2 = new CustomPieURLGenerator();
    assertTrue(g1.equals(g2));

    Map m1 = new HashMap();
    m1.put("A", "http://www.jfree.org/");
    g1.addURLs(m1);
    assertFalse(g1.equals(g2));
    g2.addURLs(m1);
    assertTrue(g1.equals(g2));
}
项目:group-five    文件:PiePlotTest.java   
/**
 * Check cloning of the urlGenerator field.
 */
@Test
public void testCloning_URLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getURLGenerator() != p2.getURLGenerator());
}
项目:group-five    文件:PiePlotTest.java   
/**
 * Check cloning of the legendLabelURLGenerator field.
 */
@Test
public void testCloning_LegendLabelURLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setLegendLabelURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getLegendLabelURLGenerator()
            != p2.getLegendLabelURLGenerator());
}
项目:buffer_bci    文件:PiePlotTest.java   
/**
 * Check cloning of the urlGenerator field.
 */
@Test
public void testCloning_URLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getURLGenerator() != p2.getURLGenerator());
}
项目:buffer_bci    文件:PiePlotTest.java   
/**
 * Check cloning of the legendLabelURLGenerator field.
 */
@Test
public void testCloning_LegendLabelURLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setLegendLabelURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getLegendLabelURLGenerator()
            != p2.getLegendLabelURLGenerator());
}
项目:proyecto-teoria-control-utn-frro    文件:PiePlotTest.java   
/**
 * Check cloning of the urlGenerator field.
 */
@Test
public void testCloning_URLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getURLGenerator() != p2.getURLGenerator());
}
项目:proyecto-teoria-control-utn-frro    文件:PiePlotTest.java   
/**
 * Check cloning of the legendLabelURLGenerator field.
 */
@Test
public void testCloning_LegendLabelURLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setLegendLabelURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getLegendLabelURLGenerator()
            != p2.getLegendLabelURLGenerator());
}
项目:Memetic-Algorithm-for-TSP    文件:PiePlotTest.java   
/**
 * Check cloning of the urlGenerator field.
 */
@Test
public void testCloning_URLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getURLGenerator() != p2.getURLGenerator());
}
项目:Memetic-Algorithm-for-TSP    文件:PiePlotTest.java   
/**
 * Check cloning of the legendLabelURLGenerator field.
 */
@Test
public void testCloning_LegendLabelURLGenerator() throws CloneNotSupportedException {
    CustomPieURLGenerator generator = new CustomPieURLGenerator();
    PiePlot p1 = new PiePlot();
    p1.setLegendLabelURLGenerator(generator);
    PiePlot p2 = (PiePlot) p1.clone();
    assertTrue(p1 != p2);
    assertTrue(p1.getClass() == p2.getClass());
    assertTrue(p1.equals(p2));

    // check that the URL generator has been cloned
    assertTrue(p1.getLegendLabelURLGenerator()
            != p2.getLegendLabelURLGenerator());
}
项目:astor    文件:CustomPieURLGeneratorTests.java   
/**
 * Checks that the class implements PublicCloneable.
 */
public void testPublicCloneable() {
    CustomPieURLGenerator g1 = new CustomPieURLGenerator();
    assertTrue(g1 instanceof PublicCloneable);
}