类 ExpectedCount


  • public class ExpectedCount
    extends Object
    A simple type representing a range for an expected count.

    Examples:

     import static org.springframework.test.web.client.ExpectedCount.*
    
     once()
     manyTimes()
     times(5)
     min(2)
     max(4)
     between(2, 4)
     never()
     
    从以下版本开始:
    4.3
    作者:
    Rossen Stoyanchev
    • 方法详细资料

      • getMinCount

        public int getMinCount()
        Return the min boundary of the expected count range.
      • getMaxCount

        public int getMaxCount()
        Return the max boundary of the expected count range.
      • never

        public static ExpectedCount never()
        No calls expected at all, i.e. min=0 and max=0.
        从以下版本开始:
        4.3.6
      • between

        public static ExpectedCount between​(int min,
                                            int max)
        Between min and max number of times.