Thursday, October 20, 2011

Obfuscation with run time behaviour

When obfuscating we will loose the mapping file changes that needs to get into the properties file and the xml file to do that with out fail

we need to capture all the dynamic behaviours at a JUNIT testcase which will fail and will alert the user that we need to find these references and change them once all obfuscation is done.

then re run the all junit again.


prahalad.das.core.Employee is mapped in XML file

Then we need to add a test case :
// This will check that we dont forget to change the Employee.hbm.xml
// before we obfuscate the code.
assertEquals( "prahalad.das.core.Employee" , Employee.class.getName( ) ) ;

Once this starts failing we check for references like "prahalad.das.core.Employee" in the whole project in all kinds of file.



No comments:

Post a Comment