@Test public void testConfigure_schema_successulLoad() throws IOException { StubSchemaLoader loader = Mockito.mock(StubSchemaLoader.class); Mockito.when(loader.load()).thenReturn(new HashSetValuedHashMap<>()); AvroSchemaGlossary glossary = new AvroSchemaGlossary(loader); Assert.assertTrue(glossary.configure()); }
public boolean configure() { try { glossary = avroSchemaLoader.load(); } catch (IOException e) { return false; } return true; }
AvroSchemaGlossary { public boolean configure() { try { glossary = avroSchemaLoader.load(); } catch (IOException e) { return false; } return true; } }
AvroSchemaGlossary { public boolean configure() { try { glossary = avroSchemaLoader.load(); } catch (IOException e) { return false; } return true; } AvroSchemaGlossary(AvroSchemaLoader avroSchemaLoader); }
AvroSchemaGlossary { public boolean configure() { try { glossary = avroSchemaLoader.load(); } catch (IOException e) { return false; } return true; } AvroSchemaGlossary(AvroSchemaLoader avroSchemaLoader); void setAvroSchemaLoader(AvroSchemaLoader avroSchemaLoader); boolean configure(); Schema get(String name, long revision); Collection<Schema> getAll(); }
AvroSchemaGlossary { public boolean configure() { try { glossary = avroSchemaLoader.load(); } catch (IOException e) { return false; } return true; } AvroSchemaGlossary(AvroSchemaLoader avroSchemaLoader); void setAvroSchemaLoader(AvroSchemaLoader avroSchemaLoader); boolean configure(); Schema get(String name, long revision); Collection<Schema> getAll();  }