package edu.umd.cs.piccolox.swt;

import junit.framework.TestCase;

public class PSWTTextTest extends TestCase {
    private PSWTText testNode;

    public void setUp() {
        testNode = new PSWTText();
    }

    
    public void testTextPersistsTrainingAndInternalNewlines() {
        testNode.setText("Hello\nWorld\n\n");
        assertEquals("Hello\nWorld\n\n", testNode.getText());
    }


}

package edu.umd.cs.piccolox.swt;

import junit.framework.TestCase;

public class PSWTTextTest extends TestCase {
    private PSWTText testNode;

    public void setUp() {
        testNode = new PSWTText();
    }

    public void testTextPersistsTrainingAndInternalNewlines() {
        // TODO: Make this work in headless mode if possible.
        // testNode.setText("Hello\nWorld\n\n");
        // assertEquals("Hello\nWorld\n\n", testNode.getText());
    }

}

Test added doesn't work in headless. Will need to figure something out. Otherwise SWT module will remain untestable.
Test added doesn't work in headless. Will need to figure something out. Otherwise SWT module will remain untestable.

git-svn-id: d976a3fa9fd96fa05fb374ae920b691bf85e82cb@730 aadc08cf-1350-0410-9b51-cf97fce99a1b
