मैंने लिखा है के लिए कक्षाओं प्रोसेस नहीं कर सकता:परीक्षण निम्न स्थानों और संदर्भ विन्यास
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:META-INF/dataContext.xml"},classes = Configiuration.class)
@ActiveProfiles("test")
public class CityDaoImplTest {
....
}
मैं xml फ़ाइल से और जावा वर्ग बर से विन्यास का उपयोग करने जब मैं आह्वान
mvn परीक्षण मैं में निम्नलिखित इसे देख की जरूरत है कंसोल:
Tests in error:
initializationError(***.CityDaoImplTest): Cannot process locations AND classes for context configuration [[email protected] declaringClass = '***.CityDaoImplTest', classes = '{***.Configiuration}', locations = '{classpath:META-INF/dataContext.xml}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader']; configure one or the other, but not both.
कॉन्फ़िगरेशन कॉन्फ़िगरेशन के बिना इसे कैसे ठीक किया जाए?
मेरी पोम से: 4.0.7.RELEASE –
gstackoverflow