X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fbin%2FCommandsTest2.java;h=d6b6f3c2ed63d86ac647b6ab0c740e2b5a656ee5;hb=bf2b9bfde805dbd7ea0dc38e70532204b68071ed;hp=dc7d061ceb995ecaf86aea4f1af6a3b57d70edc6;hpb=94175f47370a77a29184067438d77f11baae759e;p=jalview.git diff --git a/test/jalview/bin/CommandsTest2.java b/test/jalview/bin/CommandsTest2.java index dc7d061..d6b6f3c 100644 --- a/test/jalview/bin/CommandsTest2.java +++ b/test/jalview/bin/CommandsTest2.java @@ -26,7 +26,7 @@ public class CommandsTest2 @BeforeClass(alwaysRun = true) public static void setUpBeforeClass() throws Exception { - Cache.loadProperties("test/jalview/bin/commandsTest2.jvprops"); + Cache.loadProperties("test/jalview/bin/commandsTest.jvprops"); Date oneHourFromNow = new Date( System.currentTimeMillis() + 3600 * 1000); Cache.setDateProperty("JALVIEW_NEWS_RSS_LASTMODIFIED", oneHourFromNow); @@ -51,8 +51,7 @@ public class CommandsTest2 @AfterMethod(alwaysRun = true) public void tearDown() { - if (Desktop.instance != null) - Desktop.instance.closeAll_actionPerformed(null); + Desktop.closeDesktop(); } @Test( @@ -65,15 +64,19 @@ public class CommandsTest2 { String[] args = cmdLine.split("\\s+"); - Jalview.main(args); - try + CommandsTest.callJalviewMain(args); + while (Desktop.instance!=null && Desktop.instance.operationsAreInProgress()) { - // sleep for slow build server to open annotations and viewer windows - Thread.sleep(seqNum * 50 + annNum * 50 + viewerNum * 500); - } catch (InterruptedException e) - { - e.printStackTrace(); + try + { + // sleep for slow build server to open annotations and viewer windows + Thread.sleep(viewerNum * 50); + } catch (InterruptedException e) + { + e.printStackTrace(); + } } + ; AlignFrame[] afs = Desktop.getAlignFrames(); Assert.assertNotNull(afs); @@ -131,57 +134,78 @@ public class CommandsTest2 String cmdLine, int seqNum, int annNum, - int viewerNum, - String propsFile + int structureViewerNum, */ return new Object[][] { // /* */ - { "--nonews --nosplash --debug " + "--append=examples/uniref50.fa " + { "--gui --nonews --nosplash --debug " + + "--append=examples/uniref50.fa " + "--colour=gecos-flower " + "--structure=[seqid=FER1_SPIOL]examples/AlphaFold/AF-P00221-F1-model_v4.cif " + "--paematrix=examples/AlphaFold/AF-P00221-F1-predicted_aligned_error_v4.json " + "--props=test/jalview/bin/commandsTest2.jvprops1 ", 15, 7, 1 }, - { "--nonews --nosplash --debug " + "--append=examples/uniref50.fa " + { "--gui --nonews --nosplash --debug " + + "--append=examples/uniref50.fa " + "--colour=gecos-flower " + "--structure=[seqid=FER1_SPIOL]examples/AlphaFold/AF-P00221-F1-model_v4.cif " + "--paematrix=examples/AlphaFold/AF-P00221-F1-predicted_aligned_error_v4.json " + "--props=test/jalview/bin/commandsTest2.jvprops2 ", 15, 4, 1 }, - { "--nonews --nosplash --debug " + "--append=examples/uniref50.fa " + { "--gui --nonews --nosplash --debug " + + "--append=examples/uniref50.fa " + "--colour=gecos-flower " + "--structure=[seqid=FER1_SPIOL]examples/AlphaFold/AF-P00221-F1-model_v4.cif " + "--paematrix=examples/AlphaFold/AF-P00221-F1-predicted_aligned_error_v4.json " - + "--nossannotations " + + "--noshowssannotations " + "--props=test/jalview/bin/commandsTest2.jvprops1 ", 15, 4, 1 }, - { "--nonews --nosplash --debug " + "--append=examples/uniref50.fa " + { "--gui --nonews --nosplash --debug " + + "--append=examples/uniref50.fa " + "--colour=gecos-flower " + "--structure=[seqid=FER1_SPIOL]examples/AlphaFold/AF-P00221-F1-model_v4.cif " + "--paematrix=examples/AlphaFold/AF-P00221-F1-predicted_aligned_error_v4.json " - + "--noannotations " + + "--noshowannotations " + "--props=test/jalview/bin/commandsTest2.jvprops1 ", 15, 3, 1 }, - { "--nonews --nosplash --debug " + "--append=examples/uniref50.fa " + { "--gui --nonews --nosplash --debug " + + "--append=examples/uniref50.fa " + "--colour=gecos-flower " + "--structure=[seqid=FER1_SPIOL]examples/AlphaFold/AF-P00221-F1-model_v4.cif " + "--paematrix=examples/AlphaFold/AF-P00221-F1-predicted_aligned_error_v4.json " - + "--noannotations " + "--nossannotations " + + "--noshowannotations " + "--noshowssannotations " + "--props=test/jalview/bin/commandsTest2.jvprops1 ", 15, 0, 1 }, - { "--nonews --nosplash --debug " + "--append=examples/uniref50.fa " + { "--gui --nonews --nosplash --debug " + + "--append=examples/uniref50.fa " + "--colour=gecos-flower " + "--structure=[seqid=FER1_SPIOL]examples/AlphaFold/AF-P00221-F1-model_v4.cif " + "--paematrix=examples/AlphaFold/AF-P00221-F1-predicted_aligned_error_v4.json " - + "--noannotations " + "--nossannotations " + + "--noshowannotations " + "--noshowssannotations " + "--props=test/jalview/bin/commandsTest2.jvprops1 ", 15, 0, 1 }, - { "--nonews --nosplash --debug --nowebservicediscovery --props=test/jalview/bin/commandsTest.jvprops --argfile=test/jalview/bin/commandsTest2.argfile1 ", + { "--gui --nonews --nosplash --debug --nowebservicediscovery --props=test/jalview/bin/commandsTest.jvprops --argfile=test/jalview/bin/commandsTest2.argfile1 ", 16, 19, 3 }, - { "--nonews --nosplash --debug --nowebservicediscovery --props=test/jalview/bin/commandsTest.jvprops --argfile=test/jalview/bin/commandsTest2.argfile2 ", + { "--gui --nonews --nosplash --debug --nowebservicediscovery --props=test/jalview/bin/commandsTest.jvprops --argfile=test/jalview/bin/commandsTest2.argfile2 ", 16, 0, 2 }, + { "--gui --nonews --nosplash --debug --nowebservicediscovery --props=test/jalview/bin/commandsTest.jvprops --open=./examples/test_fab41.result/sample.a2m " + + "--allstructures " + + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb " + + "--structureviewer=none " + + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_2_model_4.pdb " + + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_3_model_2.pdb", + 16, 10, 0 }, + { "--gui --nonews --nosplash --debug --nowebservicediscovery --props=test/jalview/bin/commandsTest.jvprops --open=./examples/test_fab41.result/sample.a2m " + + "--allstructures " + + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_1_model_3.pdb " + + "--noallstructures " + "--structureviewer=none " + + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_2_model_4.pdb " + + "--structure=./examples/test_fab41.result/test_fab41_unrelaxed_rank_3_model_2.pdb", + 16, 10, 2 }, + /* + */ // }; }