1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-24 11:57:59 +01:00

Move NetworkDSL to testFixtures sources so we can reuse it in pgpainless-wot

This commit is contained in:
Paul Schaub 2023-07-09 13:05:44 +02:00
parent fdd0973a0b
commit 13e58f75d6
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
7 changed files with 8 additions and 3 deletions

View file

@ -13,6 +13,7 @@ buildscript {
plugins {
id 'java-library'
id 'java-test-fixtures'
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
}

View file

@ -5,6 +5,7 @@
package org.pgpainless.wot.network
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.ReferenceTime.Companion.now
import kotlin.test.assertEquals

View file

@ -5,6 +5,7 @@
package org.pgpainless.wot.network
import org.junit.jupiter.api.Test
import org.pgpainless.wot.dsl.NetworkDSL
import kotlin.test.assertEquals
class NodeTest: NetworkDSL {

View file

@ -1,6 +1,7 @@
package org.pgpainless.wot.network
import org.junit.jupiter.api.Test
import org.pgpainless.wot.dsl.NetworkDSL
import kotlin.test.assertFalse
import kotlin.test.assertTrue

View file

@ -3,7 +3,7 @@ package org.pgpainless.wot.query
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
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.assertTrue

View file

@ -3,7 +3,7 @@ package org.pgpainless.wot.query
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.pgpainless.wot.network.Depth
import org.pgpainless.wot.network.NetworkDSL
import org.pgpainless.wot.dsl.NetworkDSL
import kotlin.test.assertEquals
class PathsTest: NetworkDSL {

View file

@ -2,8 +2,9 @@
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.wot.network
package org.pgpainless.wot.dsl
import org.pgpainless.wot.network.*
import java.util.*
/**