![JAR search and dependency download from the Maven repository](/logo.png)
jvmTest.plot.builder.interact.GeomTargetInteractionAreaFunctionTest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plot-builder-portable Show documentation
Show all versions of plot-builder-portable Show documentation
The Let-Plot Kotlin API depends on this artifact.
The newest version!
/*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.builder.interact
import jetbrains.datalore.plot.base.Aes
import jetbrains.datalore.plot.builder.interact.TestUtil.assertNoTooltips
import jetbrains.datalore.plot.builder.interact.TestUtil.continuous
import jetbrains.datalore.plot.builder.interact.TestUtil.discrete
import kotlin.test.Test
class GeomTargetInteractionAreaFunctionTest {
@Test
fun whenXIsContinuous_ShouldNotAddTooltip() {
val targetTooltipSpec = createBuilder()
.variable(continuous(Aes.X))
.build()
assertNoTooltips(targetTooltipSpec)
}
@Test
fun whenXIsNotContinuous_ShouldNotAddTooltip() {
val targetTooltipSpec = createBuilder()
.variable(discrete(Aes.X))
.build()
assertNoTooltips(targetTooltipSpec)
}
private fun createBuilder(): TestingTooltipSpecsBuilder {
return TestingTooltipSpecsBuilder.areaFunctionBuilder()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy