【问题标题】:@TestPropertySource annotation alternative on a method level方法级别的@TestPropertySource 注释替代方案
【发布时间】:2016-06-21 02:40:45
【问题描述】:
@TestPropertySource(locations="classpath:test.properties")
public class Aclass {}

是否有替代方法在方法中使用测试实例的属性。

@Test
public void aMethod(){}

【问题讨论】:

    标签: java spring testing annotations spring-test


    【解决方案1】:

    这仍然是不可能的,但如果你想关注它,这个功能有一个open issue

    【讨论】:

      猜你喜欢
      • 2014-11-05
      • 1970-01-01
      • 2023-03-12
      • 2019-02-01
      • 2019-12-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多