summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/quantum/src/test/java/org/openecomp/portalsdk/core/MockHibernateMappingLocations.java
blob: a7de5159cf5b861df59686f2f905b7332e39fe14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package org.openecomp.portalsdk.core;



import org.openecomp.portalsdk.core.conf.HibernateMappingLocatable;
import org.springframework.context.annotation.Profile;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;

@Component
@Profile("test")
public class MockHibernateMappingLocations implements HibernateMappingLocatable{
	
	public Resource[] getMappingLocations() {
		return new Resource[]{new ClassPathResource("WEB-INF/fusion/orm/Fusion.hbm.xml"), new ClassPathResource("WEB-INF/fusion/orm/Workflow.hbm.xml")};
	}
     

}