예제 #1
0
  /** test the construction of the object in the ApplicationContext */
  public final void testObjectConstruction() {

    // get a member from the application context
    Address address = CoreObjectFactory.getAddress();

    assertEquals("City", null, address.getCity());
    assertEquals("Country", null, address.getCountry());
    assertEquals("PostalCode", null, address.getPostalCode());
    assertEquals("StreetName", null, address.getStreetName());
    assertEquals("StreetNumber", null, address.getStreetNumber());
  }
예제 #2
0
  /*
   * @see TestCase#setUp()
   */
  protected void setUp() throws Exception {
    super.setUp();

    address = CoreObjectFactory.getAddress();
  }