From c981cde61e1912e3d664d7a3e90d9e0efe050bd7 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Thu, 30 Dec 2021 20:37:39 +0100 Subject: jvgariant-ostree: Correctly deserialize delta operations. Change-Id: Ic6659d7ea5e9411220571c33979e29471cec897e --- .../src/test/java/eu/mulk/jgvariant/ostree/OstreeDecoderTest.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'jgvariant-ostree/src/test') 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); } } -- cgit v1.2.3