|
13 | 13 | */
|
14 | 14 | package org.orbeon.oxf.fr
|
15 | 15 |
|
16 |
| -import org.orbeon.connection.{BufferedContent, StreamedContent} |
17 |
| -import org.orbeon.oxf.http.HttpMethod |
| 16 | +import cats.syntax.option.* |
| 17 | +import org.orbeon.connection.StreamedContent |
18 | 18 | import org.orbeon.oxf.test.TestHttpClient.{CacheEvent, StaticState}
|
19 | 19 | import org.orbeon.oxf.test.{DocumentTestBase, ResourceManagerSupport}
|
20 |
| -import org.orbeon.oxf.util.PathUtils |
| 20 | +import org.orbeon.oxf.util.* |
21 | 21 | import org.orbeon.oxf.xforms.state.XFormsStaticStateCache
|
22 | 22 | import org.scalatest.funspec.AnyFunSpecLike
|
23 |
| -import org.orbeon.oxf.util.* |
24 | 23 |
|
25 | 24 |
|
26 | 25 | class CacheTest
|
@@ -53,15 +52,15 @@ class CacheTest
|
53 | 52 | .map(_._1.template.isDefined)
|
54 | 53 |
|
55 | 54 | // First time may or may not pass
|
56 |
| - val (_, _, events1) = runFormRunner("tests", form, mode, document = Id1, query = query, content = content, initialize = true) |
| 55 | + val (_, _, events1) = runFormRunner("tests", form, mode, documentId = Id1.some, query = query, content = content, initialize = true) |
57 | 56 |
|
58 | 57 | it(s"initial hit `$expectedInitialHit` for $form/$mode/${PathUtils.encodeSimpleQuery(query)}") {
|
59 | 58 | assert(staticStateFoundOpt(events1).contains(expectedInitialHit))
|
60 | 59 | // NOTE: no XFCD because the form has `xxf:no-updates="true"`.
|
61 | 60 | }
|
62 | 61 |
|
63 | 62 | // Second time with different document must always pass
|
64 |
| - val (_, _, events2) = runFormRunner("tests", form, mode, document = Id2, query = query, content = content, initialize = true) |
| 63 | + val (_, _, events2) = runFormRunner("tests", form, mode, documentId = Id2.some, query = query, content = content, initialize = true) |
65 | 64 |
|
66 | 65 | it(s"second hit `true` for $form/$mode/${PathUtils.encodeSimpleQuery(query)}") {
|
67 | 66 | assert(staticStateFoundOpt(events2).contains(true))
|
|
0 commit comments