Java: Subpackage visibility?

后端 未结 9 1488
予麋鹿
予麋鹿 2020-11-29 02:06

I have two packages in my project: odp.proj and odp.proj.test. There are certain methods that I want to be visible only to the classes in these two

9条回答
  •  星月不相逢
    2020-11-29 02:57

    When I do this in IntelliJ, my source tree looks like this:

    src         // source root
    - odp
       - proj   // .java source here
    - test      // test root
      - odp
         - proj // JUnit or TestNG source here
    

提交回复
热议问题