Fix tests
This commit is contained in:
parent
433cd83357
commit
ff7c3c934c
3 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ class UonetTest {
|
|||
.build().create()
|
||||
)
|
||||
|
||||
val certificate = register.getCertificate(TOKEN, PIN, DEVICE_NAME)
|
||||
val certificate = register.getCertificate(TOKEN, PIN, DEVICE_NAME, "8.1.0")
|
||||
val certSubscriber = TestObserver<CertificateResponse>()
|
||||
certificate.subscribe(certSubscriber)
|
||||
certSubscriber.assertComplete()
|
||||
|
|
|
@ -20,9 +20,9 @@ class RoutingRulesRepositoryTest {
|
|||
@Test
|
||||
fun getRouteByToken() {
|
||||
server.enqueue(MockResponse().setBody(RoutingRulesRepositoryTest::class.java.getResource("RoutingRules.txt").readText()))
|
||||
server.start(3000)
|
||||
server.start(3030)
|
||||
|
||||
val repo = RoutingRulesRepository(getRetrofitBuilder().baseUrl("http://localhost:3000").build().create())
|
||||
val repo = RoutingRulesRepository(getRetrofitBuilder().baseUrl("http://localhost:3030").build().create())
|
||||
val route = repo.getRouteByToken("KA200000").blockingGet()
|
||||
|
||||
assertEquals("https://uonetplus-komunikacja-test.mcuw.katowice.eu", route)
|
||||
|
|
|
@ -10,7 +10,7 @@ class ScrapperTest : BaseLocalTest() {
|
|||
|
||||
@Test
|
||||
fun changeTest() {
|
||||
server.enqueue(MockResponse().setBody(AttendanceSummaryTest::class.java.getResource("Frekwencja.html").readText()))
|
||||
server.enqueue(MockResponse().setBody(AttendanceSummaryTest::class.java.getResource("Przedmioty.json").readText()))
|
||||
server.start(3000) //
|
||||
|
||||
val api = Scrapper().apply {
|
||||
|
|
Loading…
Reference in a new issue