Coverage Report - org.org.usurper.setup.constants.UsurperGeneratorConstants
 
Classes in this File Line Coverage Branch Coverage Complexity
UsurperGeneratorConstants
90 %
18/20
N/A
0
 
 1  
 /*
 2  
  ORG Usurper is a random value object generator library 
 3  
  Copyright (C) 2007  Pierre-Antoine GrĂ©goire
 4  
  
 5  
  This library is free software; you can redistribute it and/or
 6  
  modify it under the terms of the GNU Lesser General Public
 7  
  License as published by the Free Software Foundation; either
 8  
  version 2.1 of the License, or (at your option) any later version.
 9  
  
 10  
  This library is distributed in the hope that it will be useful,
 11  
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 13  
  Lesser General Public License for more details.
 14  
  
 15  
  You should have received a copy of the GNU Lesser General Public
 16  
  License along with this library; if not, write to the Free Software
 17  
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 18  
  */
 19  
 package org.org.usurper.setup.constants;
 20  
 
 21  
 import java.util.Collections;
 22  
 import java.util.HashSet;
 23  
 import java.util.Set;
 24  
 
 25  
 import org.org.usurper.handlers.basic.AbstractPropertyTypeHandler;
 26  
 import org.org.usurper.handlers.defaults.BooleanPropertyTypeHandler;
 27  
 import org.org.usurper.handlers.defaults.BytePropertyTypeHandler;
 28  
 import org.org.usurper.handlers.defaults.CharacterPropertyTypeHandler;
 29  
 import org.org.usurper.handlers.defaults.DatePropertyTypeHandler;
 30  
 import org.org.usurper.handlers.defaults.DoublePropertyTypeHandler;
 31  
 import org.org.usurper.handlers.defaults.FloatPropertyTypeHandler;
 32  
 import org.org.usurper.handlers.defaults.IntegerPropertyTypeHandler;
 33  
 import org.org.usurper.handlers.defaults.ListAndSetPropertyTypeHandler;
 34  
 import org.org.usurper.handlers.defaults.LongPropertyTypeHandler;
 35  
 import org.org.usurper.handlers.defaults.MapPropertyTypeHandler;
 36  
 import org.org.usurper.handlers.defaults.ShortPropertyTypeHandler;
 37  
 import org.org.usurper.handlers.defaults.StringPropertyTypeHandler;
 38  
 import org.org.usurper.handlers.sql.TimestampPropertyTypeHandler;
 39  
 
 40  
 /**
 41  
  * This is a final non-instanciable class referencing the constants used for Usurper setup.
 42  
  */
 43  
 public final class UsurperGeneratorConstants {
 44  
 
 45  0
     private UsurperGeneratorConstants() {
 46  0
     }
 47  
 
 48  
     /** Default entries count for arrays and collections. */
 49  1
     public static final Integer DEFAULT_ENTRIES_COUNT = 10;
 50  
 
 51  
     /** Default property handlers for basic types. */
 52  
     public static final Set<AbstractPropertyTypeHandler> DEFAULT_PROPERTY_HANDLERS;
 53  
 
 54  
     static {
 55  1
         Set<AbstractPropertyTypeHandler> temporarySet = new HashSet<AbstractPropertyTypeHandler>();
 56  1
         temporarySet.add(new IntegerPropertyTypeHandler());
 57  1
         temporarySet.add(new FloatPropertyTypeHandler());
 58  1
         temporarySet.add(new DoublePropertyTypeHandler());
 59  1
         temporarySet.add(new LongPropertyTypeHandler());
 60  1
         temporarySet.add(new ShortPropertyTypeHandler());
 61  1
         temporarySet.add(new BooleanPropertyTypeHandler());
 62  1
         temporarySet.add(new BytePropertyTypeHandler());
 63  1
         temporarySet.add(new CharacterPropertyTypeHandler());
 64  1
         temporarySet.add(new StringPropertyTypeHandler());
 65  1
         temporarySet.add(new DatePropertyTypeHandler());
 66  1
         temporarySet.add(new ListAndSetPropertyTypeHandler());
 67  1
         temporarySet.add(new MapPropertyTypeHandler());
 68  1
         temporarySet.add(new org.org.usurper.handlers.sql.DatePropertyTypeHandler());
 69  1
         temporarySet.add(new TimestampPropertyTypeHandler());
 70  1
         DEFAULT_PROPERTY_HANDLERS = Collections.unmodifiableSet(temporarySet);
 71  1
     }
 72  
 }