# AddressTest

**URL:** https://discourse.openehr.org/t/addresstest/13234
**Category:** Reference Implementation: Java (archive)
**Created:** [19 February 2012 20:21 UTC](https://discourse.openehr.org/t/addresstest/13234 "2012-02-19T20:21:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JOAO\_LUIS\_CARDOSO\_DE](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@JOAO\_LUIS\_CARDOSO\_DE](https://discourse.openehr.org/u/JOAO_LUIS_CARDOSO_DE)
#### Post date: [19 February 2012 20:21 UTC](https://discourse.openehr.org/t/addresstest/13234/1 "2012-02-19T20:21:41Z")

</div>

Hi Hong,

How can I use the class AddressTest?

Do I need to instantiate a new object from this class?

Do you have a demo using demographic package??

Tks

Moraes

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [20 February 2012 08:09 UTC](https://discourse.openehr.org/t/addresstest/13234/2 "2012-02-20T08:09:41Z")

</div>

Hi Moraes,

I am not sure which AddressTest are you talking about. Can you be more specific?  
To be honest, I haven't done much regarding demographic classes myself.

Regards,  
Rong

---

<div class="post-metadata">

### Author: ![JOAO\_LUIS\_CARDOSO\_DE](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@JOAO\_LUIS\_CARDOSO\_DE](https://discourse.openehr.org/u/JOAO_LUIS_CARDOSO_DE)
#### Post date: [20 February 2012 11:11 UTC](https://discourse.openehr.org/t/addresstest/13234/3 "2012-02-20T11:11:40Z")

</div>

Hi Rong,

I am not sure how can I use the classes inside the packages (Test Packages). For example in java ADL Parser project there are lots of classes inside the package (se.acode.openehr.parser) like ArchetypeValidatorTest.java but those classes doesn't have the main method to execute and test the sample.  
In this case, do I need the create another classes (with the main method) to test then?

Moraes

-----Mensagem original-----

---

<div class="post-metadata">

### Author: ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)
#### Post date: [20 February 2012 15:28 UTC](https://discourse.openehr.org/t/addresstest/13234/4 "2012-02-20T15:28:16Z")

</div>

You could do that, but normally one would use JUnit to launch these testcases.  
/Rong
