I'm currently working on a JUnit Test that checks the values of Global Variables. Now the problem is, if I try to get the Global Variable Value using this line of code: String var = Ivy.var().get("BASEDEF_PORTAL_SESSION_TIMEOUT"); the test immediately crashes. Is there a way to access the IvyContext in a JUnit test.

asked 11.05.2016 at 16:56

Joel17's gravatar image

Joel17
11113
accept rate: 0%


Currently the access to the Ivy context is not weakly supported. But there is a solution documented here: http://answers.axonivy.com/questions/166/solution-how-to-unit-test

link

answered 31.05.2016 at 12:03

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
8.0k11650
accept rate: 69%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×109
×2

Asked: 11.05.2016 at 16:56

Seen: 740 times

Last updated: 31.05.2016 at 12:03