2013-08-14 6 views
5

specs2를 사용하려고하는데 scala.concurrent.duration._에서 가져온 것과 섞인 암시 적 변환에 문제가 있습니다. 암시 적 변환을 범위에서 제외하는 방법이 있습니까?org.spec2.time에서 암시 적 시간 변환을 제외하고 직접 사용할 수있는 방법이 있습니까?

import org.specs2.mutable.Specification 
import scala.concurrent.duration._ 

class StatisticsSampleCacheSpec extends Specification { 

    val map: Map[Long, Duration] = Map(
     1L -> 5.minute, 
     3L -> 3.day, 
     5L -> 5.day, 
     7L -> 30.day) 
} 

답변