Preheat { public boolean isEmpty() { return map.isEmpty(); } Preheat(); User getUser(); String getUsername(); void setUser( User user ); T get( PreheatIdentifier identifier, Class<? extends IdentifiableObject> klass, IdentifiableObject object ); @SuppressWarnings( "unchecked" ) T get( PreheatIdentifier identifier, Class<? extends IdentifiableObject> klass, String key ); @SuppressWarnings( "unchecked" ) List<T> getAll( PreheatIdentifier identifier, List<T> keys ); @SuppressWarnings( "unchecked" ) T get( PreheatIdentifier identifier, T object ); boolean containsKey( PreheatIdentifier identifier, Class<? extends IdentifiableObject> klass, String key ); boolean isEmpty(); boolean isEmpty( PreheatIdentifier identifier ); boolean isEmpty( PreheatIdentifier identifier, Class<? extends IdentifiableObject> klass ); @SuppressWarnings( "unchecked" ) Preheat put( PreheatIdentifier identifier, T object ); @SuppressWarnings( "unchecked" ) Preheat replace( PreheatIdentifier identifier, T object ); Preheat put( PreheatIdentifier identifier, Collection<T> objects ); Preheat remove( PreheatIdentifier identifier, Class<? extends IdentifiableObject> klass, String key ); @SuppressWarnings( "unchecked" ) Preheat remove( PreheatIdentifier identifier, IdentifiableObject object ); Preheat remove( PreheatIdentifier identifier, Class<? extends IdentifiableObject> klass, Collection<String> keys ); Map<PreheatIdentifier, Map<Class<? extends IdentifiableObject>, Map<String, IdentifiableObject>>> getMap(); Map<Class<? extends IdentifiableObject>, IdentifiableObject> getDefaults(); void setDefaults( Map<Class<? extends IdentifiableObject>, IdentifiableObject> defaults ); void setUniquenessMap( Map<Class<? extends IdentifiableObject>, Map<String, Map<Object, String>>> uniquenessMap ); Map<Class<? extends IdentifiableObject>, Map<String, Map<Object, String>>> getUniquenessMap(); Map<String, Period> getPeriodMap(); void setPeriodMap( Map<String, Period> periodMap ); Map<String, PeriodType> getPeriodTypeMap(); void setPeriodTypeMap( Map<String, PeriodType> periodTypeMap ); Map<Class<?>, Set<String>> getMandatoryAttributes(); void setMandatoryAttributes( Map<Class<?>, Set<String>> mandatoryAttributes ); Map<Class<?>, Set<String>> getUniqueAttributes(); void setUniqueAttributes( Map<Class<?>, Set<String>> uniqueAttributes ); Map<Class<?>, Map<String, Map<String, String>>> getUniqueAttributeValues(); void setUniqueAttributeValues( Map<Class<?>, Map<String, Map<String, String>>> uniqueAttributeValues ); static Class<?> getRealClass( Class<?> klass ); static boolean isDefaultClass( IdentifiableObject object ); static boolean isDefaultClass( Class<?> klass ); boolean isDefault( IdentifiableObject object );  }
@Test public void testAllEmpty() { Preheat preheat = new Preheat(); assertTrue( preheat.isEmpty() ); assertTrue( preheat.isEmpty( PreheatIdentifier.UID ) ); assertTrue( preheat.isEmpty( PreheatIdentifier.CODE ) ); }