Package tests.jfun.yan.xml

Source Code of tests.jfun.yan.xml.ExpansionTestCase

package tests.jfun.yan.xml;

import tests.jfun.yan.xml.models.Apple;
import tests.jfun.yan.xml.models.Human;
import tests.jfun.yan.xml.models.Orange;

public class ExpansionTestCase extends BaseConfigurationTest {
  public void test1()
  throws Throwable{
    runTest("test/yan/test_expansion.xml");
    super.yan.getInstance("tests.jfun.yan.xml.models.Apple");
    super.yan.getInstance("tests.jfun.yan.xml.models.Orange");
    super.yan.getInstance("tests.jfun.yan.xml.models.orange");
    final Apple apple = (Apple)super.yan.getInstance("tests.jfun.yan.xml.models.apple");
    final Human human = (Human)yan.getInstance("human");
    assertSame(apple, human.getFruit());
    assertEquals(3, Apple.getInstances());
    assertEquals(3, Orange.getInstances());
   
  }
}
TOP

Related Classes of tests.jfun.yan.xml.ExpansionTestCase

TOP
Copyright © 2018 www.massapi.com. 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.