Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
#91: fixes serialization issue
Browse files Browse the repository at this point in the history
  • Loading branch information
danhaywood committed Jul 25, 2018
1 parent aa31adc commit 8101b2d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@NoArgsConstructor
@AllArgsConstructor
public class ArchiveArgs {

private static final ObjectWriter writer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
package org.incode.module.minio.docclient.archive;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@NoArgsConstructor
@AllArgsConstructor
public class StringValue {
final String value;
public StringValue(final String value) {
this.value = value;
}

@Getter @Setter
String value;

@Override
public String toString() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package org.incode.module.minio.docclient.archive;

import org.junit.Assert;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.CoreMatchers.nullValue;

public class ArchiveArgs_asJson_Test {

@Test
public void xxx() throws Exception {
final ArchiveArgs archiveArgs = new ArchiveArgs();
archiveArgs.setDocBookmark(new StringValue("incode.Document:123"));
archiveArgs.setExternalUrl(new StringValue("http://yadayada"));

final String s = archiveArgs.asJson();

Assert.assertThat(s, is(not(nullValue())));
}

}
Binary file modified modules/lib/minio/src/main/asciidoc/resources/design-sketch.pptx
Binary file not shown.

0 comments on commit 8101b2d

Please sign in to comment.