package Ġcom . netflix . spin n aker . ke el . api Ċ Ċ import Ġcom . fasterxml . jackson . databind . node . Object Node Ċ import Ġcom . netflix . spin n aker . ke el . serialization . configured ObjectMapper Ċ import Ġdev . min ut est . junit . JUnit 5 Min ut ests Ċ import Ġdev . min ut est . root Context Ċ import Ġstri kt . api . expect That Ċ import Ġstri kt . assertions . isEqualTo Ċ import Ġstri kt . assertions . isFalse Ċ import Ġstri kt . assertions . isTrue Ċ import Ġstri kt . jackson . boolean Value Ċ import Ġstri kt . jackson . number Value Ċ import Ġstri kt . jackson . path Ċ import Ġstri kt . jackson . text Value Ċ Ċ internal Ġclass ĠCluster Deploy Strategy Tests Ġ: ĠJ Unit 5 Min ut ests Ġ{ ĊĠ Ġobject ĠFix ture Ġ{ ĊĠĠĠ Ġval Ġmapper Ġ= Ġconfigured ObjectMapper () ĊĠ Ġ} ĊĊĠ Ġfun Ġtests () Ġ= Ġroot Context < Fixture > Ġ{ ĊĠĠĠ Ġfixture Ġ{ ĠFix ture Ġ} ĊĊĠĠĠ Ġtest (" high land er Ġserial izes Ġto ĠJSON ") Ġ{ ĊĠĠĠĠĠ Ġexpect That ( mapper . writeValue AsString ( High land er )) ĊĠĠĠĠĠĠĠ Ġ. isEqualTo (""" {" strategy ":" high land er "} """) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġtest (" red - black Ġserial izes Ġto ĠJSON ") Ġ{ ĊĠĠĠĠĠ Ġexpect That < Object Node >( mapper . value To Tree ( Red Black ())) Ġ{ ĊĠĠĠĠĠĠĠ Ġpath (" strategy "). text Value (). isEqualTo (" red - black ") ĊĠĠĠĠĠĠĠ Ġpath (" resize Previous To Zero "). boolean Value (). isFalse () ĊĠĠĠĠĠĠĠ Ġpath (" rollback On Failure "). boolean Value (). isTrue () ĊĠĠĠĠĠĠĠ Ġpath (" max Server Groups "). number Value (). isEqualTo ( 2 ) ĊĠĠĠĠĠĠĠ Ġpath (" delay Before Disable "). text Value (). isEqualTo (" PT 0 S ") ĊĠĠĠĠĠĠĠ Ġpath (" delay Before Scale Down "). text Value (). isEqualTo (" PT 0 S ") ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ