How to assert greater than using JUnit Assert?

前端 未结 8 891
你的背包
你的背包 2020-12-25 09:04

I have these values coming from a test

previousTokenValues[1] = \"1378994409108\"
currentTokenValues[1] = \"1378994416509\"

and I try

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 09:48

    You should add Hamcrest-library to your Build Path. It contains the needed Matchers.class which has the lessThan() method.

    Dependency as below.

    
      org.hamcrest
      hamcrest-library
      1.3
      test
    
    

提交回复
热议问题