亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? standardpiesectionlabelgeneratortests.java

?? 制作圖表的好工具
?? JAVA
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 *
 * This library is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU Lesser General Public License as published by 
 * the Free Software Foundation; either version 2.1 of the License, or 
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
 * USA.  
 *
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 
 * in the United States and other countries.]
 *
 * ------------------------------------------
 * StandardPieSectionLabelGeneratorTests.java
 * ------------------------------------------
 * (C) Copyright 2003, 2004, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: StandardPieSectionLabelGeneratorTests.java,v 1.2.2.1 2005/10/25 20:49:19 mungady Exp $
 *
 * Changes
 * -------
 * 18-Mar-2003 : Version 1 (DG);
 * 13-Aug-2003 : Added clone tests (DG);
 * 04-Mar-2004 : Added test for equals() method (DG);
 *
 */

package org.jfree.chart.labels.junit;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInput;
import java.io.ObjectInputStream;
import java.io.ObjectOutput;
import java.io.ObjectOutputStream;
import java.text.DecimalFormat;
import java.text.NumberFormat;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

import org.jfree.chart.labels.StandardPieSectionLabelGenerator;

/**
 * Tests for the {@link StandardPieSectionLabelGenerator} class.
 */
public class StandardPieSectionLabelGeneratorTests extends TestCase {

    /**
     * Returns the tests as a test suite.
     *
     * @return The test suite.
     */
    public static Test suite() {
        return new TestSuite(StandardPieSectionLabelGeneratorTests.class);
    }

    /**
     * Constructs a new set of tests.
     *
     * @param name  the name of the tests.
     */
    public StandardPieSectionLabelGeneratorTests(String name) {
        super(name);
    }

    /**
     * Test that the equals() method distinguishes all fields.
     */
    public void testEquals() {
        StandardPieSectionLabelGenerator g1 
            = new StandardPieSectionLabelGenerator();
        StandardPieSectionLabelGenerator g2 
            = new StandardPieSectionLabelGenerator();
        assertTrue(g1.equals(g2));
        assertTrue(g2.equals(g1));
        
        g1 = new StandardPieSectionLabelGenerator(
            "{0}", new DecimalFormat("#,##0.00"), 
            NumberFormat.getPercentInstance()
        );
        assertFalse(g1.equals(g2));
        g2 = new StandardPieSectionLabelGenerator(
            "{0}", new DecimalFormat("#,##0.00"), 
            NumberFormat.getPercentInstance()
        );
        assertTrue(g1.equals(g2));

        g1 = new StandardPieSectionLabelGenerator(
            "{0} {1}", new DecimalFormat("#,##0.00"), 
            NumberFormat.getPercentInstance()
        );
        assertFalse(g1.equals(g2));
        g2 = new StandardPieSectionLabelGenerator(
            "{0} {1}", new DecimalFormat("#,##0.00"), 
            NumberFormat.getPercentInstance()
        );
        assertTrue(g1.equals(g2));
    
        g1 = new StandardPieSectionLabelGenerator(
            "{0} {1}", new DecimalFormat("#,##0"), 
            NumberFormat.getPercentInstance()
        );
        assertFalse(g1.equals(g2));
        g2 = new StandardPieSectionLabelGenerator(
            "{0} {1}", new DecimalFormat("#,##0"), 
            NumberFormat.getPercentInstance()
        );
        assertTrue(g1.equals(g2));

        g1 = new StandardPieSectionLabelGenerator(
            "{0} {1}", new DecimalFormat("#,##0"), new DecimalFormat("0.000%")
        );
        assertFalse(g1.equals(g2));
        g2 = new StandardPieSectionLabelGenerator(
            "{0} {1}", new DecimalFormat("#,##0"), new DecimalFormat("0.000%")
        );
        assertTrue(g1.equals(g2));
    }
    
    /**
     * Confirm that cloning works.
     */
    public void testCloning() {
        StandardPieSectionLabelGenerator g1 
            = new StandardPieSectionLabelGenerator();
        StandardPieSectionLabelGenerator g2 = null;
        try {
            g2 = (StandardPieSectionLabelGenerator) g1.clone();
        }
        catch (CloneNotSupportedException e) {
            System.err.println("Failed to clone.");
        }
        assertTrue(g1 != g2);
        assertTrue(g1.getClass() == g2.getClass());
        assertTrue(g1.equals(g2));
    }

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        StandardPieSectionLabelGenerator g1 
            = new StandardPieSectionLabelGenerator();
        StandardPieSectionLabelGenerator g2 = null;

        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(g1);
            out.close();

            ObjectInput in = new ObjectInputStream(
                new ByteArrayInputStream(buffer.toByteArray())
            );
            g2 = (StandardPieSectionLabelGenerator) in.readObject();
            in.close();
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        assertEquals(g1, g2);

    }
    
    /**
     * Runs the test suite using JUnit's text-based runner.
     * 
     * @param args  ignored.
     */
    public static void main(String[] args) {
        junit.textui.TestRunner.run(suite());
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲国产伦久久久久久久| 欧美日本在线播放| 91黄视频在线| 久久久精品黄色| 一区二区三区精品在线| 国产综合色视频| 欧美日韩在线三级| 综合久久国产九一剧情麻豆| 久久av资源网| 欧美久久久久免费| 一区二区三区在线免费| 国产成人亚洲综合a∨婷婷| 欧美精品亚洲一区二区在线播放| 国产精品久久久久三级| 国内精品伊人久久久久av一坑| 色婷婷av久久久久久久| 国产精品伦理在线| 国产成人精品综合在线观看| 日韩免费性生活视频播放| 午夜久久福利影院| 欧美亚洲高清一区| 一区二区三区高清| 色中色一区二区| 亚洲三级免费观看| www.一区二区| 欧美国产禁国产网站cc| 国产v综合v亚洲欧| 国产视频一区在线观看| 国产盗摄女厕一区二区三区 | 久久www免费人成看片高清| 91黄色激情网站| 一区二区三区蜜桃网| 色8久久人人97超碰香蕉987| 亚洲日本在线a| 欧美主播一区二区三区美女| 亚洲欧美激情插| 在线观看网站黄不卡| 亚洲一区国产视频| 欧美日韩一区二区三区免费看| 亚洲福利视频三区| 欧美日韩国产成人在线91| 偷拍日韩校园综合在线| 69精品人人人人| 老司机午夜精品99久久| 久久亚洲精华国产精华液 | 96av麻豆蜜桃一区二区| 中文字幕中文字幕一区二区| 91在线观看成人| 亚洲美女免费视频| 欧美视频一区二区在线观看| 日韩一区精品字幕| 精品国产免费一区二区三区四区| 韩日av一区二区| 成人欧美一区二区三区白人| 色天使色偷偷av一区二区| 亚洲午夜电影在线观看| 欧美成人video| jvid福利写真一区二区三区| 亚洲一二三区不卡| 日韩三级精品电影久久久| 国产成人午夜精品影院观看视频 | 亚洲精品videosex极品| 欧美日本韩国一区| 国产精品77777| 亚洲成人手机在线| 久久午夜羞羞影院免费观看| 99国产精品久久久久| 天天综合日日夜夜精品| 2021久久国产精品不只是精品| 丰满放荡岳乱妇91ww| 日韩一区精品字幕| 国产精品激情偷乱一区二区∴| 在线播放国产精品二区一二区四区| 韩国欧美国产一区| 午夜精品aaa| 国产精品久久久久久久久果冻传媒| 欧美色倩网站大全免费| 国产91丝袜在线观看| 日韩一区欧美二区| 亚洲精品精品亚洲| 久久久99久久| 日韩三级av在线播放| 在线视频你懂得一区| 国产成人精品免费| 久国产精品韩国三级视频| 亚洲综合免费观看高清在线观看| 亚洲精品在线免费观看视频| 欧美日韩三级一区二区| 91丨九色丨蝌蚪富婆spa| 狠狠狠色丁香婷婷综合久久五月| 午夜精品久久久久久久久久久| 中文字幕一区二区三区蜜月| 久久精品网站免费观看| 欧美一级日韩一级| 91国内精品野花午夜精品| 国产91精品入口| 国产美女精品人人做人人爽| 日本欧美在线观看| 亚洲图片欧美一区| 一区二区三区在线免费视频| 国产精品久久久久久久久果冻传媒| 精品国产91洋老外米糕| 欧美一卡二卡三卡| 91精品在线免费| 91精品在线麻豆| 欧美顶级少妇做爰| 欧美丰满美乳xxx高潮www| 在线观看一区日韩| 色综合久久88色综合天天6| 99久久er热在这里只有精品15| 国产成人一级电影| 成人性生交大片免费看视频在线| 在线看日韩精品电影| 91丨porny丨国产| eeuss鲁片一区二区三区在线看| 欧美一级艳片视频免费观看| 99久久精品免费看国产免费软件| 国产精品电影院| 国产精品久久久久一区二区三区| 久久久国产精品午夜一区ai换脸| 久久久影视传媒| 国产日韩亚洲欧美综合| 欧美国产一区二区| 国产精品福利av| 亚洲精品美国一| 首页国产欧美久久| 麻豆91在线观看| 另类小说图片综合网| 国产精品综合一区二区三区| 成人性生交大片免费| 色综合天天在线| 欧美日韩色综合| 欧美xfplay| 国产午夜精品一区二区三区嫩草 | 亚洲一区视频在线| 日本va欧美va精品| 国产成人亚洲精品青草天美| 99国产精品99久久久久久| 欧美日韩美少妇| 国产精品久久久久久久蜜臀| 亚洲免费观看在线视频| 日本网站在线观看一区二区三区| 国产一区二区91| 99久久精品一区二区| 3atv一区二区三区| 国产肉丝袜一区二区| 一区二区三区四区在线免费观看| 一片黄亚洲嫩模| 久久99精品国产麻豆婷婷洗澡| 国产69精品久久777的优势| 色综合天天做天天爱| 日韩欧美中文一区| 亚洲欧美色图小说| 久久国产尿小便嘘嘘| eeuss鲁一区二区三区| 欧美一区二区网站| 国产精品理论片在线观看| 人人精品人人爱| 成人国产在线观看| 91精品国产91久久综合桃花 | 国产麻豆视频精品| 欧洲精品在线观看| 久久久久久黄色| 亚洲高清视频中文字幕| 国产精品123| 欧美一区二区三区不卡| 亚洲视频免费看| 国产精品12区| 精品久久国产字幕高潮| 亚洲综合区在线| 97se狠狠狠综合亚洲狠狠| 日韩欧美一区二区在线视频| 亚洲一区二区三区四区在线观看| 国产精品中文字幕欧美| 91精品国产91久久久久久一区二区 | 国产精品国产成人国产三级| 老汉av免费一区二区三区| 视频一区欧美日韩| 国产精品99久| 欧美一级日韩免费不卡| 亚洲综合在线第一页| av在线免费不卡| 亚洲国产高清在线观看视频| 美女一区二区久久| 欧美性生交片4| 亚洲精品久久久蜜桃| 91在线免费视频观看| 欧美国产日本视频| 国产不卡在线一区| 久久久午夜精品| 国产福利一区二区| 欧美精品一区二区三区在线 | 欧美日韩国产精选| 夜夜揉揉日日人人青青一国产精品| 国产**成人网毛片九色| 久久久精品蜜桃| 岛国av在线一区| 久久蜜桃香蕉精品一区二区三区| 久久成人精品无人区| 日韩美一区二区三区|