content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Thu Mar 21 10:08:07 GMT 2024
   */
  
  package com.jstevh.viewer;
  
  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.jstevh.viewer.ClassViewer;
  import java.awt.HeadlessException;
  import org.evosuite.runtime.EvoRunner;
  import org.evosuite.runtime.EvoRunnerParameters;
  import org.junit.runner.RunWith;
  
  @RunWith(EvoRunner.class) @EvoRunnerParameters(mockJVMNonDeterminism = true, useVFS = true, useVNET = true, resetStaticState = true, separateClassLoader = true) 
  public class ClassViewer_ESTest extends ClassViewer_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsNullPointerException() throws Throwable  {
        // No Comments were added
        String[] arg0 = new String[1];
        try { 
          ClassViewer.main(arg0);
          fail("Expecting exception: NullPointerException");
        
        } catch(NullPointerException e) {
           //
           // no message in exception (getMessage() returned null)
           //
           verifyException("com.jstevh.viewer.ClassViewer", e);
        }
    }
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testMainThrowsHeadlessException() throws Throwable  {
        // Given
        String[] args = new String[0];
        
        // When
        try {
        ClassViewer.main(args);
        fail("Expecting exception: HeadlessException");
        } catch (HeadlessException e) {
        // Then
        verifyException("java.applet.Applet", e);}
    }
  }
  