File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/test/java/com/amazonaws/encryptionsdk Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 20
20
import org .mockito .Mock ;
21
21
import org .mockito .junit .jupiter .MockitoExtension ;
22
22
23
- import static org .junit .Assert .assertTrue ;
24
23
import static org .junit .jupiter .api .Assertions .assertThrows ;
24
+ import static org .junit .jupiter .api .Assertions .assertTrue ;
25
25
26
26
@ ExtendWith (MockitoExtension .class )
27
27
class DecryptRequestTest {
28
28
29
29
@ Mock private Keyring keyring ;
30
30
@ Mock private ParsedCiphertext parsedCiphertext ;
31
- private static final byte [] CIPHERTEXT = new byte [] {1 ,2 , 3 };
31
+ private static final byte [] CIPHERTEXT = new byte []{1 , 2 , 3 };
32
32
33
33
@ Test
34
34
void testBothCiphertextAndParsedCiphertext () {
Original file line number Diff line number Diff line change 19
19
import org .mockito .Mock ;
20
20
import org .mockito .junit .jupiter .MockitoExtension ;
21
21
22
- import static org .junit .Assert .assertTrue ;
23
22
import static org .junit .jupiter .api .Assertions .assertEquals ;
24
23
import static org .junit .jupiter .api .Assertions .assertThrows ;
24
+ import static org .junit .jupiter .api .Assertions .assertTrue ;
25
25
26
26
@ ExtendWith (MockitoExtension .class )
27
27
class EncryptRequestTest {
28
28
29
29
@ Mock private Keyring keyring ;
30
30
@ Mock private CryptoMaterialsManager cmm ;
31
- private static final byte [] PLAINTEXT = new byte [] {1 , 2 ,3 };
31
+ private static final byte [] PLAINTEXT = new byte []{1 , 2 , 3 };
32
32
33
33
@ Test
34
34
void testBothCmmAndKeyring () {
@@ -68,6 +68,6 @@ void testNoEncryptionContext() {
68
68
@ Test
69
69
void testNullPlaintext () {
70
70
assertThrows (NullPointerException .class , () -> EncryptRequest .builder ()
71
- .keyring (keyring ).build ());
71
+ .keyring (keyring ).build ());
72
72
}
73
73
}
You can’t perform that action at this time.
0 commit comments