Class PropertiesWrapper

java.lang.Object
org.apache.maven.surefire.booter.PropertiesWrapper
All Implemented Interfaces:
KeyValueSource

public class PropertiesWrapper extends Object implements KeyValueSource
Author:
Kristian Rosenvold
  • Constructor Details

    • PropertiesWrapper

      public PropertiesWrapper(Map<String,String> properties)
  • Method Details

    • getProperties

      public Map<String,String> getProperties()
    • setAsSystemProperties

      public void setAsSystemProperties()
    • getProperty

      public String getProperty(String key)
    • getBooleanProperty

      public boolean getBooleanProperty(String propertyName)
    • getIntProperty

      public int getIntProperty(String propertyName)
    • getLongProperty

      public Long getLongProperty(String propertyName)
    • getFileProperty

      public File getFileProperty(String key)
    • getStringList

      public List<String> getStringList(String propertyPrefix)
    • getTypeEncodedValue

      public TypeEncodedValue getTypeEncodedValue(String key)
      Retrieves as single object that is persisted with type encoding
      Parameters:
      key - The key for the propery
      Returns:
      The object, of a supported type
    • setClasspath

      public void setClasspath(String prefix, Classpath classpath)
    • setProperty

      public void setProperty(String key, String value)
    • addList

      public void addList(List items, String propertyPrefix)
    • copyTo

      public void copyTo(Map<Object,Object> target)
      Specified by:
      copyTo in interface KeyValueSource