| java.lang.Object org.ontoware.rdf2go.model.TestUtils
TestUtils | public class TestUtils (Code) | | Utils for test, not testing utils
|
Method Summary | |
public static void | copy(ModelSet source, ModelSet target) Copy data from the source modelset to the target modelset. | public static int | countAndClose(ClosableIterable iterable) Runs through the iterator of the iterable, closes it and returns number of items. | public static int | countAndClose(ClosableIterator it) Runs through the iterator of the iterable, closes it and returns number of items. |
copy | public static void copy(ModelSet source, ModelSet target) throws ModelRuntimeException(Code) | | Copy data from the source modelset to the target modelset. Iterates
through all named models of the source and adds each to the target. If a
named graph already exists in the target, the data will be added to it,
target models will not be replaced.
Parameters: source - the source, data from here is taken Parameters: target - the target, data will be put here. throws: ModelRuntimeException - if the copying process has an error |
countAndClose | public static int countAndClose(ClosableIterable iterable)(Code) | | Runs through the iterator of the iterable, closes it and returns number of items.
author: clemente Parameters: it - Any type of iterator, not null |
countAndClose | public static int countAndClose(ClosableIterator it)(Code) | | Runs through the iterator of the iterable, closes it and returns number of items.
author: clemente Parameters: it - Any type of iterator, not null |
|
|