package org.kuorum.provider.mysql.repository.communication.participatoryBudget;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.kuorum.provider.mysql.repository.domain.DomainRepository;
import org.kuorum.provider.mysql.repository.user.CauseRepository;
import org.kuorum.provider.mysql.repository.user.CrmUserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:spring/spring-provider-mysql-config.xml", "classpath:spring/spring-provider-H2-config-test.xml" })
@Transactional
public class ParticipatoryBudgetRepositoryTest {

    @Autowired
    CrmUserRepository crmUserRepository;

    @Autowired
    ParticipatoryBudgetRepository participatoryBudgetRepository;

    @Autowired
    CauseRepository causeMysqlRepository;

    @Autowired
    DomainRepository domainRepository;

    @Test
    public void testParticipatoryBudgetData() {
        Assert.assertEquals("No correct particiaptory budgets on DDBB",1,participatoryBudgetRepository.count());
    }
}
