Passing JUnit command line parameters in eclipse

前端 未结 4 1067
南旧
南旧 2021-01-12 10:11

I have recently been using junit in eclipse and I am still learning. I know how to pass command line parameters in eclipse, but how do I pass them to a test case in Junit?

4条回答
  •  孤街浪徒
    2021-01-12 10:27

    I will skip passing as somebody has already replied with that. To access you use:

    System.getProperty("propert.name.here");
    

    (returns String)

提交回复
热议问题