Class NameCounter


  • public class NameCounter
    extends Object
    User: kir Class maintains counter for tests with same name.
    • 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