Project

General

Profile

« Previous | Next » 

Revision 5c4b07f0

Added by Andreas Müller over 1 year ago

ref #9359, ref #10072 final adaptations for upgrade to log4j2 in cdmlib

View differences:

cdmlib-services/src/test/java/eu/etaxonomy/cdm/api/service/NameServiceImplTest.java
18 18
import java.util.Set;
19 19
import java.util.UUID;
20 20

  
21
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
21
import org.apache.logging.log4j.LogManager;
22
import org.apache.logging.log4j.Logger;
22 23
import org.junit.Assert;
23 24
import org.junit.Ignore;
24 25
import org.junit.Test;
......
886 887
        //       -> SpecimenTypeDesignation -> Specimen2
887 888
        // Name2 -> SpecimenTypeDesignation -> Specimen2
888 889

  
889
        // Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE);
890
//      LogUtils.setLevel("org.hibernate.SQL", Level.TRACE);
891

  
890 892

  
891 893
        List<Restriction<?>> restrictions;
892 894
        Pager<TaxonName> result;
......
910 912
        result = nameService.findByTitleWithRestrictions(null, "Name2", MatchMode.EXACT, restrictions, null, null, null, null);
911 913
        assertEquals(0l, result.getCount().longValue());
912 914

  
913
        // Logger.getLogger("eu.etaxonomy.cdm.persistence.dao.hibernate.common").setLevel(Level.DEBUG);
915
        // LogUtils.setLevel("eu.etaxonomy.cdm.persistence.dao.hibernate.common", Level.DEBUG);
914 916

  
915 917
        restrictions = Arrays.asList(new Restriction<String>("typeDesignations.typeSpecimen.titleCache", MatchMode.EXACT, "Specimen2"));
916 918
        result = nameService.findByTitleWithRestrictions(null, "Name2", MatchMode.EXACT, restrictions, null, null, null, null);
......
971 973
        List<Restriction<?>> restrictions;
972 974
        Pager<TaxonName> result;
973 975

  
974
        //Logger.getLogger("org.hibernate.SQL").setLevel(Level.TRACE);
976
//      LogUtils.setLevel("org.hibernate.SQL", Level.TRACE);
977

  
975 978

  
976 979
        restrictions = Arrays.asList(new Restriction<String>("typeDesignations.typeName.titleCache", Operator.AND, null, "Name1"));
977 980
        result = nameService.findByTitleWithRestrictions(null, "Name3", MatchMode.EXACT, restrictions, null, null, null, null);

Also available in: Unified diff