blob: c014a4d7c6d113b737834d02d8a22f42d36a4d2f [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.netbeans.modules.j2ee.sun.ide.editors.ui;
import java.awt.Font;
import junit.framework.TestCase;
/**
*
* @author vkraemer
*/
public class MultiLineFieldTest extends TestCase {
public void testCoverage() {
MultiLineField mlf = new MultiLineField();
mlf = new MultiLineField("a\nb");
mlf.useMonospacedFont(true);
mlf.setFont(new Font("Serif",Font.BOLD,32));
mlf.addNotify();
mlf.setText("c d");
mlf.setText(new String[] { "abc","123" });
mlf.setError(true);
mlf.setBounds(0,0, 300, 100);
mlf.getAccessibleContext();
mlf.getMinimumSize();
mlf.getPreferredSize();
mlf.getText();
}
public MultiLineFieldTest(String testName) {
super(testName);
}
/**
* Test of setInsets method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testSetInsets() {
System.out.println("testSetInsets");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of useMonospacedFont method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testUseMonospacedFont() {
System.out.println("testUseMonospacedFont");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of addNotify method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testAddNotify() {
System.out.println("testAddNotify");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of getPreferredSize method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testGetPreferredSize() {
System.out.println("testGetPreferredSize");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of getMinimumSize method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testGetMinimumSize() {
System.out.println("testGetMinimumSize");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of setSize method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testSetSize() {
System.out.println("testSetSize");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of setBounds method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testSetBounds() {
System.out.println("testSetBounds");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of paint method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testPaint() {
System.out.println("testPaint");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of setText method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testSetText() {
System.out.println("testSetText");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of getText method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testGetText() {
System.out.println("testGetText");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of setError method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testSetError() {
System.out.println("testSetError");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
/**
* Test of getAccessibleContext method, of class org.netbeans.modules.j2ee.sun.ide.editors.ui.MultiLineField.
*
public void testGetAccessibleContext() {
System.out.println("testGetAccessibleContext");
// TODO add your test code below by replacing the default call to fail.
fail("The test case is empty.");
}
// TODO add test methods here, they have to start with 'test' name.
// for example:
// public void testHello() {}
*/
}