package Ġde . k lg 7 1 . keycloak migration . change Control . actions . user Ċ Ċ import Ġde . k lg 7 1 . keycloak migration . Abstract IntegrationTest Ċ import Ġde . k lg 7 1 . keycloak migration . change Control . actions . Migration Exception Ċ import Ġde . k lg 7 1 . keycloak migration . keycloak api . Key cloak Client Ċ import Ġde . k lg 7 1 . keycloak migration . keycloak api . user ByName Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . assertj . core . api . Assertions . assertThat Thrown By Ċ import Ġorg . junit . Test Ċ import Ġorg . k oin . core . component . inject Ċ Ċ class ĠDelete User Attribute Inte g Test Ġ: ĠAbstract IntegrationTest () Ġ{ ĊĊĠĠĠ Ġval Ġclient Ġby Ġinject < Key cloak Client >() ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Delete User Attribute () Ġ{ ĊĠĠĠĠĠĠĠ ĠAdd User Action ( test Realm , Ġ" test "). execute It () ĊĠĠĠĠĠĠĠ ĠAdd User Attribute Action ( test Realm , Ġ" test ", Ġ" test Attribute ", ĠlistOf (" test Value 1 ", Ġ" test Value 2 ")). execute It () ĊĠĠĠĠĠĠĠ ĠDelete User Attribute Action ( test Realm , Ġ" test ", Ġ" test Attribute "). execute It () ĊĊĠĠĠĠĠĠĠ Ġclient . user ByName (" test ", Ġtest Realm ). let Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( it . attributes ). isNull OrEmpty () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Delete User Attribute _ not Existing () Ġ{ ĊĠĠĠĠĠĠĠ ĠAdd User Action ( test Realm , Ġ" test "). execute It () ĊĠĠĠĠĠĠĠ ĠassertThat Thrown By Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠDelete User Attribute Action ( test Realm , Ġ" test ", Ġ" test Attribute "). execute It () ĊĠĠĠĠĠĠĠ Ġ}. isInstanceOf ( Migration Exception :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Message (" Attribute Ġtest Attribute Ġis Ġnot Ġpresent Ġon Ġuser Ġtest !") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Delete User Attribute _ not Existing _ fail On Missing False () Ġ{ ĊĠĠĠĠĠĠĠ ĠAdd User Action ( test Realm , Ġ" test "). execute It () ĊĠĠĠĠĠĠĠ ĠDelete User Attribute Action ( test Realm , Ġ" test ", Ġ" test Attribute ", Ġfalse ). execute It () ĊĠĠĠ Ġ} Ċ } Ċ