mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-05 12:05:58 +01:00
Move NetworkDSL to testFixtures sources so we can reuse it in pgpainless-wot
This commit is contained in:
parent
fdd0973a0b
commit
13e58f75d6
7 changed files with 8 additions and 3 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,6 +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.dsl.NetworkDSL
|
||||||
import kotlin.test.assertFalse
|
import kotlin.test.assertFalse
|
||||||
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 org.pgpainless.wot.query.Path
|
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