Class JsonImporterTest

java.lang.Object
utils.JsonImporterTest

public class JsonImporterTest extends Object
Unit tests for the JsonImporter utility.
  • Constructor Details

    • JsonImporterTest

      public JsonImporterTest()
      Public no-arg constructor required by the test framework.
  • Method Details

    • testImportProjectsFromJsonFile

      @Test public void testImportProjectsFromJsonFile() throws IOException
      Verify importing a JSON file with a single project entry.
      Throws:
      IOException - when writing or reading the temporary file fails
    • testImportEmptyFileReturnsEmptyList

      @Test public void testImportEmptyFileReturnsEmptyList() throws IOException
      Verify importing an empty JSON array returns an empty list.
      Throws:
      IOException - when writing or reading the temporary file fails