Feature #1264

Implement Resetting of Properties to Default Values in RSBJava

Added by S. Wrede over 11 years ago. Updated over 11 years ago.

Status:ResolvedStart date:11/26/2012
Priority:NormalDue date:
Assignee:S. Wrede% Done:

100%

Category:Java
Target version:rsb-0.9

Description

Currently, there is no option to properly re-initialize the RSBJava properties. This is required, e.g., for a clean Unit-Testing Environment and also if the network configuration changes (as for example on mobile devices).

Associated revisions

Revision bebcbc43
Added by S. Wrede over 11 years ago

added reset method to Properties class and test case, fixes #1264

History

#1 Updated by S. Wrede over 11 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset rsb-java|commit:bebcbc43b10a8d3dfedd682fe2d8f54fc8b66718.

#2 Updated by S. Wrede over 11 years ago

@Johannes: Could you check if the unit testing problem still exists? I tried to decorate the PropertiesTest with the @After annotation but I am not sure if that works. In particular as I didn't get an email last time about failing tests.

#3 Updated by J. Wienke over 11 years ago

Seems to work. The problem especially occurred if you launched the tests using Eclipse as then the runner executes all tests in a single process and the changed port broke the remaining tests based in spread.

#4 Updated by D. Klotz over 11 years ago

I can also confirm this for the Maven build, which had the same problem as Eclipse (i.e. executing all the unit tests in the same JVM process), I removed the "fix" for this (forking a new JVM for each test in the Maven build) in commit:56a4aee8

Also available in: Atom PDF