All Downloads are FREE. Search and download functionalities are using the official Maven repository.

test.kotlin.com.amazon.ionpathextraction.FsmPathExtractorTest.kt Maven / Gradle / Ivy

package com.amazon.ionpathextraction

import org.junit.jupiter.api.assertThrows
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.MethodSource

class FsmPathExtractorTest : PathExtractorTest() {
    override fun  PathExtractorBuilder.buildExtractor(): PathExtractor = buildStrict()

    @ParameterizedTest
    @MethodSource("testCases")
    override fun testSearchPaths(testCase: Companion.TestCase) {
        if (testCase.legacyOnly) {
            assertThrows {
                super.testSearchPaths(testCase)
            }
        } else {
            super.testSearchPaths(testCase)
        }
    }

    @ParameterizedTest
    @MethodSource("testCases")
    override fun testSearchPathsMatchCurrentValue(testCase: Companion.TestCase) {
        if (testCase.legacyOnly) {
            assertThrows {
                super.testSearchPaths(testCase)
            }
        } else {
            super.testSearchPaths(testCase)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy