コード例 #1
0
ファイル: AddressTest.java プロジェクト: arnaudol/agile
  /** 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
ファイル: AddressTest.java プロジェクト: arnaudol/agile
  /*
   * @see TestCase#setUp()
   */
  protected void setUp() throws Exception {
    super.setUp();

    address = CoreObjectFactory.getAddress();
  }