Package de.mhus.lib.test.form

Examples of de.mhus.lib.test.form.StaticForm


public class FormTest extends TestCase {

 
  public void testStaticForm() throws Exception {
    StaticForm target = new StaticForm();
    MFormModel model = new FormModelBuilder( MSingleton.instance().getActivator(), target, FormModelBuilder.DEFAULT_SCHEMA );

    target.setInput("string");
    model.loadFromTarget();
    assertEquals("string", ((FString)model.getElement("input")).getValue());
   
    ((FString)model.getElement("input")).setValue("newstring");
    assertNotSame("set", "newstring", target.getInput());
   
    model.saveToTarget(false);
    assertEquals("newstring", ((FString)model.getElement("input")).getValue());

    try {
View Full Code Here


   
  }
 
  public void testNls() throws Exception {
   
    StaticForm target = new StaticForm();
    MFormModel model = new FormModelBuilder( MSingleton.instance().getActivator(), target, FormModelBuilder.DEFAULT_SCHEMA );

    FObject input = model.getElement("input");
    String inputTitle = input.findTitle();
   
View Full Code Here

TOP

Related Classes of de.mhus.lib.test.form.StaticForm

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.