File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
x-pack/plugin/fleet/src/test/java/org/elasticsearch/xpack/fleet/action Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 77
88package org .elasticsearch .xpack .fleet .action ;
99
10- import org .elasticsearch .action .ActionResponseValidationException ;
1110import org .elasticsearch .common .io .stream .Writeable ;
1211import org .elasticsearch .test .AbstractWireSerializingTestCase ;
1312
14- import static org .junit .Assert .assertArrayEquals ;
15-
1613public class GetSecretResponseTests extends AbstractWireSerializingTestCase <GetSecretResponse > {
1714
1815 @ Override
@@ -33,8 +30,6 @@ protected GetSecretResponse mutateInstance(GetSecretResponse instance) {
3330 public void testValidateResponseWithMultiValue () {
3431 String [] secrets = { "secret1" , "secret2" };
3532 GetSecretResponse res = new GetSecretResponse (randomAlphaOfLength (10 ), secrets );
36- ActionResponseValidationException e = res .validate ();
37- assertNull (e );
38- assertArrayEquals (secrets , (String []) res .value ());
33+ assertEquals (res .equals (secrets ), true );
3934 }
4035}
You can’t perform that action at this time.
0 commit comments