Skip to main content

Importing a NucleotideSequenceDocument for tests

Comments

4 comments

  • Official comment
    Tom Edwards

    Hi Pam,

    We think we've identified that the problem is coming from two things:

    • The test is running in a different working directory than what the other plugins normally run in.
    • The geneious file which you want to import contains a note.

    These things combined are we believe causing the failure, the best way to fix this is to change the run configuration. In IntelliJ, this can be done via the Edit Configurations menu and ensuring that the Working Directory setting is set to $MODULE_DIR$\..\GeneiousFiles which is the same value that the other example plugins use. Here is a picture which may help:

  • Tom Edwards

    Hi Pam,

    Unfortunately we can't see an obvious solution as we can't reproduce the problem on our end but here are some possible things to try and see if that fixes the problem for you.

    • Try add this ServiceUtilities line after the following 2 lines 
      TestGeneious.initialize();
      TestGeneious.initializeAllPlugins();
      ServiceUtilities.waitForGeneiousServiceInitializationToComplete();

       

    • Instead of using both TestGeneious.initialize() and 
      TestGeneious.initializeAllPlugins(), try using only TestGeneious.initializeAllPlugins()

     

    Let us know if that works for you and if not, we are happy to dive a bit deeper into what's going wrong.

    Cheers,
    Tom

    0
  • Pamela Russell

    Hi Tom,

    Thanks for your help! With these two updates, I am still getting the same `NullPointerException`.

    Is there perhaps another way to read a `.geneious` file into a `NucleotideSequenceDocument`?

    Thanks,

    Pam

    0
  • Pamela Russell

    Updating the working directory solved it. Thank you!

    0

Please sign in to leave a comment.