2929import org .junit .jupiter .api .Test ;
3030
3131import java .net .URI ;
32- import java .util .List ;
3332import java .util .UUID ;
3433
3534import static java .util .Collections .emptyList ;
@@ -74,7 +73,7 @@ void shouldCommunicateWithControlPlaneUsingRegisteredAuthorization() {
7473 var controlPlaneRegistrationMessage = new ControlPlaneRegistrationMessage (
7574 "control-plane-id" ,
7675 controlPlane .consumerCallbackAddress (),
77- List . of ( TestAuthorization .createAuthorizationProfile ("data-plane-id" ) )
76+ TestAuthorization .createAuthorizationProfile ("data-plane-id" )
7877 );
7978 dataPlane .registerControlPlane (controlPlaneRegistrationMessage ).orElseThrow (RuntimeException ::new );
8079
@@ -96,7 +95,7 @@ void shouldGetUnauthorized_whenControlPlaneIsNotAuthenticated() {
9695 var controlPlaneRegistrationMessage = new ControlPlaneRegistrationMessage (
9796 "unmatching-control-plane-id" ,
9897 controlPlane .consumerCallbackAddress (),
99- List . of ( TestAuthorization .createAuthorizationProfile ("data-plane-id" ) )
98+ TestAuthorization .createAuthorizationProfile ("data-plane-id" )
10099 );
101100 dataPlane .registerControlPlane (controlPlaneRegistrationMessage ).orElseThrow (RuntimeException ::new );
102101
@@ -113,7 +112,7 @@ void shouldGetUnauthorized_withDataPlaneIsNotAuthenticated() {
113112 var controlPlaneRegistrationMessage = new ControlPlaneRegistrationMessage (
114113 "control-plane-id" ,
115114 controlPlane .consumerCallbackAddress (),
116- List . of ( TestAuthorization .createAuthorizationProfile ("data-plane-id" ) )
115+ TestAuthorization .createAuthorizationProfile ("data-plane-id" )
117116 );
118117 dataPlane .registerControlPlane (controlPlaneRegistrationMessage ).orElseThrow (RuntimeException ::new );
119118
0 commit comments