use of eu.europa.ec.fisheries.ers.fa.dao.proxy.FaCatchSummaryCustomProxy in project UVMS-ActivityModule-APP by UnionVMS.
the class FaCatchDaoTest method testGetFACatchSummaryReportString.
@Test
public void testGetFACatchSummaryReportString() throws Exception {
dbSetupTracker.skipNextLaunch();
FishingActivityQuery query = new FishingActivityQuery();
Map<SearchFilter, String> searchCriteriaMap = new HashMap<>();
List<GroupCriteria> groupByFields = new ArrayList<>();
groupByFields.add(GroupCriteria.DATE_MONTH);
groupByFields.add(GroupCriteria.SPECIES);
query.setGroupByFields(groupByFields);
searchCriteriaMap.put(SearchFilter.SOURCE, "FLUX");
query.setSearchCriteriaMap(searchCriteriaMap);
// FACatchSummaryHelper faCatchSummaryHelper = FACatchSummaryHelper.createFACatchSummaryHelper();
// System.out.println( faCatchSummaryHelper.printJsonstructure(query));
Map<FaCatchSummaryCustomProxy, List<FaCatchSummaryCustomProxy>> faCatchSummaryCustomEntityListMap = dao.getGroupedFaCatchData(query, false);
assertNotNull(faCatchSummaryCustomEntityListMap);
}
use of eu.europa.ec.fisheries.ers.fa.dao.proxy.FaCatchSummaryCustomProxy in project UVMS-ActivityModule-APP by UnionVMS.
the class FaCatchSummaryCustomProxyTest method testEqualsAndHashCode1.
@Test
public void testEqualsAndHashCode1() {
FaCatchSummaryCustomProxy proxy1 = new FaCatchSummaryCustomProxy();
proxy1.setEffortZone("eff");
proxy1.setFaoArea("fao");
FaCatchSummaryCustomProxy proxy2 = new FaCatchSummaryCustomProxy();
proxy2.setEffortZone("eff");
proxy2.setFaoArea("fao");
assertTrue(proxy2.equals(proxy1));
}
Aggregations