Closed LeNelSoN closed 2 months ago
Hii @LeNelSoN I add the unit tests for the Scene Service which covers the following :
1.The testAddNewScene_Success() method verifies that a new scene can be added to an existing parent scene, ensuring the correct creation of the child scene and updating of the parent scene's choices.
2.The testAddNewScene_ParentSceneNotFound() method checks that an exception is thrown when attempting to add a scene to a non-existent parent.
3.The testGetSceneById_Success() and testGetSceneById_SceneNotFound() methods test the retrieval of scenes by ID, confirming successful retrieval when the scene exists and proper exception handling when it doesn't.
Also added a .gitignore file. Please let me know if there are any additional tasks or improvements that need to be addressed. I'm open to any suggestions!
Quest:
Develop unit tests for the
SceneService
class to ensure that scene management functionalities work correctly, including adding new scenes and retrieving scenes by ID.Tasks:
addNewScene
Method:The keeper of the repo 🏰