io.tracee.testhelper
Class SimpleTraceeBackend

java.lang.Object
  extended by io.tracee.testhelper.SimpleTraceeBackend
All Implemented Interfaces:
TraceeBackend

public class SimpleTraceeBackend
extends Object
implements TraceeBackend

A testhelper for TraceeBackend dependent tests.


Constructor Summary
SimpleTraceeBackend(TraceeFilterConfiguration configuration)
           
 
Method Summary
 void clear()
           
 boolean containsKey(String key)
           
 Map<String,String> copyToMap()
           
static SimpleTraceeBackend createNonLoggingAllPermittingBackend()
           
 String get(String key)
           
 TraceeFilterConfiguration getConfiguration()
           
 TraceeFilterConfiguration getConfiguration(String profileName)
          
This implementation ignores profiles and always uses the default configuration.
 String getInvocationId()
           
 String getSessionId()
           
 Map<String,String> getValuesBeforeLastClear()
           
 boolean isEmpty()
           
 void put(String key, String value)
           
 void putAll(Map<? extends String,? extends String> m)
           
 void remove(String key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTraceeBackend

public SimpleTraceeBackend(TraceeFilterConfiguration configuration)
Method Detail

createNonLoggingAllPermittingBackend

public static SimpleTraceeBackend createNonLoggingAllPermittingBackend()

getConfiguration

public TraceeFilterConfiguration getConfiguration(String profileName)

This implementation ignores profiles and always uses the default configuration.

Specified by:
getConfiguration in interface TraceeBackend

getConfiguration

public TraceeFilterConfiguration getConfiguration()
Specified by:
getConfiguration in interface TraceeBackend

containsKey

public boolean containsKey(String key)
Specified by:
containsKey in interface TraceeBackend

get

public String get(String key)
Specified by:
get in interface TraceeBackend

size

public int size()
Specified by:
size in interface TraceeBackend

clear

public void clear()
Specified by:
clear in interface TraceeBackend

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TraceeBackend

put

public void put(String key,
                String value)
Specified by:
put in interface TraceeBackend

putAll

public void putAll(Map<? extends String,? extends String> m)
Specified by:
putAll in interface TraceeBackend

copyToMap

public Map<String,String> copyToMap()
Specified by:
copyToMap in interface TraceeBackend

remove

public void remove(String key)
Specified by:
remove in interface TraceeBackend

getInvocationId

public String getInvocationId()
Specified by:
getInvocationId in interface TraceeBackend

getSessionId

public String getSessionId()
Specified by:
getSessionId in interface TraceeBackend

getValuesBeforeLastClear

public Map<String,String> getValuesBeforeLastClear()


Copyright © 2013-2016 Holisticon AG. All Rights Reserved.