@Test public void testDecodeTest1() throws Exception { InputStream is = loadStream(TEST1); Metadata metadata = tested.unmarshall(is); assertNotNull(metadata); assertEquals("defSet1", metadata.getDefinitionSetId()); assertEquals("ss1", metadata.getShapeSetId()); assertEquals("thumbData1", metadata.getThumbData()); assertEquals("title1", metadata.getTitle()); assertEquals("root1", metadata.getCanvasRootUUID()); }
@Override public Metadata unmarshall(final InputStream input) throws IOException { try (final XMLDecoder decoder = new XMLDecoder(input)) { return (Metadata) decoder.readObject(); } }
XMLEncoderDiagramMetadataMarshaller implements DiagramMetadataMarshaller<Metadata> { @Override public Metadata unmarshall(final InputStream input) throws IOException { try (final XMLDecoder decoder = new XMLDecoder(input)) { return (Metadata) decoder.readObject(); } } }
XMLEncoderDiagramMetadataMarshaller implements DiagramMetadataMarshaller<Metadata> { @Override public Metadata unmarshall(final InputStream input) throws IOException { try (final XMLDecoder decoder = new XMLDecoder(input)) { return (Metadata) decoder.readObject(); } }  }
XMLEncoderDiagramMetadataMarshaller implements DiagramMetadataMarshaller<Metadata> { @Override public Metadata unmarshall(final InputStream input) throws IOException { try (final XMLDecoder decoder = new XMLDecoder(input)) { return (Metadata) decoder.readObject(); } }  @Override Metadata unmarshall(final InputStream input); @Override String marshall(final Metadata metadata); }
XMLEncoderDiagramMetadataMarshaller implements DiagramMetadataMarshaller<Metadata> { @Override public Metadata unmarshall(final InputStream input) throws IOException { try (final XMLDecoder decoder = new XMLDecoder(input)) { return (Metadata) decoder.readObject(); } }  @Override Metadata unmarshall(final InputStream input); @Override String marshall(final Metadata metadata);  }