@Test(expected = IOException.class) public void testNotExportedBeanFailing() throws IOException { ExportConfig config = new ExportConfig().withFlavor(Flavor.JSON).withExportInterceptor(new ExportInterceptor2()).withSkipIfFail(true); StringWriter writer = new StringWriter(); ExportableBean b = new ExportableBean(); builder.get(ExportableBean.class).writeTo(b,Flavor.JSON.createDataWriter(b, writer, config)); }
public void writeTo(T object, DataWriter writer) throws IOException { writeTo(object, 0, writer); }
Model { public void writeTo(T object, DataWriter writer) throws IOException { writeTo(object, 0, writer); } }
Model { public void writeTo(T object, DataWriter writer) throws IOException { writeTo(object, 0, writer); } Model(ModelBuilder parent, Class<T> type, @CheckForNull Class<?> propertyOwner, @Nullable String property); }
Model { public void writeTo(T object, DataWriter writer) throws IOException { writeTo(object, 0, writer); } Model(ModelBuilder parent, Class<T> type, @CheckForNull Class<?> propertyOwner, @Nullable String property); List<Property> getProperties(); void writeTo(T object, DataWriter writer); void writeTo(T object, TreePruner pruner, DataWriter writer); @Deprecated void writeTo(T object, int baseVisibility, DataWriter writer); }
Model { public void writeTo(T object, DataWriter writer) throws IOException { writeTo(object, 0, writer); } Model(ModelBuilder parent, Class<T> type, @CheckForNull Class<?> propertyOwner, @Nullable String property); List<Property> getProperties(); void writeTo(T object, DataWriter writer); void writeTo(T object, TreePruner pruner, DataWriter writer); @Deprecated void writeTo(T object, int baseVisibility, DataWriter writer); final Class<T> type; final Model<? super T> superModel; }