Package diva.util.jester

Examples of diva.util.jester.TestCase


    //// Test methods

    /** Test the nullary constructor
     */
    public void testConstructor1() {
        runTestCase(new TestCase("JCanvas constructor 1") {
            JCanvas canvas;

            public void run() throws Exception {
                canvas = factory.createJCanvas();
            }
View Full Code Here


    }

    /** Test the constructor that takes a pane
     */
    public void testConstructor2() {
        runTestCase(new TestCase("JCanvas constructor 2") {
            JCanvas canvas;

            CanvasPane pane = new BasicCanvasPane();

            public void run() throws Exception {
View Full Code Here

    //// Test methods

    /** Perform the simple set/get tests.
     */
    public void testProperties() {
        runTestCase(new TestCase("Figure properties") {
            Figure figure;

            Interactor r = new DragInteractor();

            public void init() throws Exception {
View Full Code Here

    public void testPaint() {
        final BufferedImage buffer = new BufferedImage(100, 100,
                BufferedImage.TYPE_INT_RGB);
        final Graphics2D g = buffer.createGraphics();

        runTestCase(new TestCase("Figure paint") {
            Figure figure;

            AffineTransform at1;

            AffineTransform at2;
View Full Code Here

    }

    /** Test how transforms affect the figure
     */
    public void testTransform() {
        runTestCase(new TestCase("Figure transform") {
            Figure figure;

            AffineTransform at;

            Shape shape;
View Full Code Here

    }

    /** Test how translates affect the figure
     */
    public void testTranslate() {
        runTestCase(new TestCase("Figure translate") {
            Figure figure;

            Shape shape;

            Rectangle2D bounds;
View Full Code Here

    //// Test methods

    /** Perform tests on an empty graph.
     */
    public void testEmpty() {
        runTestCase(new TestCase("Empty graph") {
            //BasicGraphModel g;

            public void init() throws Exception {
                /*g = */factory.createGraph();
            }
View Full Code Here

    }

    /** Test a star-connected graph.
     */
    public void testStarConnected() {
        runTestCase(new TestCase("Star-connected from single node") {
            BasicGraphModel g;

            CompositeNode root;

            public void init() throws Exception {
View Full Code Here

     * seems to hang after running this test. Presumably there's
     * a problem with the diva.graph package (apart from the bug
     * that won't even let you get the number of nodes).
     */
    public void testBig() {
        runTestCase(new TestCase("Test 64 knode graph") {
            BasicGraphModel g;

            CompositeNode root;

            //Node[] nodes = new Node[65536];
View Full Code Here

    //// Test methods

    /** Test construction of XMLParser
     */
    public void testParse() {
        runTestCase(new TestCase("XMLParse parse") {
            URL url;

            XmlReader reader;

            XmlWriter writer;
View Full Code Here

TOP

Related Classes of diva.util.jester.TestCase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.