ValidationUtils.assertAllAreNull( "If a custom STS client is set you must not set any other client related fields (ClientConfiguration, AWSCredentials, Endpoint, etc", builder.longLivedCredentials, builder.longLivedCredentialsProvider,
@Test(expected = IllegalArgumentException.class) public void assertAllAreNull_SomeNull_ThrowsException() { ValidationUtils.assertAllAreNull("foo", null, "non-null", null, null); }
@Test public void assertAllAreNull_NoneProvided_DoesNotThrow() { ValidationUtils.assertAllAreNull("foo"); }
@Test public void assertAllAreNull_AllNull_DoesNotThrow() { ValidationUtils.assertAllAreNull("foo", null, null, null); }
ValidationUtils.assertAllAreNull( "If a custom STS client is set you must not set any other client related fields (ClientConfiguration, AWSCredentials, Endpoint, etc", builder.longLivedCredentials, builder.longLivedCredentialsProvider,