Oliver Rümpelein
d2dc84a17b
- You can now return "all" data available - The use of `Order.NAME_2` has been found and the item has been change to - `ORIGINAL_NAME` to reflect this - All `Order`-types now have their designated DSL method - It is now possible to search for items starting with a term - `inversion()` Order method has been renamed to `inversions()`
28 lines
709 B
Kotlin
28 lines
709 B
Kotlin
package de.pheerai.rcdbquery.dsl
|
|
|
|
import de.pheerai.rcdbquery.dataMappings.Vendor
|
|
import de.pheerai.rcdbquery.dataMappings.sortBy
|
|
import de.pheerai.rcdbquery.dataMappings.vendors
|
|
import kotlin.test.Test
|
|
import kotlin.test.assertEquals
|
|
|
|
class RcdbQueryDslTest {
|
|
@Test
|
|
fun testQueryParamBuilder() {
|
|
assertEquals(
|
|
"https://www.rcdb.com/r.htm?mk=6836,6856,6905&order=24,30&ot=2",
|
|
rcdbQuery {
|
|
vendors {
|
|
vekoma()
|
|
mack()
|
|
of(Vendor.MAURER)
|
|
}
|
|
sortBy {
|
|
inversions()
|
|
manufacturer()
|
|
}
|
|
}
|
|
)
|
|
}
|
|
}
|