如何在 dspace/modules/additions 中为 类 设置单元测试?

How to set up unit tests for classes in dspace/modules/additions?

我想为我放入 dspace/modules/additions 的管理任务设置单元测试。 我使用 intelliJ IDEA 并尝试配置 sourcestests 文件夹。我想使用以下文件夹结构,但无法在 intelliJ 中正确配置。

 [] DSpace Source Folder
   [] dspace
     [] modules
        [] additions    
           [] src
              [] main
                 [] java
                    […]
              [] test
                 [] java
                    […]
        [] jspui
        [] oai
        [] rdf
        […] 

这个结构合理吗?
我如何配置 intelliJ 的项目结构中的文件夹,以便它识别我的测试文件夹?

如果我尝试在 IntelliJ 的项目结构中将其标记为 "Test Source Folder",我会收到以下错误消息:

Source root "/.../DSpace6/dspace/modules/additions/src/test" cannot be defined in module "dspace" because it belongs to content of nested module "additions"

在 IntelliJ 的 project structure 中,我选择了 dspace 模块,然后从该模块中选择了 additions 模块。这导致了我的问题中描述的错误消息。

但是 additions 模块也作为它自己的模块出现在 project structure 的根级别。在这一点上,我可以按预期定义 Test Source Folders