mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-16 01:12:05 +01:00
Move Network DSL to testFixtures so we can reuse it in pgpainless-wot tests
This commit is contained in:
parent
7ee0a41a6a
commit
9183eeb8e6
7 changed files with 8 additions and 6 deletions
|
@ -13,6 +13,7 @@ buildscript {
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'java-library'
|
id 'java-library'
|
||||||
|
id 'java-test-fixtures'
|
||||||
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
|
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
package org.pgpainless.wot.network
|
package org.pgpainless.wot.network
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
import org.pgpainless.wot.dsl.NetworkDSL
|
||||||
import org.pgpainless.wot.network.Network.Companion.empty
|
import org.pgpainless.wot.network.Network.Companion.empty
|
||||||
import org.pgpainless.wot.network.ReferenceTime.Companion.now
|
import org.pgpainless.wot.network.ReferenceTime.Companion.now
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
package org.pgpainless.wot.network
|
package org.pgpainless.wot.network
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
|
import org.pgpainless.wot.dsl.NetworkDSL
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|
||||||
class NodeTest: NetworkDSL {
|
class NodeTest: NetworkDSL {
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
package org.pgpainless.wot.network
|
package org.pgpainless.wot.network
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.pgpainless.wot.network.NetworkDSL
|
import org.pgpainless.wot.dsl.NetworkDSL
|
||||||
import org.pgpainless.wot.network.RegexSet
|
|
||||||
import kotlin.test.assertFalse
|
import kotlin.test.assertFalse
|
||||||
import kotlin.test.assertTrue
|
import kotlin.test.assertTrue
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@ package org.pgpainless.wot.query
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.junit.jupiter.api.assertThrows
|
import org.junit.jupiter.api.assertThrows
|
||||||
import org.pgpainless.wot.network.Depth
|
import org.pgpainless.wot.network.Depth
|
||||||
import org.pgpainless.wot.network.NetworkDSL
|
import org.pgpainless.wot.dsl.NetworkDSL
|
||||||
import org.pgpainless.wot.query.Path
|
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
import kotlin.test.assertTrue
|
import kotlin.test.assertTrue
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ package org.pgpainless.wot.query
|
||||||
import org.junit.jupiter.api.Test
|
import org.junit.jupiter.api.Test
|
||||||
import org.junit.jupiter.api.assertThrows
|
import org.junit.jupiter.api.assertThrows
|
||||||
import org.pgpainless.wot.network.Depth
|
import org.pgpainless.wot.network.Depth
|
||||||
import org.pgpainless.wot.network.NetworkDSL
|
import org.pgpainless.wot.dsl.NetworkDSL
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|
||||||
class PathsTest: NetworkDSL {
|
class PathsTest: NetworkDSL {
|
||||||
|
|
|
@ -2,8 +2,9 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package org.pgpainless.wot.network
|
package org.pgpainless.wot.dsl
|
||||||
|
|
||||||
|
import org.pgpainless.wot.network.*
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
/**
|
/**
|
Loading…
Reference in a new issue