All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jasmine.framework.test.context.AppTestContext Maven / Gradle / Ivy

There is a newer version: 1.3.8
Show newest version
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