Skip to content

Commit

Permalink
piccolo.test: adapted to ELK 0.7.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRentzCAU committed Sep 18, 2020
1 parent 4822e95 commit 1239195
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import de.cau.cs.kieler.klighd.piccolo.export.SVGOffscreenRenderer
import de.cau.cs.kieler.klighd.util.KlighdSemanticDiagramData
import de.cau.cs.kieler.klighd.util.KlighdSynthesisProperties
import java.io.ByteArrayOutputStream
import java.util.EnumSet
import java.util.regex.Pattern
import org.eclipse.elk.core.options.PortConstraints
import org.eclipse.elk.core.options.PortLabelPlacement
Expand Down Expand Up @@ -159,8 +160,8 @@ class FreeHEPSVGOffscreenRenderingTest {
'''.equalsSVGwithTextLengthsOf[
addKNodeWithSizeOf(100, 100) => [
setProperty(PORT_CONSTRAINTS, PortConstraints.FIXED_SIDE)
setProperty(PORT_LABELS_PLACEMENT, PortLabelPlacement.OUTSIDE)
setProperty(PORT_LABELS_NEXT_TO_PORT_IF_POSSIBLE, Boolean.TRUE)
setProperty(PORT_LABELS_PLACEMENT, EnumSet.of(PortLabelPlacement.OUTSIDE,
PortLabelPlacement.NEXT_TO_PORT_IF_POSSIBLE))

addKPortWithSizeOf(5, 5) => [
setProperty(PORT_SIDE, PortSide.EAST)
Expand Down Expand Up @@ -195,8 +196,8 @@ class FreeHEPSVGOffscreenRenderingTest {
'''.equalsSVGwithTextLengthsOf[
addKNodeWithSizeOf(100, 100) => [
setProperty(PORT_CONSTRAINTS, PortConstraints.FIXED_SIDE)
setProperty(PORT_LABELS_PLACEMENT, PortLabelPlacement.OUTSIDE)
setProperty(PORT_LABELS_NEXT_TO_PORT_IF_POSSIBLE, Boolean.TRUE)
setProperty(PORT_LABELS_PLACEMENT, EnumSet.of(PortLabelPlacement.OUTSIDE,
PortLabelPlacement.NEXT_TO_PORT_IF_POSSIBLE))

addKPortWithSizeOf(5, 5) => [
setProperty(PORT_SIDE, PortSide.WEST)
Expand Down Expand Up @@ -363,8 +364,8 @@ class FreeHEPSVGOffscreenRenderingTest {
'''.equalsSVGwithTextLengthsOf[
addKNodeWithSizeOf(100, 100) => [
setProperty(PORT_CONSTRAINTS, PortConstraints.FIXED_SIDE)
setProperty(PORT_LABELS_PLACEMENT, PortLabelPlacement.OUTSIDE)
setProperty(PORT_LABELS_NEXT_TO_PORT_IF_POSSIBLE, Boolean.TRUE)
setProperty(PORT_LABELS_PLACEMENT, EnumSet.of(PortLabelPlacement.OUTSIDE,
PortLabelPlacement.NEXT_TO_PORT_IF_POSSIBLE))

addKPortWithSizeOf(5, 5) => [
setProperty(PORT_SIDE, PortSide.EAST)
Expand Down Expand Up @@ -407,8 +408,8 @@ class FreeHEPSVGOffscreenRenderingTest {
'''.equalsSVGwithTextLengthsOf[
addKNodeWithSizeOf(100, 100) => [
setProperty(PORT_CONSTRAINTS, PortConstraints.FIXED_SIDE)
setProperty(PORT_LABELS_PLACEMENT, PortLabelPlacement.OUTSIDE)
setProperty(PORT_LABELS_NEXT_TO_PORT_IF_POSSIBLE, Boolean.TRUE)
setProperty(PORT_LABELS_PLACEMENT, EnumSet.of(PortLabelPlacement.OUTSIDE,
PortLabelPlacement.NEXT_TO_PORT_IF_POSSIBLE))

addKPortWithSizeOf(5, 5) => [
setProperty(PORT_SIDE, PortSide.EAST)
Expand Down Expand Up @@ -457,8 +458,8 @@ class FreeHEPSVGOffscreenRenderingTest {
'''.equalsSVGof[ // cs: deactivated generation of 'textLength' property settings on purpose, as we cannot inject reliable test size data per text line as of now
addKNodeWithSizeOf(100, 100) => [
setProperty(PORT_CONSTRAINTS, PortConstraints.FIXED_SIDE)
setProperty(PORT_LABELS_PLACEMENT, PortLabelPlacement.OUTSIDE)
setProperty(PORT_LABELS_NEXT_TO_PORT_IF_POSSIBLE, Boolean.TRUE)
setProperty(PORT_LABELS_PLACEMENT, EnumSet.of(PortLabelPlacement.OUTSIDE,
PortLabelPlacement.NEXT_TO_PORT_IF_POSSIBLE))

addKPortWithSizeOf(5, 5) => [
setProperty(PORT_SIDE, PortSide.EAST)
Expand Down

0 comments on commit 1239195

Please sign in to comment.