@Test public void read() throws IOException { final JsonReader reader = mock(JsonReader.class); when(reader.nextString()).thenReturn("s"); assertThat(this.typeAdapter.read(reader), is(TimeUnit.SECONDS)); }
@Override public TimeUnit read(final JsonReader in) throws IOException { return Units.time(in.nextString()); }
TimeUnitTypeAdapter extends TypeAdapter<TimeUnit> { @Override public TimeUnit read(final JsonReader in) throws IOException { return Units.time(in.nextString()); } }
TimeUnitTypeAdapter extends TypeAdapter<TimeUnit> { @Override public TimeUnit read(final JsonReader in) throws IOException { return Units.time(in.nextString()); }  }
TimeUnitTypeAdapter extends TypeAdapter<TimeUnit> { @Override public TimeUnit read(final JsonReader in) throws IOException { return Units.time(in.nextString()); }  @Override void write(final JsonWriter out, final TimeUnit value); @Override TimeUnit read(final JsonReader in); }
TimeUnitTypeAdapter extends TypeAdapter<TimeUnit> { @Override public TimeUnit read(final JsonReader in) throws IOException { return Units.time(in.nextString()); }  @Override void write(final JsonWriter out, final TimeUnit value); @Override TimeUnit read(final JsonReader in);  }