1 19 package org.netbeans.core.startup; 20 21 import org.netbeans.junit.NbTestCase; 22 23 27 public class CLIOptionsTest extends NbTestCase { 28 29 public CLIOptionsTest(String testName) { 30 super(testName); 31 } 32 33 public void testNoSplash() { 34 new CLIOptions().cli(new String [] { "--branding", "noexiting" }); 35 assertFalse("Splash is on in default branding", CLIOptions.isNoSplash()); 36 37 CLIOptions.defaultsLoaded = false; 38 new CLIOptions().cli(new String [] { "--branding", "nosplash" }); 39 assertTrue("this branding disables the splash", CLIOptions.isNoSplash()); 40 41 CLIOptions.defaultsLoaded = false; 42 new CLIOptions().cli(new String [] { "--branding", "noexiting", "--nosplash"}); 43 assertTrue("Splash is explicitly disabled", CLIOptions.isNoSplash()); 44 } 45 46 } 47 | Popular Tags |