Project

General

Profile

« Previous | Next » 

Revision e41f49d0

Added by Andreas Kohlbecker over 6 years ago

silencing chatty test

View differences:

cdmlib-persistence/src/test/java/eu/etaxonomy/cdm/persistence/dao/hibernate/taxon/TaxonDaoHibernateImplTest.java
985 985
        groups.add(new GroupByCount("count",SortOrder.DESCENDING));
986 986
        groups.add(new Grouping("name.genusOrUninomial", "genus", "n", SortOrder.ASCENDING));
987 987
        List<Object[]> results = taxonDao.group(null, null, null, groups,null);
988
        System.out.println("count\tname.genuOrUninomial");
989
        for(Object[] result : results) {
990
            System.out.println(result[0] + "\t" + result[1]);
988
        if(logger.isTraceEnabled()){
989
            System.out.println("count\tname.genuOrUninomial");
990
            for(Object[] result : results) {
991
                System.out.println(result[0] + "\t" + result[1]);
992
            }
991 993
        }
992 994
    }
993 995

  
......
998 1000
        groups.add(new GroupByCount("count",SortOrder.DESCENDING));
999 1001
        groups.add(new Grouping("class", "class",null, SortOrder.ASCENDING));
1000 1002
        List<Object[]> results = taxonDao.group(null, null, null, groups,null);
1001
        System.out.println("count\tclass");
1002
        for(Object[] result : results) {
1003
            System.out.println(result[0] + "\t" + result[1]);
1003
        if(logger.isTraceEnabled()){
1004
            System.out.println("count\tclass");
1005
            for(Object[] result : results) {
1006
                System.out.println(result[0] + "\t" + result[1]);
1007
            }
1004 1008
        }
1005 1009
    }
1006 1010

  
......
1011 1015
        orderHints.add(new NativeSqlOrderHint("case when {alias}.titleCache like 'C%' then 0 else 1 end",SortOrder.ASCENDING));
1012 1016

  
1013 1017
        List<TaxonBase> results = taxonDao.list(null, null, orderHints);
1014
        System.out.println("native SQL order");
1015
        for(TaxonBase<?> result : results) {
1016
            System.out.println(result.getTitleCache());
1018
        if(logger.isTraceEnabled()){
1019
            System.out.println("native SQL order");
1020
            for(TaxonBase<?> result : results) {
1021
                System.out.println(result.getTitleCache());
1022
            }
1017 1023
        }
1018 1024
    }
1019 1025

  
......
1024 1030
        groups.add(new GroupByCount("count",null));
1025 1031
        groups.add(new GroupByDate("created", "dateGroup", SortOrder.ASCENDING, GroupByDate.Resolution.MONTH));
1026 1032
        List<Object[]> results = taxonDao.group(null, null, null, groups,null);
1027
        System.out.println("count\tyear\tmonth");
1028
        for(Object[] result : results) {
1029
            System.out.println(result[0] + "\t" + result[1] + "\t" + result[2]);
1033
        if(logger.isTraceEnabled()){
1034
            System.out.println("count\tyear\tmonth");
1035
            for(Object[] result : results) {
1036
                System.out.println(result[0] + "\t" + result[1] + "\t" + result[2]);
1037
            }
1030 1038
        }
1031 1039
    }
1032 1040

  

Also available in: Unified diff