diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2021-12-30 20:37:39 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2021-12-30 20:39:14 +0100 |
commit | c981cde61e1912e3d664d7a3e90d9e0efe050bd7 (patch) | |
tree | ce0f722c607f6dbe9354adeb0c003996c9da8ff9 /jgvariant-ostree/src/test/java | |
parent | 50a626db95a56160d8d08a6d0a6bb678b08b78d1 (diff) |
jvgariant-ostree: Correctly deserialize delta operations.
Change-Id: Ic6659d7ea5e9411220571c33979e29471cec897e
Diffstat (limited to 'jgvariant-ostree/src/test/java')
-rw-r--r-- | jgvariant-ostree/src/test/java/eu/mulk/jgvariant/ostree/OstreeDecoderTest.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/jgvariant-ostree/src/test/java/eu/mulk/jgvariant/ostree/OstreeDecoderTest.java b/jgvariant-ostree/src/test/java/eu/mulk/jgvariant/ostree/OstreeDecoderTest.java index 05da7ed..db222f9 100644 --- a/jgvariant-ostree/src/test/java/eu/mulk/jgvariant/ostree/OstreeDecoderTest.java +++ b/jgvariant-ostree/src/test/java/eu/mulk/jgvariant/ostree/OstreeDecoderTest.java @@ -11,7 +11,6 @@ import eu.mulk.jgvariant.core.Variant; import java.nio.ByteBuffer; import java.util.List; import java.util.Map; -import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @TestWithResources @@ -94,11 +93,14 @@ class OstreeDecoderTest { System.out.println(deltaSuperblock); } - @Disabled("invalid: compression byte not taken into account") @Test void testPartPayloadDecoder() { - var decoder = DeltaPartPayload.decoder(); + var superblockDecoder = DeltaSuperblock.decoder(); + var superblock = superblockDecoder.decode(ByteBuffer.wrap(deltaSuperblockBytes)); + + var decoder = DeltaPartPayload.decoder(superblock.entries().get(0)); var deltaPartPayload = decoder.decode(ByteBuffer.wrap(deltaPartPayloadBytes)); + System.out.println(deltaPartPayload); } } |