content: /*
   * This file was automatically generated by UTestGen and EvoSuite
   * Sun Mar 17 20:40:20 GMT 2024
   */
  
  package com.eteks.sweethome3d.viewcontroller;
  
  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.eteks.sweethome3d.model.Home;
  import com.eteks.sweethome3d.model.UserPreferences;
  import com.eteks.sweethome3d.swing.SwingViewFactory;
  import com.eteks.sweethome3d.viewcontroller.ContentManager;
  import com.eteks.sweethome3d.viewcontroller.RoomController;
  import javax.swing.undo.UndoableEditSupport;
  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 RoomController_ESTest extends RoomController_ESTest_scaffolding {
  
    @Test
    @Timeout(value = 4000 , unit = TimeUnit.MILLISECONDS)
    public void testFailsToCreateRoomControllerThrowsNullPointerException() throws Throwable  {
        // Given: A new instance of Home
        Home home = new Home();
        
        // And: A new SwingViewFactory instance
        SwingViewFactory swingViewFactory = new SwingViewFactory();
        
        // And: A new UndoableEditSupport instance
        UndoableEditSupport undoableEditSupport = new UndoableEditSupport();
        
        // When: The RoomController is created with a null UserPreferences parameter
        RoomController roomController = null;
        try {
        roomController = new RoomController(home, (UserPreferences) null, swingViewFactory, (ContentManager) null, undoableEditSupport);
        fail("Expecting exception: NullPointerException");
        } catch(NullPointerException e) {
        // Then: Verify that the exception is thrown as expected
        verifyException("com.eteks.sweethome3d.viewcontroller.RoomController", e);}
    }
  }
  