Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [smila-dev] RE: Exception as control flow... nono

Hi,

> The other point is... why does this problem happen in my unit tests?
> 
> Is this normal behaviour or do I use the API wrong?

It's normal behaviour. You do (in TestConverterPipeline):

    final Id id = IdFactory.DEFAULT_INSTANCE.createId(source, key);
    _blackboard.invalidate(id);
    _blackboard.create(id);

But in the invalidate() call your record does not yet exist, which leads in blackboard to the exception which is immediately catched and logged, and the invalidate() returns normally. It should disappear now that Dmitry has removed the exception.

Cheers,
Juergen.


Back to the top