content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Mon Mar 18 01:52:51 GMT 2024
   */
  
  package com.yahoo.platform.yui.compressor;
  
  import org.junit.jupiter.api.Test;
  import static org.junit.jupiter.api.Assertions.*;
  import org.junit.jupiter.api.Timeout;
  import java.util.concurrent.TimeUnit;
  import static org.evosuite.runtime.EvoAssertions.*;
  import com.yahoo.platform.yui.compressor.YUICompressor;
  import org.evosuite.runtime.EvoRunner;
  import org.evosuite.runtime.EvoRunnerParameters;
  import org.evosuite.runtime.System;
  import org.junit.runner.RunWith;
  
  @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) 
  public class YUICompressor_ESTest extends YUICompressor_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsSystemExitException0() throws Throwable  {
        // Test that the YUICompressor main method throws an appropriate exception when given invalid arguments
        String[] arg0 = new String[1];
        arg0[0] = "--jscomp_off=checkVars --warning_level=VERBOSE";
        try {
        YUICompressor.main(arg0);
        fail("Expecting exception: System.SystemExitException");
        } catch (System.SystemExitException e) {
        // Verify that the thrown exception is an instance of SystemExitException
        verifyException("org.evosuite.runtime.System", e);}
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsSystemExitException1() throws Throwable  {
        // Given
        String[] args = new String[1];
        args[0] = "path/to/file.css";
        
        // When
        try {
        YUICompressor.main(args);
        fail("Expecting exception: System.SystemExitException");
        } catch(System.SystemExitException e) {
        
        // Then
        verifyException("org.evosuite.runtime.System", e);}
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsSystemExitException2() throws Throwable  {
        // Given: A String array containing a single element, which is a valid path to a YUI Compressor configuration file
        String[] arg0 = new String[1];
        arg0[0] = ">c5.";
        
        // When: The YUICompressor class's main method is invoked with the String array as argument
        try {
        YUICompressor.main(arg0);
        
        // Then: A SystemExitException is thrown with a non-null message, indicating that the YUI Compressor configuration file was successfully read and processed
        fail("Expecting exception: System.SystemExitException");
        } catch(System.SystemExitException e) {
        verifyException("org.evosuite.runtime.System", e);}
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsSystemExitException3() throws Throwable  {
        // No Comments were added
        String[] arg0 = new String[1];
        arg0[0] = "!@#$%^&*()_+-=[]{}|;':\"<>,./?";
        // Undeclared exception!
        try { 
          YUICompressor.main(arg0);
          fail("Expecting exception: System.SystemExitException");
        
        } catch(System.SystemExitException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("org.evosuite.runtime.System", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainWithEmptyArray() throws Throwable  {
        // No Comments were added
        String[] arg0 = new String[0];
        // Undeclared exception!
        try { 
          YUICompressor.main(arg0);
          fail("Expecting exception: System.SystemExitException");
        
        } catch(System.SystemExitException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("org.evosuite.runtime.System", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsSystemExitException4() throws Throwable  {
        // Given: An array of strings containing the command line arguments for the YUI Compressor
        String[] arg0 = new String[1];
        arg0[0] = "abc123";
        
        // When: The YUI Compressor is run with the given arguments
        try {
        YUICompressor.main(arg0);
        
        // Then: A SystemExitException should be thrown, as the program should exit with a non-zero status code
        fail("Expecting exception: System.SystemExitException");
        } catch (System.SystemExitException e) {
        // Verify that the expected exception is thrown
        verifyException("org.evosuite.runtime.System", e);}
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testCreatesYUICompressor() throws Throwable  {
        // rollbacked to evosuite
        YUICompressor yUICompressor = new YUICompressor();
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsSystemExitException5() throws Throwable  {
        // No Comments were added
        String[] arg0 = new String[1];
        arg0[0] = "--help";
        // Undeclared exception!
        try { 
          YUICompressor.main(arg0);
          fail("Expecting exception: System.SystemExitException");
        
        } catch(System.SystemExitException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("org.evosuite.runtime.System", e);
        }
    }
  }
  