// ĠCopyright Ġ 2 0 2 1 ĠAmazon . com , ĠInc . Ġor Ġits Ġaffiliates . ĠAll ĠRights ĠReserved . Ċ // ĠSPDX - License - Identifier : ĠApache - 2 . 0 Ċ Ċ package Ġsoftware . aws . tool k its . jetbrains . services . app runner . actions Ċ Ċ import Ġcom . intellij . openapi . ide . Copy Paste Manager Ċ import Ġcom . intellij . test Framework . Project Rule Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . kotlin . mock Ċ import Ġsoftware . amazon . aw ssdk . services . app runner . model . Service Summary Ċ import Ġsoftware . aws . tool k its . core . utils . test . a String Ċ import Ġsoftware . aws . tool k its . jetbrains . services . app runner . App Runner Service Node Ċ import Ġjava . awt . datat rans fer . Data Flavor Ċ Ċ class ĠCopy Service Url Action Test Ġ{ ĊĠĠĠ Ġ@ Jvm Field ĊĠĠĠ Ġ@ Rule ĊĠĠĠ Ġval Ġproject Rule Ġ= ĠProject Rule () ĊĊĠĠĠ Ġprivate Ġval Ġurl Ġ= Ġa String () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Copy ĠService ĠUrl Ġcopies Ġcorrect Ġfield `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġaction Ġ= ĠCopy Service Url Action () ĊĠĠĠĠĠĠĠ Ġaction . action Performed ( App Runner Service Node ( project Rule . project , ĠService Summary . builder (). serviceName ( a String ()). service Url ( url ). build ()), Ġmock ()) ĊĠĠĠĠĠĠĠ Ġval Ġdata Ġ= ĠCopy Paste Manager . getInstance (). get Contents < String >( Data Flavor . string Flavor ) ĊĠĠĠĠĠĠĠ ĠassertThat ( data ). isEqualTo ( url ) ĊĠĠĠ Ġ} Ċ } Ċ