# JUnit Testing is broken!

**URL:** <https://techcommunity.softwareag.com/t/junit-testing-is-broken/57594>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [February 21, 2007, 2:16am UTC](https://techcommunity.softwareag.com/t/junit-testing-is-broken/57594 "2007-02-21T02:16:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephan](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@stephan](https://techcommunity.softwareag.com/u/stephan)\
**Post date:** [February 21, 2007, 2:16am UTC](https://techcommunity.softwareag.com/t/junit-testing-is-broken/57594/1 "2007-02-21T02:16:23Z")

</div>

Hi,  
I want to add JUnit tests to my adapters, but the documentation is outdated.  
It is described in: [http://developer.softwareag.com/tech/cai/knowhow/CISInfo\_JUnitTesting.pdf](http://developer.softwareag.com/tech/cai/knowhow/CISInfo_JUnitTesting.pdf)

But the Params class is changed, some guessing does not help:

```auto
 System.setProperty("cis.home",	"/opt/glassfish/domains/domain1/applications/j2ee-modules/cisepoq/cis/"); Params.setWebAppContextPath("/opt/glassfish/domains/domain1/applications/j2ee-modules/cisepoq/cis/"); 
CISConfig.initSingleton();
```

turn to:  
java.lang.Error: Could not read file nullcis/config/cisconfig.xml  
at com.softwareag.cis.file.FileManager.readTextFileIntoString(Unknown Source)

please help.

Thanks  
Stephan

---

<div class="post-metadata">

**Author:** ![Martin\_Grumann](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Martin\_Grumann](https://techcommunity.softwareag.com/u/Martin_Grumann)\
**Post date:** [February 23, 2007, 3:19pm UTC](https://techcommunity.softwareag.com/t/junit-testing-is-broken/57594/2 "2007-02-23T15:19:35Z")

</div>

use…

- Params.init

…instead of…

- Params.setWebAppContextPath

Your coding looks like this:

```auto

System.setProperty("cis.home", "/opt/glassfish/.../cisepoq/cis/");            
Params.init("/opt/glassfish/.../cisepoq/cis/",
            "/opt/glassfish/.../cislog", // <== log dir (optional)
	         null);
CISConfig.initSingleton();
```

That’s what I also see within the linked PDF document (“Starting the AD Runtime”).?..

Martin

---

<div class="post-metadata">

**Author:** ![stephan](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@stephan](https://techcommunity.softwareag.com/u/stephan)\
**Post date:** [February 23, 2007, 9:26pm UTC](https://techcommunity.softwareag.com/t/junit-testing-is-broken/57594/3 "2007-02-23T21:26:32Z")

</div>



---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/junit-testing-is-broken/57594/4 "2021-04-02T14:38:44Z")

</div>


