Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Oct 26, 2022
1 parent e9be606 commit eeb453b
Showing 1 changed file with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

package org.opensearch.identity;

import org.opensearch.common.bytes.BytesReference;
import org.opensearch.common.io.stream.BytesStreamInput;
import org.opensearch.common.io.stream.BytesStreamOutput;
import org.opensearch.test.OpenSearchTestCase;

import java.io.IOException;
Expand Down Expand Up @@ -41,19 +38,18 @@ public void testInstantiationWithStreamInput() throws IOException {
throw new Error(e);
}


String expectedToken = principal.getName();
assertEquals(expectedToken, extractedTokenOne);

// TODO: Implement this so it compares the same input generating the same token via stream
// try (BytesStreamOutput out = new BytesStreamOutput()) {
// principalIdentifierToken.writeTo(out);
// out.flush();
// try (BytesStreamInput in = new BytesStreamInput(BytesReference.toBytes(out.bytes()))) {
// principalIdentifierToken = new PrincipalIdentifierToken(in);
//
// assertEquals(expectedToken, principalIdentifierToken.getToken());
// }
// }
// TODO: Implement this so it compares the same input generating the same token via stream
// try (BytesStreamOutput out = new BytesStreamOutput()) {
// principalIdentifierToken.writeTo(out);
// out.flush();
// try (BytesStreamInput in = new BytesStreamInput(BytesReference.toBytes(out.bytes()))) {
// principalIdentifierToken = new PrincipalIdentifierToken(in);
//
// assertEquals(expectedToken, principalIdentifierToken.getToken());
// }
// }
}
}

0 comments on commit eeb453b

Please sign in to comment.