@Test public void write() throws IOException { final JsonWriter writer = mock(JsonWriter.class); this.typeAdapter.write(writer, SizeUnit.BYTES); verify(writer).value("bytes"); }
@Override public void write(final JsonWriter out, final SizeUnit value) throws IOException { out.value(value.toString().toLowerCase(Locale.US)); }
SizeUnitTypeAdapter extends TypeAdapter<SizeUnit> { @Override public void write(final JsonWriter out, final SizeUnit value) throws IOException { out.value(value.toString().toLowerCase(Locale.US)); } }
SizeUnitTypeAdapter extends TypeAdapter<SizeUnit> { @Override public void write(final JsonWriter out, final SizeUnit value) throws IOException { out.value(value.toString().toLowerCase(Locale.US)); }  }
SizeUnitTypeAdapter extends TypeAdapter<SizeUnit> { @Override public void write(final JsonWriter out, final SizeUnit value) throws IOException { out.value(value.toString().toLowerCase(Locale.US)); }  @Override void write(final JsonWriter out, final SizeUnit value); @Override SizeUnit read(final JsonReader in); }
SizeUnitTypeAdapter extends TypeAdapter<SizeUnit> { @Override public void write(final JsonWriter out, final SizeUnit value) throws IOException { out.value(value.toString().toLowerCase(Locale.US)); }  @Override void write(final JsonWriter out, final SizeUnit value); @Override SizeUnit read(final JsonReader in);  }