1
0
Fork 0
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:
Paul Schaub 2023-07-09 12:03:58 +02:00
parent 7ee0a41a6a
commit 9183eeb8e6
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
7 changed files with 8 additions and 6 deletions

View file

@ -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"
} }

View file

@ -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

View file

@ -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 {

View file

@ -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

View file

@ -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

View file

@ -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 {

View file

@ -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.*
/** /**