|
| 1 | +/** * |
| 2 | + * Copyright 2024 Rackspace US, Inc. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | +package com.rackspace.com.papi.components.checker |
| 17 | + |
| 18 | +import com.rackspace.cloud.api.wadl.Converters._ |
| 19 | +import org.junit.runner.RunWith |
| 20 | +import org.scalatestplus.junit.JUnitRunner |
| 21 | + |
| 22 | +@RunWith(classOf[JUnitRunner]) |
| 23 | +class MultiSchemaElementsSuiteSaxonEEDisabledByteCodeGen extends MultiSchemaElementsBaseSuite { |
| 24 | + val useSaxon = true |
| 25 | + val disableByteCodeGen = true |
| 26 | + val config = createConfigWithSaxonEE(useSaxon, disableByteCodeGen) |
| 27 | + |
| 28 | + val validator_SimpleSame = Validator((localWADLURI, wadl_SimpleSame), config) |
| 29 | + val validator_SimpleDiff = Validator((localWADLURI, wadl_SimpleDiff), config) |
| 30 | + val validator_ElementSame = Validator((localWADLURI, wadl_ElementSame), config) |
| 31 | + val validator_ElementDiff = Validator((localWADLURI, wadl_ElementDiff), config) |
| 32 | + val validator_ElementRepeat = Validator((localWADLURI, wadl_ElementSame), config) |
| 33 | + |
| 34 | + assert(validator_SimpleSame.config.disableSaxonByteCodeGen == true) |
| 35 | + assert(validator_SimpleDiff.config.disableSaxonByteCodeGen == true) |
| 36 | + assert(validator_ElementSame.config.disableSaxonByteCodeGen == true) |
| 37 | + assert(validator_ElementDiff.config.disableSaxonByteCodeGen == true) |
| 38 | + assert(validator_ElementRepeat.config.disableSaxonByteCodeGen == true) |
| 39 | + |
| 40 | + assertions_Simple(validator_SimpleSame, true, useSaxon) |
| 41 | + assertions_Simple(validator_SimpleDiff, false, useSaxon) |
| 42 | + assertions_Element(validator_ElementSame, true, useSaxon) |
| 43 | + assertions_Element(validator_ElementDiff, false, useSaxon) |
| 44 | + assertions_Repeat(validator_ElementRepeat, false, useSaxon) |
| 45 | +} |
0 commit comments