コード例 #1
0
  /**
   * Test get phone number string with Blank.
   *
   * @throws Exception the exception
   */
  public void testGetPhoneNumberStringWithBlank() throws Exception {
    PhoneCallRandomization phoneCallRandomization = new PhoneCallRandomization();
    phoneCallRandomization.setPhoneNumber("");

    String retValue = phoneCallRandomization.getPhoneNumberString();
    assertTrue(retValue.equals(""));
  }
コード例 #2
0
  /**
   * Test get phone number string with hyphens.
   *
   * @throws Exception the exception
   */
  public void testGetPhoneNumberStringWithHyphens() throws Exception {
    PhoneCallRandomization phoneCallRandomization = new PhoneCallRandomization();
    phoneCallRandomization.setPhoneNumber(NUM_WITH_HYPHENS);

    String retValue = phoneCallRandomization.getPhoneNumberString();
    assertTrue(retValue.equals(NUM_WITH_HYPHENS));
  }