1
静的classRuleにSpring Beanを挿入する方法は?静的classRuleにSpring Beanを挿入する方法は?
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {ConfigClass.class})
public class SimpleTest {
@ClassRule
public static SimpleClassRule simpleClassRule = new SimpleClassRule();
}
'SimpleClassRule'に' org.springframework.test.context.junit4.rules.SpringClassRule'を拡張する必要がありますか? – vegaasen