خرید بک لینک

Vote count: 0

Junit 4.12 and i have following test classes,

class A{
set all the profiles based on available properties
}

@IfProfileValue(name = "spring.profiles.active", values = {"dev"})
class B{
//Test method and autowired properties
}

Currently Class B getting run before class A so IfProfileValue gets failes so it never runs the test cases inside class B. Is there anyway in spring-test to run the junit class based on condition.

asked 37 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 12 مرداد 1395 ساعت: 0:26

صفحه بندی