Class SurefireProperties

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>, org.apache.maven.surefire.booter.KeyValueSource

    public class SurefireProperties
    extends java.util.Properties
    implements org.apache.maven.surefire.booter.KeyValueSource
    A Properties implementation that preserves insertion order.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.Properties

        defaults
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addList​(java.util.List<?> items, java.lang.String propertyPrefix)  
      void clear()  
      java.util.Collection<java.lang.String> copyPropertiesFrom​(java.util.Map<java.lang.String,​java.lang.String> source)
      Copies all keys and values from source to these properties, overwriting existing properties with same name
      java.util.Collection<java.lang.String> copyPropertiesFrom​(java.util.Properties source)
      Copies all keys and values from source to these properties, overwriting existing properties with same name
      void copyTo​(java.util.Map<java.lang.Object,​java.lang.Object> target)  
      void copyToSystemProperties()  
      java.lang.Iterable<java.lang.Object> getStringKeySet()  
      java.util.Enumeration<java.lang.Object> keys()  
      static SurefireProperties loadProperties​(java.io.File file)  
      java.util.Set<java.lang.Object> propertiesThatCannotBeSetASystemProperties()  
      java.lang.Object put​(java.lang.Object key, java.lang.Object value)  
      void putAll​(java.util.Map<?,​?> t)  
      java.lang.Object remove​(java.lang.Object key)  
      void setClasspath​(java.lang.String prefix, org.apache.maven.surefire.booter.Classpath classpath)  
      void setNullableProperty​(java.lang.String key, java.lang.String value)  
      void setProperty​(java.lang.String key, int value)  
      void setProperty​(java.lang.String key, java.io.File file)  
      void setProperty​(java.lang.String key, java.lang.Boolean aBoolean)  
      void setProperty​(java.lang.String key, java.lang.Long value)  
      • Methods inherited from class java.util.Properties

        clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SurefireProperties

        public SurefireProperties()
      • SurefireProperties

        public SurefireProperties​(java.util.Properties source)
      • SurefireProperties

        public SurefireProperties​(org.apache.maven.surefire.booter.KeyValueSource source)
    • Method Detail

      • putAll

        public void putAll​(java.util.Map<?,​?> t)
        Specified by:
        putAll in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        putAll in class java.util.Properties
      • put

        public java.lang.Object put​(java.lang.Object key,
                                    java.lang.Object value)
        Specified by:
        put in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        put in class java.util.Properties
      • remove

        public java.lang.Object remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        remove in class java.util.Properties
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        clear in class java.util.Properties
      • keys

        public java.util.Enumeration<java.lang.Object> keys()
        Overrides:
        keys in class java.util.Properties
      • copyPropertiesFrom

        public java.util.Collection<java.lang.String> copyPropertiesFrom​(java.util.Properties source)
        Copies all keys and values from source to these properties, overwriting existing properties with same name
        Parameters:
        source -
        Returns:
        all overwritten property names (may be empty if there was no property name clash)
      • copyPropertiesFrom

        public java.util.Collection<java.lang.String> copyPropertiesFrom​(java.util.Map<java.lang.String,​java.lang.String> source)
        Copies all keys and values from source to these properties, overwriting existing properties with same name
        Parameters:
        source -
        Returns:
        all overwritten property names (may be empty if there was no property name clash)
      • getStringKeySet

        public java.lang.Iterable<java.lang.Object> getStringKeySet()
      • propertiesThatCannotBeSetASystemProperties

        public java.util.Set<java.lang.Object> propertiesThatCannotBeSetASystemProperties()
      • copyToSystemProperties

        public void copyToSystemProperties()
      • copyTo

        public void copyTo​(java.util.Map<java.lang.Object,​java.lang.Object> target)
        Specified by:
        copyTo in interface org.apache.maven.surefire.booter.KeyValueSource
      • setProperty

        public void setProperty​(java.lang.String key,
                                java.io.File file)
      • setProperty

        public void setProperty​(java.lang.String key,
                                java.lang.Boolean aBoolean)
      • setProperty

        public void setProperty​(java.lang.String key,
                                int value)
      • setProperty

        public void setProperty​(java.lang.String key,
                                java.lang.Long value)
      • addList

        public void addList​(java.util.List<?> items,
                            java.lang.String propertyPrefix)
      • setClasspath

        public void setClasspath​(java.lang.String prefix,
                                 org.apache.maven.surefire.booter.Classpath classpath)
      • loadProperties

        public static SurefireProperties loadProperties​(java.io.File file)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • setNullableProperty

        public void setNullableProperty​(java.lang.String key,
                                        java.lang.String value)