test-spring-context.xml

47 lines | 1.822 kB Blame History Raw Download
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:util="http://www.springframework.org/schema/util"
	xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context-3.0.xsd
        http://www.springframework.org/schema/util
        http://www.springframework.org/schema/util/spring-util-3.0.xsd
        ">

  <import resource="classpath:/spring/spring-context.xml" />


  <bean id="datasource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    <property name="driverClassName" value="${db.driverClass}" />
    <property name="url" value="${db.jdbcUrl}" />
    <property name="username" value="${db.user}" />
    <property name="password" value="${db.password}" />
  </bean>


  <context:component-scan base-package="com.salesmanager.test" />

  <util:properties id="shopizer-properties">
    			<prop key="MULTIPLE_PRICE_AVAILABILITY">false</prop>
    			<prop key="INDEX_PRODUCTS">false</prop>
				<!-- Images -->
				<prop key="PRODUCT_IMAGE_WIDTH_SIZE">350</prop>
				<prop key="PRODUCT_IMAGE_HEIGHT_SIZE">375</prop>
				<prop key="CROP_UPLOADED_IMAGES">false</prop>
				
				<!-- upload image validations -->
				<prop key="PRODUCT_IMAGE_MAX_HEIGHT_SIZE">2000</prop>
				<prop key="PRODUCT_IMAGE_MAX_WIDTH_SIZE">4000</prop>
				<prop key="PRODUCT_IMAGE_MAX_SIZE">9000000</prop>
				<prop key="IMAGE_FORMATS">jpg|png|gif</prop>
				
				<prop key="POPULATE_TEST_DATA">true</prop>

  </util:properties>

</beans>