mercredi 22 juin 2016

Dynamic class creation - Java

Is there a way to dynamically create a class having a string containing the code of the class or maybe adding a method in the same way to an existing class previously created?

Use case scenario: A student is doing an exam in which he has to write some methods without an IDE (So he submits a simple string). What i want to achieve is a way to execute a simple unit test on his submission. For example a clickable button to run unit test back-provided by the professor.

Sorry for my bad english and thanks in advance!





Aucun commentaire:

Enregistrer un commentaire