I am refactoring and porting our Geneious plugin for Geneious Prime.
I have an enum class that is pretty central to all code within the plugin. But while the enum constants initialize (i.e. in the private constructor) Geneious APIs like
are called. These of course implicitly execute database DML.
Therefore I can't see how to create unit tests for other classes that directly or indirectly depend on this enum class (pretty much all).
I have tried TestGeneious.initialize() and TestGeneious.initializeAllPlugins() in my JUnit @BeforeClass method. But that didn't work.
How should I go about this?
Please sign in to leave a comment.