@Test(expected = InvalidCollectionException.class) public void getThrowsAnInvalidCollectionExceptionWhenTheCollectionIsUnknown() throws Exception { JsonCrudService instance = createInstanceWithoutKnownCollections(); instance.get("unknown_collection", null); }
public JsonNode get(String collectionName, UUID id) throws InvalidCollectionException, NotFoundException { return get(collectionName, id, null); }
JsonCrudService { public JsonNode get(String collectionName, UUID id) throws InvalidCollectionException, NotFoundException { return get(collectionName, id, null); } }
JsonCrudService { public JsonNode get(String collectionName, UUID id) throws InvalidCollectionException, NotFoundException { return get(collectionName, id, null); } JsonCrudService(Vres mappings, UserValidator userValidator, UrlGenerator relationUrlFor,
                         TimbuctooActions timDbAccess); }
JsonCrudService { public JsonNode get(String collectionName, UUID id) throws InvalidCollectionException, NotFoundException { return get(collectionName, id, null); } JsonCrudService(Vres mappings, UserValidator userValidator, UrlGenerator relationUrlFor,
                         TimbuctooActions timDbAccess); UUID create(String collectionName, ObjectNode input, User user); JsonNode get(String collectionName, UUID id); JsonNode get(String collectionName, UUID id, Integer rev); List<ObjectNode> getCollection(String collectionName, int rows, int start, boolean withRelations); void replace(String collectionName, UUID id, ObjectNode data, User user); void delete(String collectionName, UUID id, User user); void addTypeToEntity(UUID id, String typeToAdd); void moveEdges(int fromVertex, int toVertex); }
JsonCrudService { public JsonNode get(String collectionName, UUID id) throws InvalidCollectionException, NotFoundException { return get(collectionName, id, null); } JsonCrudService(Vres mappings, UserValidator userValidator, UrlGenerator relationUrlFor,
                         TimbuctooActions timDbAccess); UUID create(String collectionName, ObjectNode input, User user); JsonNode get(String collectionName, UUID id); JsonNode get(String collectionName, UUID id, Integer rev); List<ObjectNode> getCollection(String collectionName, int rows, int start, boolean withRelations); void replace(String collectionName, UUID id, ObjectNode data, User user); void delete(String collectionName, UUID id, User user); void addTypeToEntity(UUID id, String typeToAdd); void moveEdges(int fromVertex, int toVertex);  }