Class NameCounter


  • public class NameCounter
    extends java.lang.Object
    User: kir Class maintains counter for tests with same name.
    • Constructor Summary

      Constructors 
      Constructor Description
      NameCounter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Reset collected stats
      int incrementAndGetCountFor​(long id)
      Each call to this method with same parameter returns and increases counter, unique for given name
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NameCounter

        public NameCounter()
    • Method Detail

      • incrementAndGetCountFor

        public int incrementAndGetCountFor​(long id)
        Each call to this method with same parameter returns and increases counter, unique for given name
        Parameters:
        id - id
        Returns:
        counter of calls with this name parameter, starting from 1
      • clear

        public void clear()
        Reset collected stats