jasmine.framework.test.context.AppTestContext Maven / Gradle / Ivy
package jasmine.framework.test.context;
import jasmine.framework.context.CurrentSubject;
import jasmine.framework.test.constant.TestConstants;
import org.junit.Before;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.transaction.annotation.Transactional;
/**
*
* 支持 Spring 应用测试(提供租户相关支持)。
*
*
* @author mh.z
*/
@Transactional(rollbackFor = Exception.class)
@ContextConfiguration(locations = "classpath:/jasmine/framework/test/config/springContext.xml")
public class AppTestContext {
@Before
public void initOrResetBeforeTest() {
CurrentSubject.setSubject(TestConstants.TEST_TENANT_ID_1, TestConstants.TEST_USER_ID_UNKNOWN);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy