super(FileEndpoint.class, CAMEL_XML);
}
@Override
protected V1CamelFileBindingModel createTestModel() {
V1CamelFileBindingModel fileModel = new V1CamelFileBindingModel(CamelFileNamespace.V_1_0.uri());
fileModel.setDirectory(DIRECTORY);
V1CamelFileConsumerBindingModel model = (V1CamelFileConsumerBindingModel) new V1CamelFileConsumerBindingModel(CamelFileNamespace.V_1_0.uri())
.setInitialDelay(INITIAL_DELAY)
.setDelay(DELAY);
model.setMaxMessagesPerPoll(MAX_MESSAGES_PER_POLL);
model.setDelete(DELETE)
.setRecursive(RECURSIVE)
.setNoop(NOOP)
.setPreMove(PRE_MOVE)
.setMove(MOVE)
.setMoveFailed(MOVE_FAILED)
.setInclude(INCLUDE)
.setExclude(EXCLUDE)
.setIdempotent(IDEMPOTENT)
.setSortBy(SORT_BY)
.setReadLock(READ_LOCK)
.setReadLockTimeout(READ_LOCK_TIMEOUT)
.setReadLockCheckInterval(READ_LOCK_CHECK_INTERVAL)
.setStartingDirectoryMustExist(STARTING_DIRECTORY_MUST_EXIST)
.setDirectoryMustExist(DIRECTORY_MUST_EXIST)
.setDoneFileName(DONE_FILE_NAME);
return fileModel.setConsumer(model);
}