Relative Content

Tag Archive for javaspringtestingreflectiondependencies

Testing Multiple Classes with Dependecies with Reflections

we’re recently building a java-compiler for college and need to test our compiled files with java reflections. I’ve had no problem with this tool until now. We need to test if multiple files with dependecies to each other are working. So we have two byte[], one of them contains the class, which I want to test, the other one contains a class from which the first one has an object (down below). I want to generate a Class Object out of these files on which I can execute methods like “getDeclaredConstructors”. The Class Object should contain the first class. But I have the problem, that I can’t figure out how to make it work. Do you think you can help me?