Package buri.ddmsence.ddms.resource

Examples of buri.ddmsence.ddms.resource.Person.toText()


    PropertyReader.setProperty("output.indexLevel", "0");
    assertEquals("entityType: person\nname: Brian\nname: BU\nphone: 703-885-1000\nsurname: Uri\n", person.toText());

    PropertyReader.setProperty("output.indexLevel", "1");
    assertEquals("entityType: person\nname[1]: Brian\nname[2]: BU\nphone: 703-885-1000\nsurname: Uri\n",
      person.toText());

    PropertyReader.setProperty("output.indexLevel", "2");
    assertEquals("entityType: person\nname[1]: Brian\nname[2]: BU\nphone[1]: 703-885-1000\nsurname: Uri\n",
      person.toText());
  }
View Full Code Here


    assertEquals("entityType: person\nname[1]: Brian\nname[2]: BU\nphone: 703-885-1000\nsurname: Uri\n",
      person.toText());

    PropertyReader.setProperty("output.indexLevel", "2");
    assertEquals("entityType: person\nname[1]: Brian\nname[2]: BU\nphone[1]: 703-885-1000\nsurname: Uri\n",
      person.toText());
  }

  @Test
  public void testExtensibleFailure() throws InvalidDDMSException {
    // No failure cases to test right now.
View Full Code Here

    List<String> names = Util.getXsListAsList("Brian BU");
    List<String> phones = Util.getXsListAsList("703-885-1000");
    Person person = new Person(names, "Uri", phones, null, null, null);

    PropertyReader.setProperty("output.indexLevel", "0");
    assertEquals("entityType: person\nname: Brian\nname: BU\nphone: 703-885-1000\nsurname: Uri\n", person.toText());

    PropertyReader.setProperty("output.indexLevel", "1");
    assertEquals("entityType: person\nname[1]: Brian\nname[2]: BU\nphone: 703-885-1000\nsurname: Uri\n",
      person.toText());
View Full Code Here

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.