Set System propery to Null in Java

In my unit tests I need to set the "workingDir" system property to Null.

But I can not do somesing like this, because It give me NullPointerException:

System.setProperty("workingDir", null);

How can I do it?


You can't set a property to have an actual null value - you can only clear it, like this:


Need Your Help

Access the id of the Button from Datagrird to out side?

actionscript-3 datagrid flex3 flex4

I have a button inside the DataGrid using ItemRenderer I want to access the button id inside the click handler. How can I do this?

python 2.7: reading a file only up to a known line

python-2.7 file-io

If I wanted to read starting from a given line I can do:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.