aboutsummaryrefslogtreecommitdiff
path: root/src/test/model/csr/AttributesTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/model/csr/AttributesTest.java')
-rw-r--r--src/test/model/csr/AttributesTest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/model/csr/AttributesTest.java b/src/test/model/csr/AttributesTest.java
index 86a0112..eebdbfb 100644
--- a/src/test/model/csr/AttributesTest.java
+++ b/src/test/model/csr/AttributesTest.java
@@ -24,12 +24,12 @@ public class AttributesTest {
@Test
void testParse() throws ParseException {
final Attributes parsed = new Attributes(new BytesReader(new Byte[]{
- -96, 30,
- 0x30, 0x1C,
- 0x06, 0x0A, 0x2B, 0x06, 0x01, 0x04, 0x01, -126, 0x37, 0x0D, 0x02, 0x03,
- 0x31, 0x0E,
- 0x16, 0x0C, 0x31, 0x30, 0x2E, 0x30, 0x2E, 0x31, 0x39, 0x30, 0x34, 0x35, 0x2E, 0x32
- }), false);
+ -96, 30,
+ 0x30, 0x1C,
+ 0x06, 0x0A, 0x2B, 0x06, 0x01, 0x04, 0x01, -126, 0x37, 0x0D, 0x02, 0x03,
+ 0x31, 0x0E,
+ 0x16, 0x0C, 0x31, 0x30, 0x2E, 0x30, 0x2E, 0x31, 0x39, 0x30, 0x34, 0x35, 0x2E, 0x32
+ }), false);
assertEquals(1, parsed.getArray().length);
assertEquals("10.0.19045.2", parsed.getArray()[0].getValues().getArray()[0].toString());
}
@@ -59,7 +59,7 @@ public class AttributesTest {
Byte[] a2 = TestConstants.CSR_ATTR_2.encodeDER();
Byte[] a1 = TestConstants.CSR_ATTR_1.encodeDER();
assertArrayEquals(
- Stream.of(Arrays.asList(new Byte[]{ 0x31, (byte)(a2.length + a1.length) }),
+ Stream.of(Arrays.asList(new Byte[]{0x31, (byte) (a2.length + a1.length)}),
Arrays.asList(a2),
Arrays.asList(a1))
.flatMap(Collection::stream)