title: Accessing static variables in a test package
body: <p>I am working on a project in NetBeans and my project is made using JavaFX,Java and mysql. I have a controller class for every display page(fxml file) that has some static variables. When I try to access those static variables anywhere within the source package I successfully get their current values but when I try doing so from the test package it returns a null value or zero value. I am writing some junit tests and I need those current values of the static variables as the tests test those values.What should I do? Any suggestion would be helpful.
  To be specific I have two display pages that calculate salary of an employee -one takes input from the user such as basic salary, other allowances and it's controller class stores those values in static variables accessed in the second page controller class to calculate net salary. The variable basicsalary shows zero value in the junit test class at the same time shows the correct value when accessed in salary2 class(the display page controller). I wish to access it's current value in the test class as well. </p>