So you want to set the akka's scheduler's base/start/`now` time? 在 2014年11月22日星期六UTC+8上午5时57分40秒,Bilal Günay写道: > > Hi, > > i am testing my application but i need to modify actual date. I am using > in whole application my custom now() method instead of > System.currentTimeMillis(), so i can test more flexible. > I am using akka scheduler but while scheduling jobs, > System.currentTimeMillis will be used and if i set times in past in my > tests, jobs will be executed immediately.I manage this using setNow before > my tests but i can not do it while using akka. > > i can not set any date to return by System.currentTimeMillis. Is there any > solution provided by akka? > > Kind regards, > > bilal >
-- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
