

package com.mmnaseri.dragonfly.sample.cases;

import com.mmnaseri.dragonfly.data.PartialDataAccess;
import com.mmnaseri.dragonfly.sample.assets.PeopleCounter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Milad Naseri (mmnaseri@programmer.net)
 * @since 1.0 (2013/9/21, 15:12)
 */
@Service
public class CountPeopleTest extends BaseTestCase {

    @Autowired
    private PartialDataAccess dataAccess;

    @Override
    public void run() {
        final List<PeopleCounter> counters = dataAccess.executeQuery(PeopleCounter.class);
        expect(counters).toHaveSize(1);
        expect(counters.get(0)).not().toBeNull();
    }

}
