X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjalview%2Fbin%2FHiDPISettingTest1.java;h=f737c9237fe21e098b033a2dab44540ca19c35d9;hb=82eb22b5c4cc991fad95822c71ab3ed90da759a6;hp=4561ff407083a691716347baeaec9aba5fcfa77d;hpb=c53c009b7b31a886e20c913801940c24a2c652c6;p=jalview.git diff --git a/test/jalview/bin/HiDPISettingTest1.java b/test/jalview/bin/HiDPISettingTest1.java index 4561ff4..f737c92 100644 --- a/test/jalview/bin/HiDPISettingTest1.java +++ b/test/jalview/bin/HiDPISettingTest1.java @@ -62,8 +62,8 @@ public class HiDPISettingTest1 Cache.loadProperties("test/jalview/bin/hidpiTestProps.jvprops"); Jalview.main( new String[] - { "-nosplash", "-nonews", "-noquestionnaire", - "-nowebservicediscovery" }); + { "--nosplash", "--nonews", "--noquestionnaire", + "--nowebservicediscovery" }); af = new FileLoader().LoadFileWaitTillLoaded("examples/uniref50.fa", DataSourceType.FILE); @@ -85,7 +85,8 @@ public class HiDPISettingTest1 @AfterClass(alwaysRun = true) public void tearDown() { - Desktop.instance.closeAll_actionPerformed(null); + if (Desktop.instance != null) + Desktop.instance.closeAll_actionPerformed(null); } @Test(groups = { "Functional" })