@Test(expected = IllegalArgumentException.class) public void failsToCreateEmptyBean() throws Exception { factory.create(MyBean.class); }
public <T> T create(Class<T> type, String... fixtureNames) { return create(DEFAULT_REFERENCE_PREFIX, type, fixtureNames); }
BeanFactory { public <T> T create(Class<T> type, String... fixtureNames) { return create(DEFAULT_REFERENCE_PREFIX, type, fixtureNames); } }
BeanFactory { public <T> T create(Class<T> type, String... fixtureNames) { return create(DEFAULT_REFERENCE_PREFIX, type, fixtureNames); } BeanFactory();  BeanFactory(ObjectMapper objectMapper, FixtureScanner scanner);  BeanFactory(ObjectMapper objectMapper); }
BeanFactory { public <T> T create(Class<T> type, String... fixtureNames) { return create(DEFAULT_REFERENCE_PREFIX, type, fixtureNames); } BeanFactory();  BeanFactory(ObjectMapper objectMapper, FixtureScanner scanner);  BeanFactory(ObjectMapper objectMapper); void init(); void registerAll(Map<String, JsonNode> fixtures); void registerFixture(String name, JsonNode fixture); void unregisterAll(Collection<String> names); void unregisterFixture(String name); void setAllowUnknownProperties(boolean allowUnknownProperties); String createAsString(String... fixtureNames); String createAsString(boolean pretty, String... fixtureNames); String createAsString(boolean pretty, List<String> fixtureNames); String createAsString(boolean pretty, JsonNode jsonNode); T create(Class<T> type, String... fixtureNames); T create(JavaType type, String... fixtureNames); T create(String referencePrefix, JavaType type, String... fixtureNames); T create(String referencePrefix, Class<T> type, String... fixtureNames); Optional<JsonNode> getFixtureAsJsonNode(String fixtureName); }
BeanFactory { public <T> T create(Class<T> type, String... fixtureNames) { return create(DEFAULT_REFERENCE_PREFIX, type, fixtureNames); } BeanFactory();  BeanFactory(ObjectMapper objectMapper, FixtureScanner scanner);  BeanFactory(ObjectMapper objectMapper); void init(); void registerAll(Map<String, JsonNode> fixtures); void registerFixture(String name, JsonNode fixture); void unregisterAll(Collection<String> names); void unregisterFixture(String name); void setAllowUnknownProperties(boolean allowUnknownProperties); String createAsString(String... fixtureNames); String createAsString(boolean pretty, String... fixtureNames); String createAsString(boolean pretty, List<String> fixtureNames); String createAsString(boolean pretty, JsonNode jsonNode); T create(Class<T> type, String... fixtureNames); T create(JavaType type, String... fixtureNames); T create(String referencePrefix, JavaType type, String... fixtureNames); T create(String referencePrefix, Class<T> type, String... fixtureNames); Optional<JsonNode> getFixtureAsJsonNode(String fixtureName); static final String DEFAULT_REFERENCE_PREFIX; }