ItEr38S17ArquitecturaServidorItEr37S07: OrderModelTest needed to load spring security config file.
I couldn't guess the reason. From eclipse the tests pass, but not from maven.
This commit is contained in:
parent
8a6a9fb41f
commit
36eb8823fe
2 changed files with 6 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
package org.navalplanner.web;
|
||||
|
||||
|
||||
/**
|
||||
* A class containing constants for global names.
|
||||
*
|
||||
|
|
@ -32,4 +33,6 @@ public class WebappGlobalNames {
|
|||
|
||||
public final static String WEBAPP_SPRING_CONFIG_FILE = "classpath:/navalplanner-webapp-spring-config.xml";
|
||||
|
||||
public final static String WEBAPP_SPRING_SECURITY_CONFIG_FILE = "classpath:/navalplanner-webapp-spring-security-config.xml";
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import static org.junit.Assert.assertThat;
|
|||
import static org.junit.Assert.assertTrue;
|
||||
import static org.navalplanner.business.BusinessGlobalNames.BUSINESS_SPRING_CONFIG_FILE;
|
||||
import static org.navalplanner.web.WebappGlobalNames.WEBAPP_SPRING_CONFIG_FILE;
|
||||
import static org.navalplanner.web.WebappGlobalNames.WEBAPP_SPRING_SECURITY_CONFIG_FILE;
|
||||
import static org.navalplanner.web.test.WebappGlobalNames.WEBAPP_SPRING_CONFIG_TEST_FILE;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
|
@ -74,7 +75,8 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
*/
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(locations = { BUSINESS_SPRING_CONFIG_FILE,
|
||||
WEBAPP_SPRING_CONFIG_FILE, WEBAPP_SPRING_CONFIG_TEST_FILE })
|
||||
WEBAPP_SPRING_CONFIG_FILE, WEBAPP_SPRING_CONFIG_TEST_FILE,
|
||||
WEBAPP_SPRING_SECURITY_CONFIG_FILE })
|
||||
@Transactional
|
||||
public class OrderModelTest {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue